Difference between revisions of "Advanced Command Line"

From FreekiWiki
Jump to navigation Jump to search
Line 2: Line 2:
 
** ls -la --sort=size -r /lib/modules/2.6.18-3-686/mod*
 
** ls -la --sort=size -r /lib/modules/2.6.18-3-686/mod*
 
** multiple option types
 
** multiple option types
 +
* Examining files
 +
** file
 +
** cat
 +
* copying, creating and moving files
 +
** touch
 +
** cp
 +
** mv
 +
* copying creating and moving directories
 +
** mkdir
 +
** rmdir
 +
** cp -r
 +
** mv
 
* bash
 
* bash
 
** programming language
 
** programming language
Line 7: Line 19:
 
** PATH and tab completion
 
** PATH and tab completion
 
** /etc/init.d/networking
 
** /etc/init.d/networking
 +
* I/O redirection
 +
** ls /media /foo 1> out.txt 2> err.txt
 +
** '>'
 +
** '>>'
 +
** tee
 
* process model
 
* process model
 
** ps (only user's processes)
 
** ps (only user's processes)
Line 15: Line 32:
 
** kill
 
** kill
 
** jobs
 
** jobs
* Examining files
 
** file
 
** cat
 
* copying, creating and moving files
 
** touch
 
** cp
 
** mv
 
* copying creating and moving directories
 
* I/O redirection
 
** ls /media /foo 1> out.txt 2> err.txt
 
** '>'
 
** '>>'
 
** tee
 
 
* Advanced Topics
 
* Advanced Topics
 
** grave accent
 
** grave accent

Revision as of 12:53, 16 June 2007

  • Deconstruct a command
    • ls -la --sort=size -r /lib/modules/2.6.18-3-686/mod*
    • multiple option types
  • Examining files
    • file
    • cat
  • copying, creating and moving files
    • touch
    • cp
    • mv
  • copying creating and moving directories
    • mkdir
    • rmdir
    • cp -r
    • mv
  • bash
    • programming language
    • environment variables
    • PATH and tab completion
    • /etc/init.d/networking
  • I/O redirection
    • ls /media /foo 1> out.txt 2> err.txt
    • '>'
    • '>>'
    • tee
  • process model
    • ps (only user's processes)
    • ps -axf (all processes)
    • xeyes
    • suspend
    • bg and fg
    • kill
    • jobs
  • Advanced Topics
    • grave accent