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

沒有留言:

張貼留言

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...