Class 20 Flashcards
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