3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac Terminal コマンド

Posted at

環境
OS : macOS Mojave

#よく使うTerminalコマンド
・カレントディレクトリにあるファイルの表示

ls
ls -a       #隠しファイルも含めてすべて表示

・ディレクトリ移動

cd XXX     #カレントディレクトリに存在するXXXに移動
cd ~       #ホームディレクトリに移動
cd ..      #一つ上の階層に移動

・カレントディレクトリのパス表示

pwd

・ディレクトリ作成

mkdir xxx

・ファイル作成

touch xxx.html

・ファイル検索

mdfind xxx
3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?