Presentation is loading. Please wait.

Presentation is loading. Please wait.

Basic Unix commands (vs. DOS) cat fileConcatenate or type out a file cat file1 file2... Type out a number of files cd directory1Change current directory.

Similar presentations


Presentation on theme: "Basic Unix commands (vs. DOS) cat fileConcatenate or type out a file cat file1 file2... Type out a number of files cd directory1Change current directory."— Presentation transcript:

1 Basic Unix commands (vs. DOS) cat fileConcatenate or type out a file cat file1 file2... Type out a number of files cd directory1Change current directory to directory1 cd /usr/binChange current directory to /usr/bin cd Change back to your home directory clearClear the current screen cp file1 file2Copy file1 to file2 cp file1 file2... dirCopy a number of files to a directory ls List the files in the current directory ls /usr/binList the files in the /usr/bin directory lpr file1Print file1 out lpr file1 file2...Print a number of files out more fileLook at the content of a file with paging, use ‘q’ to get out mkdir directoryCreate a directory mv file1 file2Move file1 to file2, like rename. mv file1 file2... dirMove a number of files into a directory mv dir1 dir2Move or rename a directory

2 rm fileRemove a file rm file1 file2...Remove a number of files rm -r directoryRemove a directory include the sub-directory rmdir directoryRemove a directory DOS CommandUnix CommandDescriptions CDcdChange directory CHKDSKduDisk usage CLSclearClear the current screen COPYcpCopying files DELrmRemoving files or directories DIRlsFile listing of directories MDmkdirCreate a directory MOREmoreType out a file with paging PRINTlprPrint out a file RDrmdirRemove a directory RENAMEmvMoving files around TYPEcatType out files

3 Who, When, Why, What and Where? man cpDisplay on-line manual for the “cp” command man -k keywordDisplay manual help file related to the keyword passwdChange your login password pwdDisplay the path name of where you are uptimeTell you how long the machine has been up and running usersTell you who is logging in whoTell you who is logging-in in detail wTell you who is logging in and doing what! whoamiShow you the owner of this account finger userFind out the personal information of a user finger nameTry to find the person’s info. by his/her name finger email-addressTry to find the person’s info across the network write userWrite a message on somebody’s screen talk userTalk to the person logging in the same system with you talk email-addressTalk to somebody logging in the network dateDisplay today’s time and date cal yearDisplay the calendar of the specified year (e.g. 1997)


Download ppt "Basic Unix commands (vs. DOS) cat fileConcatenate or type out a file cat file1 file2... Type out a number of files cd directory1Change current directory."

Similar presentations


Ads by Google