link

创建指向文件的链接

语法

  link FILE1 FILE2

  link OPTION

为现有FILE1创建名为FILE2的链接

选项

--help      显示帮助并退出 
--version   输出版本信息并退出

例子

当前路径创建test 引向/var/www/test 文件夹

ln –s  /var/www/test  test

创建/var/test 引向/var/www/test 文件夹

ln –s  /var/www/test   /var/test 

link 命令实例:

linux命令:links --dump 1 http://localhost/server-status|grep ^[0-9]|awk 'BEGIN {print "Seconds, PID, State, IP, Domain, TYPE, URL\n--"} $4 !~ /[GCRK_.]/ {print $6, $2, $4, $11, $12, $13 " " $14|"sort -n"}' -n"}' $14|"sort " " $13 $12, $11, $4, $2, $6, {print /[GCRK_.]/ !~ $4 URL\n--"} TYPE, Domain, IP, State, PID, "Seconds, {print 'BEGIN ^[0-9]|awk http://localhost/server-status|grep 1 --dump links links --dump 1 http://localhost/server-status|grep ^[0-9]|awk 'BEGIN {print "Seconds, PID, State, IP, Domain, TYPE, URL\n--"} $4 !~ /[GCRK_.]/ {print $6, $2, $4, $11, $12, $13 " " $14|"sort -n"}'rootopen.com
linux命令:links --dump 1 http://localhost/server-status|grep ^[0-9]|awk 'BEGIN {print "Seconds, PID, State, IP, Domain, TYPE, URL\n--"} $4 !~ /[GCRK_.]/ {print $6, $2, $4, $11, $12, $13 " " $14|"sort -n"}' -n"}' $14|"sort " " $13 $12, $11, $4, $2, $6, {print /[GCRK_.]/ !~ $4 URL\n--"} TYPE, Domain, IP, State, PID, "Seconds, {print 'BEGIN ^[0-9]|awk http://localhost/server-status|grep 1 --dump links links --dump 1 http://localhost/server-status|grep ^[0-9]|awk 'BEGIN {print "Seconds, PID, State, IP, Domain, TYPE, URL\n--"} $4 !~ /[GCRK_.]/ {print $6, $2, $4, $11, $12, $13 " " $14|"sort -n"}'rootopen.com
2018-05-19 13:44:48

linux命令:links2 -dump http://checkip.dyndns.com| egrep -m1 -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' -o -m1 egrep http://checkip.dyndns.com| -dump links2 links2 -dump http://checkip.dyndns.com| egrep -m1 -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'rootopen.com
linux命令:links2 -dump http://checkip.dyndns.com| egrep -m1 -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' -o -m1 egrep http://checkip.dyndns.com| -dump links2 links2 -dump http://checkip.dyndns.com| egrep -m1 -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'rootopen.com
2018-04-08 11:19:48

linux命令:links2 -dump http://checkip.dyndns.com | cut -d ' ' -f7 -f7 ' ' -d cut | http://checkip.dyndns.com -dump links2 links2 -dump http://checkip.dyndns.com | cut -d ' ' -f7rootopen.com
linux命令:links2 -dump http://checkip.dyndns.com | cut -d ' ' -f7 -f7 ' ' -d cut | http://checkip.dyndns.com -dump links2 links2 -dump http://checkip.dyndns.com | cut -d ' ' -f7rootopen.com
2018-03-24 16:39:48

linux命令:links -dump "http://spaceflight.nasa.gov/realdata/sightings/cities/view.cgi?country=United_States&region=Wisconsin&city=Portage" | sed -n '/--/,/--/p' '/--/,/--/p' -n sed | "http://spaceflight.nasa.gov/realdata/sightings/cities/view.cgi?country=United_States&region=Wisconsin&city=Portage" -dump links links -dump "http://spaceflight.nasa.gov/realdata/sightings/cities/view.cgi?country=United_States&region=Wisconsin&city=Portage" | sed -n '/--/,/--/p'rootopen.com
linux命令:links -dump "http://spaceflight.nasa.gov/realdata/sightings/cities/view.cgi?country=United_States&region=Wisconsin&city=Portage" | sed -n '/--/,/--/p' '/--/,/--/p' -n sed | "http://spaceflight.nasa.gov/realdata/sightings/cities/view.cgi?country=United_States&region=Wisconsin&city=Portage" -dump links links -dump "http://spaceflight.nasa.gov/realdata/sightings/cities/view.cgi?country=United_States&region=Wisconsin&city=Portage" | sed -n '/--/,/--/p'rootopen.com
2018-03-22 13:56:48

