Here are some commonly needed Linux commands and their meanings. Note that the word "directory" is used for what's usually referred to in Mac and Windows as a "folder".

command meaning comment
pwd print the name of the current directory  
cd directory change to the given directory  
cd change to home directory when you give no directory name to cd, Linux assumes you wish to change to your home directory
ls list the files and directories in the current directory  
ls directory list the files and directories in the given directory  
mkdir directory create the given directory  
javac ClassName.java compile the given class  
java ClassName run main in the given class  
hwsubmit cs102 directory submit all files in the given directory  


This page was last modified .