3. cat - concatenate files and print on the standard output
tac - print files in reverse
Eg :
cat filename
tac filename
4. ls - list directory contents
sl - display animations aimed to correct users who
accidentally enter sl instead of ls.
* sl is not a linux command , need to install package
5. file - determine the type of file
stat - display file or file system status
Eg :
file filename
stat filename
11. wget --random-wait -r -p -e robots=off
-U mozilla http://www.example.com
The non-interactive network downloader
It will download all files, including images mozilla as browsers identity .
13. du -h –max-depth=1
List the size of all sub folders from the current location I
human readable form
du | sort -nr | less
List of files and folders, sorted in descending order by size.
15. # Tag
Hash tags to organize bash history and very good for finding very long commands
Step :
• Just add a hash tag in every command you type at the end,
• Later can search for the hash tag in reverse-i-search (Ctrl + R).
Eg:
$ tar -xzvf filename #untar
Now, just Ctrl + R, and type untar and you get the command!
# in shell means a comment.