ls -alは横説説を投げます。所有権が見えず、すべて質問に置き換えられますか?シンボル

ls -alは横説説を投げます。所有権が見えず、すべて質問に置き換えられますか?シンボル

コマンドの使用時にエラーが発生すると、ls -al /xx文字が壊れます。所有権、権限をコピーして変更しようとしましたが、何も変更されませんでした。これはルートとユーザーにも発生します。apt install systemd-sysvsysvモードでsystemd()を実行しています。初期化の交換として。定義することはできません、それはどこですか? ? ?から。

$ ls -al /xbin    
d????????? ? ? ? ? ? .
d????????? ? ? ? ? ? ..
d????????? ? ? ? ? ? ADMIN
-????????? ? ? ? ? ? apt-commands.sh
-????????? ? ? ? ? ? build-kernel.sh
-????????? ? ? ? ? ? cairo-dock.sh
-????????? ? ? ? ? ? chrome.sh
-????????? ? ? ? ? ? dirwatch.sh
-????????? ? ? ? ? ? export_notebook.sh
-????????? ? ? ? ? ? find_duplicates.sh
-????????? ? ? ? ? ? findsortdate.sh
-????????? ? ? ? ? ? functions.sh
-????????? ? ? ? ? ? get-chromium.sh
-????????? ? ? ? ? ? get-kernel.sh
d????????? ? ? ? ? ? .git
-????????? ? ? ? ? ? github-create.sh

拡張属性に関連していますか?

ベストアンサー1

lswith -l/ -n...?はディレクトリの内容を一覧表示できますが、その中にあるファイルのメタデータを取得できない場合(lstat()または(with -Lstatシステムコールまたはthisなどのバリエーションを使用して)、statx()これらの内容を表示します。

一般的な状況は次のとおりです。読む許可(r)が許可されていません探すxディレクトリに対する権限()。そのような場合、stat*()システムコールはEACCESS許可が拒否されました)。

$ mkdir dir
$ touch dir/{1,2}
$ chmod u=r,go= dir
$ ls -la dir
ls: cannot access 'dir/1': Permission denied
ls: cannot access 'dir/..': Permission denied
ls: cannot access 'dir/2': Permission denied
ls: cannot access 'dir/.': Permission denied
total 0
d????????? ? ? ? ?            ? ./
d????????? ? ? ? ?            ? ../
-????????? ? ? ? ?            ? 1
-????????? ? ? ? ?            ? 2

ディレクトリに存在しないinodeを参照するエントリが含まれていると、ファイルシステムの破損によって他の状況が発生する可能性があります。

以下を使用して、ls -lL壊れたシンボリックリンクを表示できます。

$ ln -s /broken .
$ ln -s broken2 broken2
$ ls -lL
ls: cannot access 'broken2': Too many levels of symbolic links
ls: cannot access 'broken': No such file or directory
total 0
l????????? ? ? ? ?            ? broken
l????????? ? ? ? ?            ? broken2

おすすめ記事