ls
-A -l -h --color=auto
h human readble size
S sort by size
t sort by change time
bash
when we use ctrl u or w to truncate some part of the input on line, actually, we can use ctrl y to past back. this is extremely useful when you typed:
find ./ *.csv
ctrl w and -name ctrl y .
you can get
find ./ -name *.csv
cat -vte filename
print special characters for tab and end-of-line.
python tab and space
when you editing python source code, sometimes, you would input both tab and space as the indent symbols. in order to make the unique . you can rely on a command
expand -t 4 ok.py
or expand ok.py
watch a command
watch a commmand to execute many times
watch -n 20 df -h
watch -n 5 --differences df -h
edit remote file with vim
vim scp://remoteuser@server.tld//path/to/document
this command can save you some energy to co files and change content
阅读(3307) | 评论(5) | 转发(0) |