linux命令:link=https://www.dropbox.com/login ; curl -b a -c cookie -d "t=$(curl -c a $link | sed -rn 's/.*TOKEN: "([^"]*).*/\1/p')&login_email=me%40yahoo.com&login_password=my_passwd" $link $link "([^"]*).*/\1/p')&login_email=me%40yahoo.com&login_password=my_passwd" 's/.*TOKEN: -rn sed | $link a -c "t=$(curl -d cookie -c a -b curl ; link=https://www.dropbox.com/login link=https://www.dropbox.com/login ; curl -b a -c cookie -d "t=$(curl -c a $link | sed -rn 's/.*TOKEN: "([^"]*).*/\1/p')&login_email=me%40yahoo.com&login_password=my_passwd" $linkrootopen.com
linux命令:link=https://www.dropbox.com/login ; curl -b a -c cookie -d "t=$(curl -c a $link | sed -rn 's/.*TOKEN: "([^"]*).*/\1/p')&login_email=me%40yahoo.com&login_password=my_passwd" $link $link "([^"]*).*/\1/p')&login_email=me%40yahoo.com&login_password=my_passwd" 's/.*TOKEN: -rn sed | $link a -c "t=$(curl -d cookie -c a -b curl ; link=https://www.dropbox.com/login link=https://www.dropbox.com/login ; curl -b a -c cookie -d "t=$(curl -c a $link | sed -rn 's/.*TOKEN: "([^"]*).*/\1/p')&login_email=me%40yahoo.com&login_password=my_passwd" $linkrootopen.com
2018-05-16 13:02:48

linux命令:links $( a=( $( lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort | uniq ) ) ; amax=${#a[@]} ; n=$(( `date '+%s'` % $amax )) ; echo ${a[n]} ) ) ${a[n]} echo ; )) $amax % '+%s'` `date n=$(( ; amax=${#a[@]} ; ) ) uniq | sort | "google.com" -v grep | "(http|https)://[a-zA-Z0-9./?=_-]*" -Eo grep | "http://news.google.com" -listonly -dump lynx $( a=( $( links links $( a=( $( lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort | uniq ) ) ; amax=${#a[@]} ; n=$(( `date '+%s'` % $amax )) ; echo ${a[n]} )rootopen.com
linux命令:links $( a=( $( lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort | uniq ) ) ; amax=${#a[@]} ; n=$(( `date '+%s'` % $amax )) ; echo ${a[n]} ) ) ${a[n]} echo ; )) $amax % '+%s'` `date n=$(( ; amax=${#a[@]} ; ) ) uniq | sort | "google.com" -v grep | "(http|https)://[a-zA-Z0-9./?=_-]*" -Eo grep | "http://news.google.com" -listonly -dump lynx $( a=( $( links links $( a=( $( lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort | uniq ) ) ; amax=${#a[@]} ; n=$(( `date '+%s'` % $amax )) ; echo ${a[n]} )rootopen.com
2018-04-01 11:41:48

linux命令:links `lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort -R | uniq | head -n1` -n1` head | uniq | -R sort | "google.com" -v grep | "(http|https)://[a-zA-Z0-9./?=_-]*" -Eo grep | "http://news.google.com" -listonly -dump `lynx links links `lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort -R | uniq | head -n1`rootopen.com
linux命令:links `lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort -R | uniq | head -n1` -n1` head | uniq | -R sort | "google.com" -v grep | "(http|https)://[a-zA-Z0-9./?=_-]*" -Eo grep | "http://news.google.com" -listonly -dump `lynx links links `lynx -dump -listonly "http://news.google.com" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | grep -v "google.com" | sort -R | uniq | head -n1`rootopen.com
2017-12-29 19:31:48

Linux的Bash命令行(A-Z排序)