hackbyte

uhls

Jul 22nd, 2020
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. # how to ls files in a mounted directory. root access needed... ;)
  2.  
  3. alias uhls='__uhls(){ echo `readlink -f $1`; mkdir /tmp/uh && mount --bind / /tmp/uh && pushd /tmp/uh && ls -lR `readlink -f $1` && popd && umount /tmp/uh && rmdir /tmp/uh; };__uhls'
Advertisement
Add Comment
Please, Sign In to add comment