≡ Menu

exec

Bash Shell Script To Test For Empty Folder

How do I check if a directory contains files? How do I find out if a directory contains files using bash shell under Linux or Unix like operating systems?
[click to continue…]

How do I check whether a directory is empty or not under Linux / UNIX using a TCSH / C shell script?
[click to continue…]

How do I watch or monitor applications that executed on a system and executes external programs via "bash"?
[click to continue…]

How do I find out the size of the bss, text segment and data segment for each object or binary file under Linux operating systems?
[click to continue…]

How can I find all all hidden files and directories (starting with . character) under UNIX or Linux and delete them using bash or ksh shell?
[click to continue…]

Q. How do I delete control-alt-delete emergency keypress handling to improve security of my Ubuntu Linux server?
[click to continue…]

Bash Shell Check Whether a Directory is Empty or Not

How do I check whether a directory is empty or not under Linux / UNIX using a shell script? I would like to take some action if directory is empty on a Linux or Unix like system. How can I check from bash/ksh shell script if a directory contains files? How do I check whether a directory is empty or not?
[click to continue…]