2 FAQ tagged "find_command"
Viewing 1-2 of 2 FAQ -- Bash Shell Check Whether a Directory is Empty or Not
Q. How do I check whether a directory is empty or not under Linux / UNIX using a shell script? I’d like to take some action if directory is empty.
A. There are many ways to find out if a directory is empty or not under UNIX / Linux bash shell. You can use find command [...] - How to: Linux or UNIX List just directories or directory names
Q. How do I list just directory names under Linux?
A. Under Linux or UNIX use ls command to list files and directories. However ls does not have an option to list only directories. You can use combination of ls and grep to list directory names only.
Display or list all directories
Type the following command:
$ ls [...]
Viewing 1-2 of 2 FAQ - ( see all popular tags )



Recent Comments
Today ~ 70 Comments
Today ~ 2 Comments
Yesterday ~ 10 Comments
Yesterday ~ 12 Comments
09/03/2008 05:29 pm (2 days ago) ~ 6 Comments