COP3353_HW02

docx

School

Florida State University *

*We aren’t endorsed by this school

Course

3353

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

6

Uploaded by ProfKangarooMaster3806

Report
COP3353 – Introduction to Unix Spring 2024 Homework 2 Due Sunday Night, January 21, 2024 ►Briona Loughran◄ See the accompanying Instruction Sheet. Follow each hands-on exercise. You need to SSH into the Shell or Linprog host. The Shell and “Tab-Completion” Questions: Group 1 Tab completion and a handy command: – Log into shell. – Type the following (three letters (no spaces) and the Tab key): his <tab> Question 1 : What happens when you press <tab>? The “his” turns into “history” Question 2 : What does the command do when you run it? A long list of my previous command statement prints out. This statements are in order and the time they were inputted is also listed
Directories Tip: Use the touch command to make a new file: touch myFile - If the file doesn’t already exist, then it’s created and has zero length. - If the file exists, it’s timestamp is updated to the current date/time. Questions: Group 2 We’re going to make a directory containing a file, then try to delete that directory: – Log into shell. – Use mkdir to create a directory named myDir – Use cd to enter the myDir directory. – Use touch to create a file named myFile . (This file is created in the myDir directory). – Use cd .. to rise back to your home directory. – Use rmdir to try to delete myDir . Question 3 : What happens? rmdir: failed to remove ‘myDir’: Directory not empty – Use rm -ir myDir to delete the myDir directory. -i means “interactive”; it asks for permission before it makes an action -r means “recursive”; it visits all subdirectories below the current one. Question 4 : What happens? loughran@shell.cs.fsu.edu:~>rm -ir myDir rm: descend into directory ‘myDir’? yes rm: remove regular empty file ‘myDir/myFile’? yes rm: remove directory ‘myDir’? rm
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Copy a File Questions: Group 3 Copy a file from one directory to another: – Log into shell. – Make a directory named backups – Copy this file /home/faculty/lockwood/cop3353public/myFile from your instructor’s directory into your newly created backups directory. Question 5 : Write the copy command you used here (There is more than one way to do this. Write only one way): Cp /home/faculty/lockwood/cop3353public/myFile .pine Pine Email Client Questions: Group 4 – Log into one of your regular email accounts; a handy one is your official @fsu.edu email. – Send an email to your loginName@cs.fsu.edu email account. – Log into shell . – Use pine to check your email (the ReadMe tells how). Text-based user interfaces like Pine's were common before browser-based UI’s. Question 6 : a. Did you receive your email? b. What do you think about Alpine's text-based UI? (There was a time when this was an advanced technique). A. Yes I did. I was kind of surprised!! B. I guess its not as advanced as our current systems but I was kind of surprised it all worked and I could send/receive messages through the system.
Forward Your Email Questions: Group 5 Your programming courses may require you to check your @cs.fsu.edu email account. If you would like, you can forward it to your preferred account. – Log into shell . – Edit the mail configuration file: nano .forward Check next week's Reading for using nano . (It's the same editor that Pine uses). – Add an email address to forward to, and end the line with Enter: abc123@fsu.edu < Use your own email address – Save the file and exit nano: Ctrl-x – Check #1: See if the file was saved correctly: cat .forward – Check #2: The finger command shows certain account data for a user. Use it to see if the system picked up your forwarding address: finger myUserName < use your own username – Check #3: Use you regular email account to send another email to your @cs.fsu.edu address Question 7 : a. Show the one line in the finger output that tells that your mail is forwarded. b. Was the test email that you sent forwarded to your regular email account? Login: loughran Name: Briona - Loughran Directory: /home/class/loughran Shell: /etc/pclab-tcsh On since Thu Jan 18 00:37 (EST) on pts/2 from 10.136.48.141 2 seconds idle (messages off) Mail forwarded to bl23i@fsu.edu Briona bb loughran@mail2.cs.fsu.edu yes
Tips: - An easy way to turn forwarding off and on is to rename the .forward file rather than edit it again. - You can check your CS mail in a modern way by browsing to https://webmail.cs.fsu.edu (Use the same username/password you use for the Unix systems).
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help