Command Line: Difference between revisions

From Dickinson College Wiki
Jump to navigationJump to search
Bachmann (talk | contribs)
No edit summary
Bachmann (talk | contribs)
No edit summary
Line 5: Line 5:


the syntax of the command is included when neccessary
the syntax of the command is included when neccessary


Windows:
Windows:


cd - change directory (CD DESTINATION)
cd - change directory (cd DESTINATION)


dir - view contents of a directory
dir - view contents of a directory
Line 18: Line 20:
copy - copy a file (copy FILE DESTINATION)
copy - copy a file (copy FILE DESTINATION)


xcopy - another copy utility useful for copying multiple files
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, 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*
 
--[[User:Bachmann|Bachmann]] 14:17, 30 January 2007 (EST)

Revision as of 19:17, 30 January 2007

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, 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)