Introduction to Shell Homework

Introduction to Shell Homework - Date: 4/9/2003 Course:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Date: 4/9/2003 Course: Introduction to the Shell Homework 1. State what the following commands do. Do not use the word concatenate or caten- ate. Normal people do not go around using the work concatenate. Use words like copy, display, . .... (a) cat < himom It reads the contents of the file himom and dsiplays it on the screen. (b) cat himom > hellomom It copies the contents of the himom file to a new file called hellomom. (c) cat himom hellomom It opens both files himom and hellomom and displays them on the screen. (d) cat himom >> hellomom It apends the contents of himom at the end of the hellomom file. (e) cat himom hisis >hibro It apends the two files himom and hisis and saves it in a new file called hibro. 2. Pretend that you want a printout of the root direction in DH450 to take home and compare with the root setup on your Linux system. The problem is, there is no printer in DH450. What can you do? Show the commands for each step. (a) Do a directory listing and save it into a file % ls -la > dir.all (b) ftp to your CS account and put the file over there % sftp [email protected] (And type password) sftp> put dir.all sftp> ^Z (To exit sftp) (c) telnet to your CS account and send the file to the printer
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/01/2010 for the course CS 072 taught by Professor Reneea.fecteau during the Spring '03 term at San Jose State University .

Page1 / 4

Introduction to Shell Homework - Date: 4/9/2003 Course:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online