GenWikiLinux

From birchyHistory
Jump to: navigation, search
(Create shortcuts in Linux (symbolic links))
 
Line 26: Line 26:
 
  -iFr ignore case, simple string search, search current directory and subdirectories
 
  -iFr ignore case, simple string search, search current directory and subdirectories
  
'''egrep''' supports pipes ("or") (= grep -E)
+
'''egrep''' is replaced with '''grep -E''')
 +
'''fgrep''' is replaced with '''grep -F''')
  
  egrep "fruit|bread"  
+
Can pipe the output of another command
 +
  ls |grep blah lists all files in the current directory whose names contain the string "blah"
  
'''fgrep''' (fast grep, simple text, no RegEXp) (= grep -F)
+
==Create shortcuts in Linux (symbolic links)==
  
Can pipe the output of another command
+
ln -s /pathToTarget nameOfTheLink
 
+
  ls |grep blah lists all files in the current directory whose names contain the string "blah"
+
  e.g.  ln -s /var/www/html/public_html/ webDirectory
 +
ln creates hard and soft links. The -s option create soft (symbolic) links to resources in other directories, even other drives.

Latest revision as of 13:28, 12 September 2015

Personal tools
Namespaces

Variants
Actions
Navigation
Tools