Getting Started Unix Commands

Getting Started Unix Commands

Getting Started 1) Login to one of the PC machines using your andrew login and password 2) Open a Nifty Telnet session (click on the light blue bird) and telnet to an andrew unix machine using your andrew login and password again. 3) Login to shaggy.speech.cs.cmu.edu with ssh (secure shell, see command below) using your CS login and password. The ssh command is a secure (encrypted) telnet for Unix. Unix Commands ls [-la] List the contents of a directory. The option -l allows you to see which names are directories and which are files. The option -a allows you to see files that begin with ‘.’, such as the .. directory which is the name of the parent directory, or the .emacs file. rm <filename> Remove a file named <filename>. (You can also use 'rm -r' to (recursively) remove an entire directory (and all of its files). But be careful that this is what you actually want to do!!) cd <dirname> Change directory <dirname>, move to the directory named <dirname> mkdir <dirname> Make a directory with the name <dir-name> pwd Print Working Directory, i.e. display the name of the directory you are currently in cp <file1> <file2> Make a copy of <file1> called <file2>. ssh -l <username> <machinename> Secure shell, A secure telnet command emacs -nw Start Emacs inside a telnet window. The -nw stands for: no window emacs & Start Emacs and bring up a new window - does not work on lab machines. The ampersand (&) allows you to still type in the Unix/telnet window you gave the emacs command from. fg Foreground, Return to a suspended application (or use directions below beside 'jobs') jobs Lists your active jobs, by number. (If more than one job is suspended, choose the one you want by typing % followed by the job number.) lpr -P <printername> <file> Send the file called <file> to the printer called <printername>. There are lots of other Unix commands. Just ask your neighbor, or the TA if you need help. Information about printers and other necessary file locations/commands will be provided in class. .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us