GenWikiLinux
From birchyHistory
(→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''' | + | '''egrep''' is replaced with '''grep -E''') |
+ | '''fgrep''' is replaced with '''grep -F''') | ||
− | + | Can pipe the output of another command | |
+ | ls |grep blah lists all files in the current directory whose names contain the string "blah" | ||
− | + | ==Create shortcuts in Linux (symbolic links)== | |
− | + | ln -s /pathToTarget nameOfTheLink | |
− | + | ||
− | + | 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. |