If a file open then commands then first open in command mode. If file exist then file will open for edit. If you again open file for edit then you will be over write. Dd place curser on first letter of line then press "dd" for delete a single line.
If a file open then commands then first open in command mode. If file exist then file will open for edit. If you again open file for edit then you will be over write. Dd place curser on first letter of line then press "dd" for delete a single line.
Direitos autorais:
Attribution Non-Commercial (BY-NC)
Formatos disponíveis
Baixe no formato DOC, PDF, TXT ou leia online no Scribd
If a file open then commands then first open in command mode. If file exist then file will open for edit. If you again open file for edit then you will be over write. Dd place curser on first letter of line then press "dd" for delete a single line.
Direitos autorais:
Attribution Non-Commercial (BY-NC)
Formatos disponíveis
Baixe no formato DOC, PDF, TXT ou leia online no Scribd
By DVD: - Partition steps Create following partition step by step. “/” mount point in “ext3” format, of 10000MB . “/boot” mount point in “ext3” format, of 1000MB. “/home” mount point in “ext3” format, of 1000MB. Now create partition without mount point in “swap” format, of three times of RAM of system in MB (3*RAM MB). By Server: - Steps Insert CD. (2) boot: linux ks=nfs:<IP of server>:/kickstart/rhel5.cfg . e.g.: linuc ks=nfs:172.24.254.254:/kickstart/rhel5.cfg (3) Eject CD. <Ctrl>+<Alt>+<f1>……. <f6> Enter command window. Note: - <Ctrl>+<Alt>+<f1> and <Ctrl>+<Alt>+<f2> both are different terminal. So we can work on six terminals with six different users. <Ctrl>+<Alt>+<f7> Exit command window. #init 0 shutdown. #init 6 Restart. #date Display current date & time. #date MMDDHHMMYY Change current date & time. #cal Display current year. #cal YYYY Display specify year. #cal YYYY | less Display full calendar in one window. File create methods #touch file1 file2 Create blank file. #cat > file1 file2 Create n edit file. If file exist then file will open for edit. <Ctrl>+<D> to Save and exit. So <Ctrl>+<D> To logout from user. #cat file Display saved file content. Note: - if you again open file for edit then you will be over write your text. #cat >> file1 Edit without over write. #vi file2 Create or open existing file. Existing content display in Black & white form. #vim file2 Create or open existing file. Content are coloured form and errors are highlighted. File Editing Note: - if a file open then commands then first open in command mode. Command mode: - where commands use to edit in text file. < Esc >+<I> Switch command mode to insert mode. <Esc> Switch insert mode to command mode. Insert mode: - where can edit text of file with type. Note: - file must be in command mode to save & exit. <shift>:wqSave and exit. <shift>:wq! forcefully save and exit. Commands for command mode dd place curser on first letter of line then press “dd” for delete a single line. ndd place curser on first letter of line then press “ndd” for delete n line from curser line. dw Place curser on letter for delete that on letter. yy Copy one line from curser. myy Copy m line from curser. p Paste line on curser. O shift+o h→ left, i→ Right, k→ up, j→ down. <Ctrl>+<r> Redo. <u> Undo. : set nu Display serial numbers of lines. : set nonu Remove serials of lines. : % s/<text1>/<text2> Replace text1 by text2 . #vim –o file1 file2 Open simultaneously two. <Ctrl>+ww to switch b/w two simultaneously open files for editing. Create Directory #mkdir <path>dirname Create directory according path. e.g.: - #mkdir /rishabh create rishabh dir in “/”. #mkdir dirname Create directory where user is current present. #ls Display content where user is currently present. #ls <path> Display content according path. e.g.: - #ls /root display content of root #ls –p Display content of home (with suffix “/”). #ls –a <path> Display content of <path> with hidden content (hidden with prefix “.”). #ls –l <path> Display full information of content of <path>. Note: - These commands also can run in combine form.
o ex: - #ls –la display full information with hidden
content. #ll Path Display full information of content. #mkdir /dir/subdir/subdir create multiple directories. #cd <path> then current position of user will change according to path. #pwd Display user’s position. #cd .. Switch Out one dir. #cd\ to complete out (switch in “/”). #mv file1 file2 Rename file or directory, file1 will rename by file2. For same file location and file2 doesn’t exist . #mv file1 file2 file1 will over write by file2. For same file location and file2 exist . #mv file1 <path> If location are not same than work as cut. File1 is cut and it will paste in <path>. #cp -r <sourcefile> <targatefile> To copy file. #cp -rf <sourcefile> <targatefile> To copy file forcefully. #rm –r <path of file or dir> to delete one or more files and directories. #rm –rf <path of file or dir> to delete one or more files and directories forcefully. #reset to refresh system. Refresh is process for clean cache memory.