xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Linux ls command All In One

Linux ls command All In One

list all

$ man ls

$ ls

$ ls -al

demo

$ ls -al

-rw-r--r--   1 root             wheel                   0 Oct 13 19:49 auto-install-npm.log
-rw-r-----@  1 root             admin              421687 Oct 13 20:00 system.log



drwxr-xr-x+ 66 xgqfrms  staff    2112 Oct 13 20:00 .
drwxr-xr-x   5 root         admin     160 Sep 22  2020 ..

-rw-------   1 root         staff    1654 Dec 16  2020 .viminfo

-rwxr-xr-x   1 xgqfrms  staff     276 Oct 13 19:52 auto-install-npm.log
-rwxr-xr-x   1 xgqfrms  staff     521 Oct 13 19:58 auto-install-npm.sh

https://man.linuxde.net/ls

linux ls files in the nested folder

$ man ls >  man-ls.md
$ cat man-ls.md

#  -R      Recursively list subdirectories encountered.
$ ls -R

https://www.cyberciti.biz/faq/how-to-show-recursive-directory-listing-on-linux-or-unix/

# -L      Follow all symbolic links to final target and list the file or
             directory the link references rather than the link itself.  This
             option cancels the -P option.
$ ls -LR

https://stackoverflow.com/questions/105212/recursively-list-all-files-in-a-directory-including-files-in-symlink-directories

https://www.freecodecamp.org/news/the-linux-ls-command-how-to-list-files-in-a-directory-with-options/

linux 光标跳转

Shfit + Home & Shfit + End

refs

Linux Bash Shell All In One

https://www.cnblogs.com/xgqfrms/p/12057516.html



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-10-13 20:05  xgqfrms  阅读(35)  评论(4编辑  收藏  举报