Member • Aug 10, 2013
[Linux] Tips & Tricks.
I will roll the dice first.
Counting The Number Of Files In A Directory :
- 'cd' to the desire directory
- Then type :
echo * | wc -wCheck 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 -bFind 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.