f I want to copy a single file into three locations (directories), by using a single cp command
(e.g. cp file /dir1/ /dir2/ /dir3/
. Would that be possible? If yes, please provide the command for GNU/Linux or Unix operating systems.
need to clean up my backups stored on the nas server. I need to free up the disk space. How do I find out all hidden dot directories such as /nas01/backups/home/user/.gnome/
and so on and delete then in a single pass using Linux or Unix command line option? Please note that I do not want to delete nested hidden directories such as /nas01/backups/home/user/data/.xml
and so on.
ow do I find out all empty files and directories on a Linux / Apple OS X / BSD / Unix-like operating systems and delete them in a single pass?
What does it mean for a file to be “setuid?” How do keep track of all setuid enabled file?
How do I find out all world writable directories have sticky bits set under CentOS Linux server?
I am trying to use xargs command using shell pipes and not able to understand how to control and use command line arguments. For example I’d like to find out all *.c file located in 100s of sub-directories and move them to another directory called ~/old.src. How do I use command line args with xargs to achieve the same?
While using mv or rm command I get command line length error (Argument list too long error). How do I find out current running shell command line length limitations? How do I overcomes these limitations while writing UNIX / BSD / Linux shell utilities?