Search a file called httpd.conf
in all directories:
find / -type f -name httpd.conf
Execute a command on all .conf
files.
find / -type f -name httpd.conf -exec chmod 0700 {} \;
OSX: Search a file anywhere on your system:
mdfind httpd.conf
tar -zcvf archive-name.tar.gz directory-name
Where:
-z: Compress archive using gzip program
-c: Create archive
-v: Verbose i.e display progress while creating archive
-f: Archive File name
tar -xvf archive-name.tar.gz
Where:
-x : Extract a tar ball.
-v : Verbose output or show progress while extracting files.
-f : Specify an archive or a tarball filename.
-j : Decompress and extract the contents of the compressed archive created by bzip2 program (tar.bz2 extension).
-z : Decompress and extract the contents of the compressed archive created by gzip program (tar.gz extension).
axel -an 10 http://path-to-file.com/file.tar.gz