GenWikiLinux
From birchyHistory
(→Create shortcuts in Linux (symbolic links)) |
|||
Line 31: | Line 31: | ||
Can pipe the output of another command | Can pipe the output of another command | ||
ls |grep blah lists all files in the current directory whose names contain the string "blah" | 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. |