2015年1月26日 星期一

Funny Useful Linux Commands

Find Latest File
ls -altar
ls -Art | tail -n 1
ls -Art | tail 1

Network port with process
netstat -natup

Output last modified file
cat `ls -t | head -1`
tail -f `ls -t | head -1`

monitor the directory
watch -n 0.1 find .
watch -n 0.1 ls -LR

each $PATH


Tar
# tar cvzf MyImages-14-09-12.tar.gz /home/MyImages
# tar -zxvf tecmintbackup.tar.gz tecmintbackup.xml


umask
rpm -ivh rpmname.rpm

bzip2 –d man.config.bz2 




Remove smf
rpm -e smf-1.2

List all installed rpms
rpm -qa

How to check cpu?
top

沒有留言:

張貼留言

2007 to 2023 HP and Dell Servers Comparison

  HP Gen5 to Gen11  using ChatGPT HP ProLiant Gen Active Years CPU Socket Popular HP CPUs Cores Base Clock Max RAM Capacity Comparable Dell ...