软连接就是一个快捷方式,建立软连接的方法 ln -s source-path-or-file link-file 建立硬连接 ln source-path-or-file link-file linux进入软连接所指向的原目录 cd $(readlink -f link-file) linux - Find out symbolic link target via command line - Server Fault bash - How get full path to target of
在linux下运行程序时,发现了error while loading shared libraries这种错误,一时间不知道解决办法,在网上搜索,终于解决了. error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory 出现这类错误表示,系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录.