ディレクトリの内容をリスト表示 |
ls |
LiSt |
ls directory |
現在のディレクトリを確認 |
pwd |
Print Working Directory |
pwd |
ディレクトリを移動 |
cd |
Change Directory |
cd directory |
ディレクトリを作成 |
mkdir |
MaKe DIRectory |
mkdir directory |
ディレクトリを削除 |
rmdir |
ReMove DIRectory |
rmdir directory |
ファイルの内容を表示 |
less |
antonym of more |
less file |
ファイルの内容を一括表示 |
cat |
ConcATinate |
cat file |
ファイルの先頭10行を表示 |
head |
HEAD |
head file |
ファイルの末尾10行を表示 |
tail |
TAIL |
tail file |
ファイルコピー |
cp |
CoPy |
cp file1 file2 |
ファイル移動 |
mv |
MoVe |
mv f_file1_ file2 |
ファイル削除 |
rm |
ReMove |
rm file |
ファイルの権限を変更 |
chmod |
Change MODe |
chmod u+x file |
シンボリックリンクを作成 |
ln -s |
LiNk |
ln -s file directory |
ファイルの行数・単語数をカウント |
wc |
Word Count |
wc file |
ファイル内のパターン検索 |
grep |
Global Regular Expression Print |
grep pattern file |
ファイルの圧縮および解凍 |
gzip |
- |
gzip filegzip -d file.gz |
ファイルの圧縮および解凍 |
bzip2 |
- |
bzip2 filebzip2 -d file.bz2 |
複数ファイルをまとめる |
tar |
Tape ARchive |
tar cvf file.tartar xvf file.tar |
マシンの稼働状況をリアルタイム表示 |
top |
TOP |
top |
実行中のジョブをID付きで表示 |
jobs |
JOBS |
jobs |
ジョブをフォアグラウンドで実行 |
fg |
ForeGround |
fg %jobid |
ジョブをバックグラウンドへ移行 |
bg |
BackGround |
bg %jobid |
コマンドのマニュアルを表示 |
man |
MANual |
man command |
引数の文字列/変数を表示 |
echo |
ECHO |
echo string |
テキストエディタ(vi)を起動 |
vi |
VIsual editor |
vi |
テキストエディタ(emacs)を起動 |
emacs |
EMACS |
emacs |
暗号化された通信経路で別のマシンにログイン |
ssh |
Secure SHell |
ssh username@hostname |
暗号化された通信経路で別のマシンにファイルコピー |
scp |
Secure CoPy |
scp file1 username@hostname:file2 |
ウェブサーバからファイルを取得 |
curl |
Client for URLs |
curl url |
ウェブサーバからファイルを取得 |
wget |
WWW GET |
wget url |
gitで管理されたリポジトリの取得 |
git |
git |
git clone url |