Interesting linux commands
I m writing an article over interesting linux commands .
I would be glad if someone adds to the list. 1)Command to find the Installation date of O.S. 2)How to find Most Used Linux commands of your machine? =================================================== 1)Command to find the Installation date of O.S. Still dont remember last time you have installed an OS. Dont worry Following command can help you get the exact date. Method 1: Code:
# tune2fs -l /dev/root | grep created Method 2: First find the location of install.log in your machine. Code:
# find / -name install.log Code:
# ls -ltr /root/install.log =================================================== 2)How to find Most Used Linux commands of your machine? I know the question is quite simple but yet interesting.You can use following command to find out which is the most used command of your Linux Machine . Code:
# cut -f1 -d" " .bash_history | sort | uniq -c | sort -nr | head -n 10 Code:
# history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr I know there are no practical usage of this command but sometime its good to know which command stress your fingers :) ================================================== |
An interesting address for who don't know: http://www.commandlinefu.com
|
All times are GMT -5. The time now is 06:06 AM. |