* Some basic Linux commands [#v2dc5853]
Following commands are often used when we use Unix/Linux systems

If you would like to learn how to use a command, use the "man" command before googling;-),, e.g.
 man [command]

** ls [#u52c7729]
List directory contents
 ls [file]
** pwd [#ie6bd235]
Return working directory name
 pwd
** mkdir [#p05299fb]
Make directories
 mkdir [dir1] [dir2] ...
** cd [#i4a065ae]
Change directory
 cd [dir]
Default (no argument): change directory to home (equivalent to cd ~ or cd $HOME)
** cp [#xde7b74a]
Copy files
 cp [file1] [file2]
** mv [#v8142427]
Move files
 mv [file1] [file2]
 mv [file] [dir]
 mv [file1] [file2] ... [dir]
** rm [#j5ddf82e]
Remove directory entries
 rm [file1] [file2] ...
** rmdir [#k0c629a4]
Remove directories
 rmdir [directory]
** tar [#m384f628]
Manipulate tape archives
Extract files from an archive
 tar xf [tar file]
Extract files from a compressed (gzip'd) archive
 tar zxf [tgz (or tar.gz) file]
or
 gzip -c [tgz (or tar.gz) file] | tar xvf -
Create an archive
 tar cf [tar file] [file1] [file2] ...
Create a compressed (gzip'd) archive
 tar cf - [file1] [file2] ... | gzip -c > [tar.gz (tgz) file]
or
 tar zcf [tgz (tar.gz) file] [file1] [file2] ...

** grep [#j46ed6c5]
File pattern searcher
 grep [pattern] [file ...]

** less [#b7ccebc1]
Pager: opposite to more:-)
 less [file, ...,]
** scp [#lb46189a]
Secure copy (remote file copy program)

Copy files to a remote host
 scp [file1] [file2] ... [userID]@[remote host]:[remote directory]
Copy files in a remote host to a local host
 scp [userID]@[remote host]:[remote directory]/[file] [local directory]
** vi [#pa2f566f]
A text editor ([[usages>vi_en]])
** emacs [#s91c0e88]
A text editor
** nano [#z6b3c6e3]
A text editor. Usage:
 nano [file_name]
Follow the command given at the bottom of the terminal.
** Miscellaneous [#q71e9b21]
Force to terminate a command
 Ctrl+c
Current directory
 .
Upper directory
 ..
Home directory
 ~
or
 $HOME
トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS