Results 1 to 3 of 3

Thread: ls command with digital format of access

  1. #1
    Join Date
    Aug 2019
    Beans
    34

    ls command with digital format of access

    Hello,
    Using command
    Code:
    ls -la
    in ubuntu 18 I see access as “-rwxr--r-- 1 root root ” are there some keys to show it in digital format, like in cmod command
    when I set command :
    Code:
    sudo chmod 600 ~/.ssh/config


    Thanks!

  2. #2
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: ls command with digital format of access

    Quote Originally Posted by petrogromovo View Post
    …are there some keys to show it in digital format…
    There is no switch in the ls command for this. The man page for ls is instructive for seeing all switches:
    Code:
    man ls

  3. #3
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,510
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: ls command with digital format of access

    Not with ls, but stat may help, e.g.
    Code:
    stat --printf="%a\t%n\n" *

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •