emt 2390l lecture 6 dr. reyes reference: the linux command line, w.e. shotts

8
EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

Upload: kevin-nicholson

Post on 01-Jan-2016

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

EMT 2390LLecture 6

Dr. ReyesReference: The Linux Command Line, W.E. Shotts

Page 2: EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

Outline• Repositories• Networking• Files• Archiving and Backup

Page 3: EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

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

Page 4: EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

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

Page 5: EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

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

Page 6: EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

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

Page 7: EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

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

Page 8: EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

Assignments• Check the class OpenLab site for new Labs• Check Blackboard for new Quizzes• Work on your Project