≡ Menu

test command

How do I check if a directory exists in a shell script under Linux or Unix like operating systems?
[click to continue…]

Bash Shell Number Comparison

I am new Unix/Linux user. I am learning shell scripting. How can I compare numbers in bash shell?
[click to continue…]

Bash Shell: Check File Exists or Not

How do I test existence of a text file in bash running under Unix like operating systems?
[click to continue…]

Bourne Shell Exit Status Examples

Can you explains and provide us "Bourne Shell Exit Status Code" examples?
[click to continue…]

Q. I see [ command in /usr/bin directory. What is the /usr/bin/[ command used for?
[click to continue…]

BASH Shell: Test If a File Is Writable or Not

Q. How can you test if a file is writable under UNIX / Linux bash shell scripting?
[click to continue…]

Linux Bash Script Check File Existence

How do I check if a file called /tmp/foo.txt exists or not using a shell script under Linux operating systems?
[click to continue…]