0
0

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 3 years have passed since last update.

lsコマンドで直下ディレクトリ内のファイルのフルパスを表示したいだけ

Posted at

調べてもいい感じの記事がヒットしなかったのでメモ

bash
ls -dF $(pwd)/* | grep -v "/$"

以下のように直下のファイルのみフルパスが表示されている
bash
user@LAPF13C6TSA:~/main$ ls
Makefile  README.md  cloud  common  config.sh  device  doc  edge  misc

user@LAPF13C6TSA:~/main-system$ ls -dF $(pwd)/* | grep -v "/$"
/home/kmuser/main-system/Makefile
/home/kmuser/main-system/README.md
/home/kmuser/main-system/config.sh
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?