-
What command would you run to see the last 20 commands you ran at the command line?
history 20
-
What is the PATHNAME of the file that, by default, stores the commands you have run in a file
so that they will be remembered for the next time you log in?
~/.bash_history
-
What command would you use to edit the last command to run, change it and run it again?
fc
-
What is the name of the library of procedures that allows you to edit the command line?
the Readline library
-
Name the three things that can be completed at the command line by hitting Tab.
pathnames, commands, shell variables
-
What do you call a shortcut that is used to run a command?
an alias
-
What would you write at the command line to create the alias ghdir which changed directory
to MY home directory?
alias ghdir='cd ~ghoffman'
-
Can you write a function on a SINGLE command line?
yes if every command is followed by a ;, including the last
-
Can aliases be made global?
no
-
Can functions be made global?
no