How to get full path of a file?

后端 未结 30 3333
走了就别回头了
走了就别回头了 2020-12-02 03:22

Is there an easy way I can print the full path of file.txt ?

file.txt = /nfs/an/disks/jj/home/dir/file.txt

The

30条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 03:59

    Usually:

    find `pwd` | grep 
    

    Alternatively, just for the current folder:

    find `pwd` -maxdepth 1 | grep 
    

提交回复
热议问题