- $ (cd Ti/Davinci/ && make)
- jump to a directory and execute a command, and then jump back to current directory. - $ ls –ltr | tail –n5
- 5 newest files only - $ ctrl-L
- clear terminal screen, or use ‘clear’ - $ mkdir –p dir1/dir2/dir3, $mkdir –p work/{d1,d2}/{d3,d4}
-create directory including intermediate directories. - $ cp filename.txt{,.bak}, or $mv filename{.dat,.bak}
-backup or rename - $ grep --color=auto
-show pattern in Red - $ ps aux | grep “[s]peed”
- $ rm –rf `find . –type d –name .svn`
-remove all subversion files. - $ sed -n 5p
- show one specific line if you know what line it is.
…
No comments:
Post a Comment