03042014 Flashcards
Perform:
cat /etc/issue
Hands-on
Print system information
uname, uname -a
Show / manipulate the IP routing table
route
Tell how long the system has been running.
uptime
Flush file system buffers
sync
Read:
info coreutils ‘sync invocation’
Hands-on
The line is stored in a buffer with full editing capabilities
history
Look for the command, type the exclamation point and then the number
HISTSIZE environment variable
echo $HISTSIZE
The _____ key is used to invoke filename auto-completion
Tab
Create a text file using redirection operand (just like touch command)
ls > file2.txt
Modifying the PS1 environment variable
echo $PS1
export PS1=”\u \h \w $”
#this is command line prompt
#PS1 : shows all the command line prompt
The ____ command is used to display the contents of a variable
echo
Environment Variable:
USER: shows the current user HOSTNAME: HOME SHELL TERM EDITOR TZ HISTSIZE PATH : is where commands re searched for in the file system