How to see full symlink path

后端 未结 5 1349
悲&欢浪女
悲&欢浪女 2020-12-22 21:15

When I\'m using ls -la symlinkName or stat symlinkName not all the path is displayed (e.g ../../../one/two/file.txt)

What is

5条回答
  •  萌比男神i
    2020-12-22 22:10

    Another way to see information is stat command that will show more information. Command stat ~/.ssh on my machine display

    File: ‘/home/sumon/.ssh’ -> ‘/home/sumon/ssh-keys/.ssh.personal’
      Size: 34          Blocks: 0          IO Block: 4096   symbolic link
    Device: 801h/2049d  Inode: 25297409    Links: 1
    Access: (0777/lrwxrwxrwx)  Uid: ( 1000/   sumon)   Gid: ( 1000/   sumon)
    Access: 2017-09-26 16:41:18.985423932 +0600
    Modify: 2017-09-25 15:48:07.880104043 +0600
    Change: 2017-09-25 15:48:07.880104043 +0600
     Birth: -
    

    Hope this may help someone.

提交回复
热议问题