Category Archives: Operating System

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 | Comments Off on Finding a String Inside Multiple Files in Linux

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 | Comments Off on Fix Microsoft Mouse in Linux Ubuntu

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 | Comments Off on Colorize Linux Shell Menu

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 | Comments Off on Edit default Gnome-Terminal

Add an Existing User to an Existing Group on Linux

1usermod -a -G GROUPNAME USERNAME

Posted in Linux | Comments Off on Add an Existing User to an Existing Group on Linux

Tracing PostgreSQL Error Log

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

Posted in Database, Linux, PostgreSQL | Comments Off on Tracing PostgreSQL Error Log