type ‘find . -type d -iname foo -delete
‘ command to find the foo directories and delete them. However, I am getting an error message that read as find: cannot delete './hourly.4/data/foo': Directory not empty
on Linux server. How do delete directories based on find command output on Linux or Unix-like system?
have a file named /etc/passwd i and I would like to find all hard links to this file in a directory. How do I find out all other hard links to the /etc/passwd in /backups/ directory? How can find all hard links to a given file using Linux or Unix command line option?
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.
am a new bash shell scripting user. How do I find out the size of a file in my bash shell script and store this file size in a bash shell variable?
‘m a new Linux system user. I need to cleanup in a download directory i.e. delete all files from ~/Downloads/ folders except the following types:
*.iso – All iso images files.
*.zip – All zip files.
How do I delete all file except some in bash shell on a Linux, OS X or Unix-like systems?
am a new Unix system shell user. I need to find and list all hidden files including directories on a Linux or Unix-like system. How can I recursively list all hidden files and directories? How do I save result in a text file?
ecently, I switched from MS-Windows based web-server to CentOS Linux based Apache web-server. All user uploaded files are stored in /var/www/uploads/ directory. Is there command that can give me a list of files that have been added to the filesystem at /var/www/uploads/ in last 7 days on Linux/Unix-like oses?