l
誤って "today"と入力しましたが、ls
このコマンドがまだ現在のディレクトリのファイルのリストを印刷していることがわかりました。l --help
ヘルプファイルを開こうとすると、これはエイリアスにすぎませんls
。l
ls
ところで、すべてのファイル*
は。それはどういう意味ですか?
違いがある場合は、最新の安定版のUbuntuを実行しています。
ベストアンサー1
短い答え:このエイリアスが具体的に行っていることを確認するには、ファイルを見て~/.bashrc
「」という用語を検索するだけですalias l=
。それ以上ではないls -CF
長い答え コマンドが何であるかを確認する良い方法は次のとおりです。
type l
プログラムやスクリプトはそれがどこにあるのかを知らせ、別名であれば別名が何であるかを教えてくれます。 -in またはキーワード。
例:
$ type l
l is aliased to `ls -CF'
$ type find
find is /usr/bin/find
$ type connecthome
connecthome is hashed (/usr/local/bin/connecthome)
$ type grep
grep is aliased to `grep --color=auto --binary-files=without-match --devices=skip'
$ type hello_se
hello_se is a function
hello_se ()
{
echo 'Hello, Stack Exchangers!'
}
$ type type
type is a shell builtin
$ type for
for is a shell keyword
$ type nosuchthing
-bash: type: nosuchthing: not found