Skip to content

Instantly share code, notes, and snippets.

@R4wm
Created June 30, 2019 05:38
Show Gist options
  • Save R4wm/0466d0e691fd7294b557ff6910a875fb to your computer and use it in GitHub Desktop.
Save R4wm/0466d0e691fd7294b557ff6910a875fb to your computer and use it in GitHub Desktop.
2 whoami
lfs chroot) I have no name!:/# whoami
root
(lfs chroot) I have no name!:/# which
bash: which: command not found
(lfs chroot) I have no name!:/# find . -iname "whoami" -print
./tools/bin/whoami
./tools/lib/bash/whoami
(lfs chroot) I have no name!:/# file ./tools/bin/whoami
./tools/bin/whoami: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /tools/lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
(lfs chroot) I have no name!:/#
(lfs chroot) I have no name!:/#
(lfs chroot) I have no name!:/#
(lfs chroot) I have no name!:/# file ./tools/lib/bash/whoami
./tools/lib/bash/whoami: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, with debug_info, not stripped
(lfs chroot) I have no name!:/#
(lfs chroot) I have no name!:/#
(lfs chroot) I have no name!:/#
(lfs chroot) I have no name!:/# find . -name "make" -print
./tools/bin/make
(lfs chroot) I have no name!:/#
(lfs chroot) I have no name!:/# find . -name "gzip" -print
./tools/bin/gzip
(lfs chroot) I have no name!:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment