basics unix

Download Basics Unix

If you can't read please download the document

Upload: sathyaji

Post on 29-Sep-2015

5 views

Category:

Documents


2 download

DESCRIPTION

basic unix

TRANSCRIPT

Unix NotesUnix is the case sensitive.. All commands normally in lower case... unless noted...Commands------------------------1.ls List of files in particular Unix directory --If normally type the ls command show the file in working directory Ls commands having the additional information.. ls the result will be the current working file or directory in alphabetical order wise...2. ls -l the result will long list of the file in directory additionally show the following information File name ....shows the protection information......File owner......Number of character in file.....date and time to the last change to the file information3. ls -a all your file listed bigin with the period ( ie.Hidden files) 4. man ls For more information about the ls commands..=======================================================DISPLAYING AND CONCATENATING(COMBINING) FILES1. more2.more newfile Display the content of the newfile one screen (page) at a time.3.man more for the more information about this command in Unix system prompt4.cat Display the content of the file in terminal5. cat newfile display the contents of the newfile6. cat newfile oldfile Display the contents of the two file contineous display7. ctl+c to interupt the file while running in unix prompt ctl+s display the file and processing of the command ctl+q interupt command display lines at the point which processing was interupted-------------------------------------------------------Cat command also used to combine file put into another file1. cat fileone filetwo filethree >newfile Those three file contents placed to newfile 2. man cat for more information================================================================COPYING FILES1. cp make copy files from one directories to another directories or one device to another devices2. cp fileone filetwo copies the contents of fileone to named filetwo3. cp /usr/neighbor/testfile . copies the testfile from /usr/neighbor to your Unix account the period(.) end of the command line indicate the file to be copie to the your current working directory and name will remain same..--------------------------------------------To copy a file from another user directory on UNIX, you must know the person user name.1. cp ~username/file1 yourfile copy the file1 to yourfile(working user directory)2. man cp For more information about cp command.===============================================DELETING FILES1.rm Delete the specific file . We can delete the more than one file specification on a command line by seperating the file specification with spaces..2.rm newfile Delete the file named newfile3. rm newfile oldfile delete two file newfile and oldfie4. rm new* Delete all files that begin with prefix new5. man rm For more information=================================================RENAMING FILES1.mv this command changes the identification2.mv oldfile newfile changes the name of file oldfile to newfile only one file will exist3.mv oldfile bin/newfile oldfile data will be changed to directory bin in newfile 4. man mv For more information=====================================PRINTING FROM UNIX