Category Archives: Operating System

Adding color to your tail

Tail is a very useful tool for monitoring error stream. Sometime 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: Linux terminal has … Continue reading

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

How to see open ports in Linux

How to see open ports in Linux 1nmap -sS -O 127.0.0.1

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 locate command. If locate is unable to find a matching file, then you might need to update your file index database. 12# locate … Continue reading

Posted in Linux | Leave a comment

Map Network Drive using DOS command

Create a batch file named “mapdrive.bat” Write the following text into its content 1234REM Map network Drive net use j: \\server1\john_music net use p: \\server2\pdfs pause Explaination: Line 1 is to create a comment Line 2 (similar with line 3) … Continue reading

Posted in DOS | 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? We here is how to colorize your shell menu Open your favorite text editor vim or nano, and add … 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. I 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

Tracing PostgreSQL Error Log

1/pgsql/dev-db/tail -f postgresql.log

Posted in Database, Linux, PostgreSQL | Leave a comment