[Linux] Tips & Tricks.
This Thread is dedicated for tips & tricks of Linux. Gather up & share some tricks & tips for linux.
I will roll the dice first.
Counting The Number Of Files In A Directory :
- 'cd' to the desire directory
- Then type :
echo * | wc -w
Check On The Date & time Computer Was Re-booted :
- go to root & type :
last reboot
- To know date & time system was booted, go to root & type :
who -b
Find Files & Move It With Single Command :
find Name_Of_Directory -type f -iname "*.pdf" -exec mv {} Location_Where_You_Wanna_Copy \; example :
find /abc/ebooks -type f -iname "*.pdf" -exec mv {} /xyz/books \; The above example shows that, from directory /abc/ebooks all .pdf extension files will be moved to /xyz/books directory.

