Command Line

From Dickinson College Wiki
Revision as of 19:18, 30 January 2007 by Bachmann (talk | contribs)
Jump to navigationJump to search

How to use the command line:


Here are some tips and tricks to using the windows and linux/mac command lines

the syntax of the command is included when neccessary


Windows:

cd - change directory (cd DESTINATION)

dir - view contents of a directory

chkdsk - check disk

del - remove a file (del FILE)

copy - copy a file (copy FILE DESTINATION)

xcopy - another copy utility useful for copying multiple files (xcopy /s FOLDER DESTINATION)

for more information refer to this http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

If you take anything from that site please add it to the howto


Linux/unix/OSX

cd - change directory (cd DESTINATION)

su - become root user (may require a password, if it does.... try the next command)

sudo - use this when a command requires root access (sudo COMMAND)

rm - remove file (rm FILE)

rm -rf remove an entire directory and all subdirectories within it CANNOT BE UNDONE (rm -rf FOLDER)

\* - wildcard (without the slash, the wiki does not process just a * properly), if used with rm for example it will remove all the files in the folder if you want to remove all files beginning with pass you would do something like rm pass*

--Bachmann 14:17, 30 January 2007 (EST)