List the file permissions of only the current directory

rubo77
ls -la .

will show this in it:

insgesamt 1312
drwxrwxr-x  6 ruben rubo77   4096 Feb 23 06:20 .
drwxrwxr-x 23 ruben rubo77   4096 Feb  6 21:48 ..
...

But it will show the whole content of the folder too.

I could narrow the output with head and tail:

ls -la .|head -n 2|tail -n 1

But isn't there an option in ls to show only the current directory you are in?

Timo

No argument to ls necessary, the -d option alone together with -l will do

ls -ld

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Permissions of Current Directory

From Dev

List only regular files (but not directories) in current directory

From Dev

Why does test -e fail on a file in a directory with only read permissions?

From Dev

Windows 7 File Permissions - Force directory permissions recursively to all current and future files

From Dev

Changing directory and file permissions

From Dev

permissions to create file in directory

From Java

Batch File; List files in directory, only filenames?

From Dev

List all files older than x days only in current directory

From Dev

grep current directory only

From Dev

Change only permissions and ownership of a directory

From Dev

Moving only the first file from any directory to current one

From Dev

Do Linux directory permissions overrule file permissions?

From Dev

Remove files with 000 permissions in current directory

From Dev

Write file to documents directory and permissions

From Dev

Directory permissions vs file permssions

From Dev

Write file to documents directory and permissions

From Dev

Copy file to current directory?

From Dev

Why does a new default directory have user executable permissions where as a new file only has user read and write permissions?

From Dev

How do you list the folder permissions of only certain directories that follow a common pattern in a particular directory?

From Dev

How to list only the file names and not its attributes in a directory( in Linux)?

From Dev

C# Directory.GetFiles() only showing one file in the list?

From Dev

How to list only the file names of the same type in the directory?

From Dev

Download list of directory/file names only from web server index

From Dev

list directory and display details of each file. owner, octal permissions and filename using c

From Dev

Getting list of files in current directory

From Dev

List all entries in the current directory whose names contain only uppercase letters

From Java

What is the current directory in a batch file?

From Java

Find current directory and file's directory

From Dev

No such file or directory when copying files to current directory

Related Related

  1. 1

    Permissions of Current Directory

  2. 2

    List only regular files (but not directories) in current directory

  3. 3

    Why does test -e fail on a file in a directory with only read permissions?

  4. 4

    Windows 7 File Permissions - Force directory permissions recursively to all current and future files

  5. 5

    Changing directory and file permissions

  6. 6

    permissions to create file in directory

  7. 7

    Batch File; List files in directory, only filenames?

  8. 8

    List all files older than x days only in current directory

  9. 9

    grep current directory only

  10. 10

    Change only permissions and ownership of a directory

  11. 11

    Moving only the first file from any directory to current one

  12. 12

    Do Linux directory permissions overrule file permissions?

  13. 13

    Remove files with 000 permissions in current directory

  14. 14

    Write file to documents directory and permissions

  15. 15

    Directory permissions vs file permssions

  16. 16

    Write file to documents directory and permissions

  17. 17

    Copy file to current directory?

  18. 18

    Why does a new default directory have user executable permissions where as a new file only has user read and write permissions?

  19. 19

    How do you list the folder permissions of only certain directories that follow a common pattern in a particular directory?

  20. 20

    How to list only the file names and not its attributes in a directory( in Linux)?

  21. 21

    C# Directory.GetFiles() only showing one file in the list?

  22. 22

    How to list only the file names of the same type in the directory?

  23. 23

    Download list of directory/file names only from web server index

  24. 24

    list directory and display details of each file. owner, octal permissions and filename using c

  25. 25

    Getting list of files in current directory

  26. 26

    List all entries in the current directory whose names contain only uppercase letters

  27. 27

    What is the current directory in a batch file?

  28. 28

    Find current directory and file's directory

  29. 29

    No such file or directory when copying files to current directory

HotTag

Archive