LoginSignup
0
0

More than 3 years have passed since last update.

ls をオプションつけずに実行する方法

Posted at

概要

Linux系OSで、ls コマンドを多用する。
OS によっては、ls コマンドに alias を設定していてくれる。

例) CentOS

$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'

すると、ls コマンドを実行したディレクトリ配下にファイルが多かった場合に
結果が返ってくるのに時間がかかってしまうときがある

そういうときは、ls -f オプションをつけると、
何もソートやカラーなど余計なオプションをつけずに ls を実行してくれる

0
0
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
0
0