CSc 352: Lecture-1

Common Unix Commands


-After logging in, you'll see the Unix command prompt(shell prompt)
	-WHAT IS SHELL?
	A program(the user interface of Unix.)
	Waits for you to type in a Unix command 
	and then press the return key. Then the 
	shell handles the execution of your command. 


-The first and the most important thing to know:
	-HOW TO GET HELP?? 
	-->Using man pages
	   Ex: man man, man grep, man -k 'image format' ...


-Managing your files:
	-WHAT FILES DO YOU HAVE?
	-->Using ls
	   Ex: ls, ls -l, ls -la, ls -R ...

	-HOW TO MAKE A DIRECTORY?
	-->Using mkdir


	-HOW TO MOVE AROUND?
	-->Using cd


	-HOW TO MAKE A COPY?
	-->Using cp

		
	-HOW TO DELETE A FILE?
	-->Using rm or rmdir(for directories)  
	   Ex: rm, rm -i, rm -r


	-HOW TO MOVE A FILE?
	-->Using mv


	-HOW TO CHANGE ACCESS?
	-->Using chmod


	-HOW TO LOCATE YOURSELF?
	-->Using pwd 

	
	-SIMPLE OPERATIONS ON A FILE
	-->Using wc, sort, diff, ...


	-PIPES AND REDIRECTION
	-->Ex: ls -l>myfiles, 
	       ls -l|more