Skip to end of metadata
Go to start of metadata

A list of handy commands in linux. Just thrown together for now.

Linux commands will usually follow this format:

command [-switch] [argument]

Where the optional 'switch' will act on the command to change the behaviour of the command, and an argument may be used to specify what the command acts on, so often a file or directory name. Remember that UNIX/Linux commands are case sensitive, and in particular there's often a big difference between an upper case switch and a lower case one.

Command

Switch

Argument

What it does



 


ls


directory name

Directory listing - shows you what is in the directory


-l

 

Gives a 'long listing' with a lot more information


-a

 

Shows all files, including hidden ones



 


cd

 

directory name

'Change Directory' - i.e. in your home directory, 'cd dos' will move you to the folder that appears in windows as "My Documents"

 

 

 

 

dos2unix

-ascii

file name

Converts the given filename from dos format to unix format

unix2dos

-ascii

file name

Converts the given filename from unix format to dos format

 

 

 

 

man

 

command name

Displays a man (manual) page for the given command

 

 

 

 

who

 

 

Display a list of all users currently on the same server as you

  • No labels