Inspect binaries with ls /usr/bin
In the previous steps, we checked the versions of tar
and zip
. These commands are executable programs, also known as binaries, that are stored in specific directories on your Linux system. A common location for many user-executable commands is the /usr/bin
directory.
Let's use the ls
command to list the contents of the /usr/bin
directory. The ls
command is used to list files and directories.
Open your terminal. Make sure you are in your home directory or the ~/project
directory. You can use the pwd
command to check your current directory if needed.
Now, type the following command and press Enter:
ls /usr/bin
This command tells ls
to list the contents of the /usr/bin
directory.
You will see a long list of names scroll by in your terminal. Each name in this list represents an executable program or a link to one, located in the /usr/bin
directory. This directory contains a vast number of the commands you use regularly in the terminal.
[... many lines of output ...]
tar
tee
telnet
test
tftp
time
timeout
top
touch
tput
tr
true
truncate
tset
tsort
tty
type
tzselect
ubuntu-advantage-tools
ubuntu-bug
ubuntu-report
ucf
udevadm
ufw
ul
umount
unexpand
uniq
unlink
unlzma
unmkswap
unshare
unzip
update-alternatives
update-ca-certificates
update-catalog
update-dictcommon-main
update-dictcommon-wordlist
update-grub
update-icon-caches
update-info-dir
update-initramfs
update-locale
update-mime-database
update-passwd
update-pciids
update-rc.d
update-usbids
uptime
usb-devices
users
utmpdump
uuencode
uudecode
uuidgen
vdir
vlock
vmstat
volname
w
wait
wall
watch
wc
wdctl
wget
whatis
whereis
which
who
whoami
write
x86_64-linux-gnu-addr2line
x86_64-linux-gnu-ar
x86_64-linux-gnu-as
x86_64-linux-gnu-c++filt
x86_64-linux-gnu-cpp
x86_64-linux-gnu-dwp
x86_64-linux-gnu-elfedit
x86_64-linux-gnu-g++
x86_64-linux-gnu-gcc
x86_64-linux-gnu-gcc-11
x86_64-linux-gnu-gcc-ar-11
x86_64-linux-gnu-gcc-nm-11
x86_64-linux-gnu-gcc-ranlib-11
x86_64-linux-gnu-gcov
x86_64-linux-gnu-gcov-dump
x86_64-linux-gnu-gcov-tool
x86_64-linux-gnu-gprof
x86_64-linux-gnu-ld
x86_64-linux-gnu-ld.bfd
x86_64-linux-gnu-ld.gold
x86_64-linux-gnu-nm
x86_64-linux-gnu-objcopy
x86_64-linux-gnu-objdump
x86_64-linux-gnu-ranlib
x86_64-linux-gnu-readelf
x86_64-linux-gnu-size
x86_64-linux-gnu-strings
x86_64-linux-gnu-strip
xargs
xauth
xdg-desktop-icon
xdg-desktop-menu
xdg-email
xdg-icon-resource
xdg-mime
xdg-open
xdg-settings
xhost
xmodmap
xrandr
xset
xsetroot
xtables-multi
xz
xzcat
xzcmp
xzdiff
xzegrep
xzfgrep
xzgrep
xzless
xzmore
yes
zcat
zcmp
zdiff
zegrep
zfgrep
zforce
zgrep
zip
zipcloak
zipnote
zipsplit
zjsdecode
zless
zmore
znew
zsh
zsh5
You can scroll up and down in your terminal to see the full list. Notice that tar
and zip
are listed here, confirming their location.
This step gives you a glimpse into where many of the fundamental Linux commands reside. Understanding the file system structure is key to becoming proficient in Linux.
Click Continue to complete this step.