<<

Common Commands bg To send a suspended job to the background a to the screen (see also and ) cat To append files together (cat file1 file2 file3 > newfile) Change directory (cd subdirectory) To change the permissions or protection on a file, to allow everyone to read a file (chmod a+r somefile) clear the terminal screen filename1 filename2 create a copy of a file called filename1 and call the copy filename2 cp filename directoryName copy the file filename into a directory called directoryName cp –R dirName1 dirName2 copy a whole directory called dirName1 and its contents into another directory called dirName2. –k or df -m Filesystem information including space usage emacs A text editor, more powerful than pico, but more complex. Exit the current terminal fg Brings a suspended or background job to the foreground finger username To more information about a user or users on the system kghostview A command for viewing postscript formatted files Search for the occurrence of a pattern List previous commands you have entered jobs Lists any suspended or background processes that have running. See also and pid Kill a process that is running where pid is the process id number last about has logged onto the machine recently less Type a file to the screen one page a (press q to quit, spacebar for next page, b to go back a page) List the files in your directory ls –l List the files in your directory but with “longer” information man command For about UNIX command command man -k keyword Lists all UNIX commands that mention the word “keyword” a directory more filename Type a file to the screen a page at a time (press q to quit, spacebar for next page). file1 dirName Move a file called file into a directory called dirName mv file1 file2 Rename file1 and call it file2 nano A basic text editor nedit A nicer text editor Change your password pgrep pattern Find process names that contain the pattern. See also ps processname Kill a running process using the process name. See also ps, pgrep and kill Print the full of your current directory ps –u List your current processes ps –aux List all processes on the machine. See also filename Delete a file rm –rf dirName Delete a directory and all its contents Delete an empty directory top List the processes running that are using the CPU filename Create an empty file who To list users currently logged on Cntrl-c Stop a process Cntrl-z Suspend a process, see also jobs, fg and bg