$ ls | lists the files and folders in the working directory |
$ ls -l | lists the files and folders in the working directory, with additional information |
$ cd a_dir | changes the working directory to the directory a_dir in the present working directory |
$ pwd | returns the name of the working directory |
$ cd .. | changes the working directory to the directory one above it |
$ cd dir | changes the working directory to the sub-directory with the local path name dir of the current directory |
$ cp file1 file2 | copies file1 to file2, overwriting file2 if it already exists |
$ cp files directory | copies files to directory |
$ rm a_file | removes a_file |
$ mkdir new_dir | creates a new directory new_dir in the working directory |
$ rmdir old_dir | removes the directory old_dir from the working directory |
$ chmod 755 a_file | sets permissions on a_file to allow you to read write and execute the file, and everyone else to read and execute it |