tutorials:linux_essential_commands
This is an old revision of the document!
Linux Essential Commands
man
: manual page.- Explains how to use a shell command.
- For example, to find out how to use
man
, typeman man
passwd
: modify a user's passwordls
: list directory contentcd
: change directorypwd
: return working directory namewc
: word, line, character, and byte counthead
: display first lines of a filetail
: display the last part of a filecat
: concatenate and print the filemore
: display output one screen at a timecp
: cope filemv
: move filerm
: remove directory entries (like delete)chmod
: change file modes or Access Control Lists- (u,g,o): user, group, other
- (r,w,x): read, write, execute
chown
: change file owner or groupmkdir
: make directoriesrmdir
: remove directoriesssh
: OpenSSH SSH client (remote login program)scp
: secure copy (remote file copy program)- -p: 保留原始檔案權限&修改日期等
- -r: 複製整個資料夾
2>&1
: send STDERR to STDOUT (0:STDIN, 1:STDOUT, 2:STDERR)&
: running job in backgroundgrep
: find keywords in filegrep <KEYWORD> <FILENAME>
- free -g: 查看實際剩餘ram
tutorials/linux_essential_commands.1330590978.txt.gz · Last modified: by wanchia