Wednesday, August 29, 2007

Basic Unix Commands To Remember - 1

The basic commands used in the Unix shell are:
  • cd (directoryname)
    (Changes directories to the one named. In Unix, you change directories one level at a time.)
  • cd ..
    (Changes back up to the previous directory)
  • pwd
    (Prints -- displays to the screen -- the "working" or current directory)
  • ls
    (Lists the contents of the current directory to the screen)
  • ls -l
    (Same as above, but it lists like the DOS DIR command with more information)
  • mkdir
    (Make a directory -- same as DOS "md")
  • rmdir
    (Remove a directory -- same as DOS "rd")
  • cat
    ("Concatenate," or show a files contents to the screen -- same as DOS "type.")
  • cp
    (Copy -- same as DOS "copy")
  • mv
    (Rename [or "move"] a file -- same as DOS "ren")
  • rm
    (Remove [or "delete"] a file -- same as DOS "del")
  • logout
    (Terminates a Unix Shell session)
  • |more
    (When entered at the end of a command such as "cat" or ls -l", this displays a page of text, then stops and waits for you to issue the command to go on)

Try also

man mv

less yourfile.m
more yourfile.m

locate 437

No comments: