Sunday, August 21, 2011

Useful Linux Commands

Write a file to standard output or another file
$ cat file
$ cat file1 > file2
$ cat > file
hello world!
Create a short cut for folder on desktop
$ ln -s /host/Users/Owen/Documents/Study /home/owen/Desktop/Books
Create/Delete files and directories
$ touch new.file
$ mkdir cooking
$ rm -r new.file cooking
Count the number of lines/characters/words in Linux
$ wc -[l/c/w] file

No comments:

Post a Comment