think I lost (or forgot the file location) a file named toms-first-birthday.mp4 on my Unix based system. Is there is a Unix bash shell command to find a file called “toms-first-birthday.mp4” in a directory and subdirectories?
would like to find all documents file *.doc and create a tarball of those files and store in /nfs/backups/docs/file.tar. Is it possible to find and tar files on a Linux or Unix-like system?
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?