emt 2390l lecture 6 dr. reyes reference: the linux command line, w.e. shotts
TRANSCRIPT
EMT 2390LLecture 6
Dr. ReyesReference: The Linux Command Line, W.E. Shotts
Outline• Repositories• Networking• Files• Archiving and Backup
Repositories• Linux has repositories where you can download
and install software/packages• apt-get update – command used to update the
system packages from the repository• apt-get install package_name – command used to
install new programs/packages• apt-get remove package_name - command used
to remove programs/packages
Networking• ping – command used to determine if a remote
location is reachableo ping linuxcommand.como ping localhost
• netstat – command used to examine various network settings and statistics.o netstat –ie
• ftp – file transfer protocol• wget – command used to downloading files
o wget linuxcommand.como lso gedit index.html
Files• locate - command that performs a search of
pathnames and outputs those that matches the substringo locate bin/zipo locate zipo locate zip | grep bin
• You may also use the find command which has more options but it is more difficult
Archiving and Backup• gzip – command used to compress one or more
fileso ls -l /etc > foo.txto lso gzip foo.txto ls
• gunzip – command used to decompress fileso lso gunzip foo.txto ls
• tar – command used for archiving fileso lso tar cf desktop.tar Desktopo lso tar xvf desktop.tar
Archiving and Backup• zip – command that is both a compression tool
and an archivero Usage: zip options zipfilename file1, file,2, ..., filen
• unzip - command used to decompress a zip fileo Usage: unzip options zipfilename
Assignments• Check the class OpenLab site for new Labs• Check Blackboard for new Quizzes• Work on your Project