Chp 1.1 Flashcards
bash
GNU Bourne Again Shell
/bin/sh
Pointer to default shell
xterm; terminal; konsole
Terminal emulators
uname (-a)
Shows operating system; -a shows more info, including kernel version and hostname
cd
Change working directory; e.g. cd /home/sally
cd ~
Change working directory to home directory
pwd
Print working directory
echo
Prints a line of text; e.g. echo “hello world”; -n omits newline with multiple echoes
time
Times how long subsequent commands take to execute; Three times are displayed: total execution time (aka real time), user CPU time, and system CPU time
set
Defines and determines the values of the system environment
exit and logout
Terminates shell
type
Tells whether subsequent command is internal or external; internal commands take precedent; enter full path of external command to run instead
./
Current directory
$PATH env variable
A list of directories in which commands can be found
chmod
Edit permissions; To run, a program must be marked as executable