Friday, 28 October 2011

micellious 1 commands

Linux powerful commands which are used rarely:

:sh
      starts a shell
:vi
      splits the screen
:fg
      moves the screen from background to foreground
:bg
     moves the screen from foreground to background

:displays
     displays the list of screens in the back ground

:e!filename
     edits other file from the present file

:!command
      starts the shell and starts exe commands

!!command
       starts a shell, execute command and place the output in file replacing  the current line 

##, #+  
       increase the number under the cursor

#-,^x
       decrease the number under the cursor

$view filename
        actually vi editor calls the vi editor with the -R (read only)

/^the 
        find the next line that starts with "the" 

/!$
        finds the next line that ends with !

/l..e
        finds any other words that contain 'l' and follow by any two charecters and 'e'
[eg:like, followed, included ]

\>
      ends the word indicator

\<
      starting of the word indicator

/s\
      finds the next word that ends with 's'

/ \<the
      find the next word that starts with the

/dis[ck]
          finds the next occurance of disk or dick

/^[0-9][0-9]
          find the next line that starts with two numbers and followed by right paranthesis

/ \[adr]
           find the next word that starts with an a,d, r

/^[A-Za-z]
            find he next line that starts with upper or lower case letter

:e ______
ctrl+D    -  shows list of commands that start with 'e'
tab
              

No comments:

Post a Comment