This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: QUICK INTRO TO UNIX This page contains a summary of the most important Unix commands. We will discuss each one of them in detail, during lecture. REMINDER: Unix is "case-sensitive". Therefore, if the command you want is "cd", then you must type "cd", not "CD". NOTE: File names and directory names can be anything, so you can use whatever capitalization you want. NOTE: Beginning students often try to put "spaces" in their file names or directory names. Do not do that! Although there's a way for advanced users to insert "spaces" in their file and directory names, beginners should try to avoid that, because it can mess up the Unix commands. NOTE: file names and directory names can be specified by "relative paths" or "absolute paths". We'll discuss this in class. IMPORTANT COMMANDS ls---- list contents of current directory ls DIRNAME---- list contents of directory whose name is specified cp FILENAME1 FILENAME2---- copy filename1, call copy "filename2" mv FILENAME1 FILENAME2---- rename filename1, to filename2 mv FILENAME DIRNAME---- move the file into the directory rm FILENAME---- remove ("delete") the file cd DIRNAME---- change your current directory to the one specified cd---- teleport directly to your account's "home directory" cd ..---- climb into your current directory's parent directory mkdir DIRNAME---- create a new directory ("folder") rmdir DIRNAME...
View Full Document
This note was uploaded on 08/17/2011 for the course CS 107 taught by Professor Ivanbajic during the Fall '08 term at San Diego.
- Fall '08