Linux / UNIX: Find Out If a Directory Exists or Not

Posted on in Categories CentOS, Debian Linux, File system, Gentoo Linux, Howto, Linux, Open source coding, programming, RedHat/Fedora Linux, Shell scripting, Suse Linux, Sys admin, Ubuntu Linux, UNIX last updated November 16, 2008

I’ve already written a small tutorial about finding out if a file exists or not under Linux / UNIX bash shell. However, couple of our regular readers like to know more about a directory checking using if and test shell command.

Linux / UNIX: Find Out If File Exists With Conditional Expressions in a Bash Shell

Posted on in Categories Howto, Linux, RedHat/Fedora Linux, Shell scripting, UNIX last updated May 2, 2017

With the help of BASH shell and IF command, it is possible to find out if a file exists or not on the filesystem. A conditional expression (also know as “evaluating expressions”) can be used by [[ compound command and the test ([) builtin commands to test file attributes and perform string and arithmetic comparisons.

xrandr: Linux Resize / Set The Screen Size Quickly Via Command Line Options

Posted on in Categories Debian Linux, Howto, Linux, Linux desktop, RedHat/Fedora Linux, Tips, Troubleshooting, Tuning, Ubuntu Linux, UNIX, X server last updated August 27, 2005

Generally, I need to switch my Gnome screen size to 800×600 to watch TV via TV-Tunner card as my card supports max 800×600 resolution. For rest of my work I prefer to use 1024×768 pixels. You can create a shortcuts on the desktop to resize screen quickly: