zeus
4 years ago
7 changed files with 24792 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||||
|
echo "List Files and Directories with ‘/’ Character at the end" |
||||
|
echo "-----------------------------" |
||||
|
ls -F / |
||||
|
echo "" |
||||
|
|
||||
|
|
||||
|
echo "Recursively list Sub-Directories" |
||||
|
echo "-----------------------------" |
||||
|
|
||||
|
ls -R / |
||||
|
echo "" |
||||
|
|
||||
|
|
||||
|
echo "Sort Files by File Size" |
||||
|
echo "-----------------------------" |
||||
|
|
||||
|
|
||||
|
ls -lS /usr/share |
||||
|
echo "" |
||||
|
|
||||
|
echo "Display UID and GID of Files" |
||||
|
echo "-----------------------------" |
||||
|
|
||||
|
ls -n /usr/share |
||||
|
echo "" |
||||
|
|
@ -0,0 +1 @@ |
|||||
|
ls -al /usr/share | grep "python" |
File diff suppressed because it is too large
@ -0,0 +1,41 @@ |
|||||
|
List Files with |
||||
|
|
||||
|
[source,bash] |
||||
|
---- |
||||
|
-h, --human-readable |
||||
|
with -l and -s, print sizes like 1K 234M 2G etc. |
||||
|
---- |
||||
|
|
||||
|
[source,bash] |
||||
|
---- |
||||
|
ls -lh / |
||||
|
---- |
||||
|
|
||||
|
List Files and Directories with ‘/’ Character at the end |
||||
|
|
||||
|
[source,bash] |
||||
|
---- |
||||
|
ls -F / |
||||
|
---- |
||||
|
|
||||
|
Recursively list Sub-Directories |
||||
|
|
||||
|
[source,bash] |
||||
|
---- |
||||
|
ls -R / |
||||
|
---- |
||||
|
|
||||
|
|
||||
|
Sort Files by File Size |
||||
|
|
||||
|
[source,bash] |
||||
|
---- |
||||
|
ls -lS /usr/share |
||||
|
---- |
||||
|
|
||||
|
Display UID and GID of Files |
||||
|
|
||||
|
[source,bash] |
||||
|
---- |
||||
|
ls -n /usr/share |
||||
|
---- |
@ -0,0 +1,9 @@ |
|||||
|
|
||||
|
Try to run |
||||
|
|
||||
|
[source,sh] |
||||
|
---- |
||||
|
ls -al /usr/share | grep python |
||||
|
---- |
||||
|
|
||||
|
and see the Results! |
Loading…
Reference in new issue