Category Archives: Linux

You got to love Linux. Not only that it is free, but it is also very strong, stable, and widely used.

A Linux primer: identifying your distro and other commands that work everywhere

Here are a few commands you can use to find out which Linux distribution you’re on — pick whichever your system has: 1234567cat /etc/issue cat /proc/version dmesg | head -1 cat /etc/*-release Of those, cat /etc/*-release is the most reliable … Continue reading

Posted in Linux, Operating System, Ubuntu | Leave a comment

How to Set up an FTP Server in Ubuntu Linux

Login to your Linux shell menu as root 12[root@locahost]# apt-get install vsftpd [root@locahost]# vim /etc/vsftpd.conf At VIM, 1st comment out anonymous_enable by adding a # sign at the beginning of the line # anonymous_enable=YES 2nd remove comment at local enable … Continue reading

Posted in Linux, Operating System, Ubuntu | Leave a comment

Adding color to your tail

Tail is a very useful tool for monitoring an error stream. Sometimes the output from tail can have too much information, and its black-and-white monotone output can be hard to follow with the eyes. The basic: a Linux terminal has … Continue reading

Posted in Linux, Operating System, Ubuntu | Leave a comment

An nmap primer: scanning ports, fingerprinting hosts, and staying legal

If you just want a quick look at what’s listening on a Linux machine, the one-liner is: 1nmap -sS -O 127.0.0.1 That’s an nmap SYN scan with OS detection against your own loopback interface. If you’ve never used nmap before, … Continue reading

Posted in Linux, Operating System | Leave a comment

Find Files in Linux by Name

To find files in Linux with a certain name portion or pattern we can issue a locate command. If locate is unable to find a matching file, then you might need to update your file index database. 12# locate journal-2011-07 … Continue reading

Posted in Linux | Leave a comment

Finding a String Inside Multiple Files in Linux

This is how you can find a text/string Proudly inside folder /var/www. The -H parameter is to show the filename and -R is to make grep look recursively. 1grep -H -R "Proudly" /var/www

Posted in Linux | Leave a comment

Fix Microsoft Mouse in Linux Ubuntu

123456789101112nano /etc/X11/xorg.conf Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" # Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "false" Option "ZAxisMapping" "4 5" Option "ButtonMapping" "1 2 3 6 7" EndSection

Posted in Linux, Operating System, Ubuntu | Leave a comment

Colorize Linux Shell Menu

Do you ever feel like you’re going blind because the prompt text color and the result text color are the same? Here’s how to colorize your shell prompt. Open your favorite text editor (vim or nano), edit your ~/.bashrc, and … Continue reading

Posted in Linux, Operating System, Ubuntu | Leave a comment

Edit default Gnome-Terminal

Every time I open a shell terminal in my Ubuntu, I always think that the window size is too small. I always ended up resizing the shell window manually using the mouse. If you’re having this problem here is how … Continue reading

Posted in Linux, Ubuntu | Leave a comment

Add an Existing User to an Existing Group on Linux

1usermod -a -G GROUPNAME USERNAME

Posted in Linux | Leave a comment