Chapter 5 Flashcards
Scripting
Ability to place commands in a file and then interpret the file
Aliases
Ability to create short nicknames for longer commands
Variables
Used to store information for the Bash shell and user
command
performs action on the computer
ls
lists files and directories
ls -l
(an L)
long listing that provides additional info such as permissions
ls -r
lists in reverse alphabetical order
ls -lh
human-readable format
Ex: instead of bytes, it’s in kb
!!
execute most recent command
Backquotes
used to specify a command within a command
Ex:
echo Today is date = Today is date
vs
echo Today is date
= Today is Thu Oct 10 00:58:34 UTC 2024
&&
act as logical “and”
If first command is successful, then the second command will also run
|| Double pipe
logical “or”
Depending of first command, the second command will either run or skip
uname
displays information about the current system