$ cleanlinks
this is supported on few flavor of Linux (XFree86), you can use this script.
#/bin/bash
DIR="$1"
[ -d $DIR ] && [ $(ls -l $DIR | wc -l) -eq 1 ] && rmdir $DIR || :
$ script.sh dir1
Subscribe to:
Post Comments (Atom)
Optimizing the operating system (OS) for MySQL server
Optimizing the operating system (OS) for MySQL server Optimizing the operating system (OS) for a MySQL server involves configuring various O...
-
If you accidentally created a file with a - in the beginning then you want to remove it, you have to do : rm ./-thefile
-
The Unix top command is designed to help users determine which processes are running and which applications are using more memory or process...
-
IOPS (input/output operations per second) is the standard unit of measurement for the maximum number of reads and writes to non-contiguous ...
1 comment:
Find empty folder and save as temporary file
# find /path -type d -empty -exec ls -ld >> /tmp/savefiles.txt {} \;
Find empty folder and delete
# find /path -type d -empty -exec rm -rf {} \;
Post a Comment