Thursday, February 11, 2016

some more useful cmds from the cmdline



1 find . -name "*.log" -exec grep pattern {} /; -print find log files and grep a pattern. 


2


uname -a  Print the system information
3 cat /proc/cpuinfo Print the CPU information

4

cat /etc/redhat-release RED Hat release info




#stock alias  to get the stock price 
alias cavm ' wget -q -O cavm "http://download.finance.yahoo.com/d/quotes.csv?s=cavm&f=l1" ; more cavm; rm cavm'

#remove all the 0 bytes files
alias fixcc 'find -L sim -name "*.o" -size 0c -print -exec rm {} \;'


If you want to create the list of files with full path.
alias pls 'ls -d -1 $PWD/**/*' 

No comments:

Post a Comment