青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

linux&c++ R&D

programing is a pleasure!

a shortcut for linux( from linux journal )

f you come from the world of Windows, you undoubtedly understand the concept of a shortcut. In the Linux world, shortcuts do exist, but they're generally referred to as symbolic links, or symlinks. They are so named because, like shortcuts, a symlink is really just a symbolic placeholder or link to the file or directory you're trying to get at.

Of course, the world of pretty graphics and windows provides ways of creating symlinks. However, for the impatient, the command line allows you to do the job with less clicking around. Let's have a look at an example.

Suppose I'm working on a Web site, and I want all of the Web site files to be located in /home/jonesy/public_html/websites/testing/site1. I need to have quick access to this directory on a pretty regular basis, so it would be nice to have a shortcut on my desktop so I can get to it in a single click. It also would be nice to be able to drag files to the folder without having to browse to it first.

In this scenario, we call /home/jonesy/public_html/websites/testing/site1 the source directory, and I create that directory using the mkdir command. Follow along at home:

mkdir -p /home/jonesy/public_html/websites/testing/site1

Remember to change jonesy to your own login name.

Again, we've just created the source directory. The mkdir command creates a directory anywhere you have permission to do so. The -p option tells mkdir to create any parent directories along the way that don't already exist.

We call the symlink itself the target, and it points to the source we just created. Note that we can call the target whatever we want. In this case, I just call it site1. To make a link that shows up on my desktop, I open up Konsole and run the following command:

@cx:ln -s /home/jonesy/public_html/websites/testing/site1<\n>/home/jonesy/Desktop/site1

Again, remember to change jonesy in the above command to your own login name.

The ln command can make other types of links besides symbolic links, so it's important to remember to feed it the -s option to let it know that you want to create a symbolic link. Though it happens, it is relatively rare to use the ln command without the -s option, even for hard-core geeks.

For Aspiring Geeks
If you forget the -s option, you'll create what's called a hard link. Though the differences are subtle, they are significant. Depending on the location of the link in relationship to the source, you can generate an error, because hard links cannot cross drive partition boundaries. In the guts of the system, the plain facts are that a hard link is actually just another alternative name for the same bunch of data stored somewhere on the disk (in technical terms, the hard link and the original file would point to the same inode).

But Wait! There's More!

Of course, making a link to a particular file is exactly like making a link to a directory. So, if I want to make a link to my favorite photo (/home/jonesy/Photos/mypic.jpg) on my desktop, I can do it like this:

ln -s /home/jonesy/Photos/mypic.jpg /home/jonesy/Desktop/

I threw in a little trick in the above command. Because I didn<\#213>t want the symlink to have a different name from the file it points to, I simply use a . (period), which is shorthand for saying, don't change the name.

For more information about the ln command, try running

man ln

, which is the manual or man page for the ln command.

About the Author

Brian Jones is a system/network/database administrator and sometime Web developer for the Computer Science Department at Princeton University. He is also a freelance writer and editor, spending most of his freelance time writing about technology for various Web and print publications. In his free time, he enjoys brewing beer, home recording and playing billiards.

posted on 2008-03-25 19:21 丑石 閱讀(637) 評論(0)  編輯 收藏 引用 所屬分類: My life


只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


My Links

Blog Stats

News

常用鏈接

留言簿(1)

隨筆分類(13)

隨筆檔案(17)

文章檔案(1)

相冊

收藏夾(1)

Friends' blog

useful sites

搜索

積分與排名

最新評論

閱讀排行榜

評論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久久久成人网| 亚洲承认在线| 国产精品毛片一区二区三区| 欧美视频一区二| 国产欧美综合一区二区三区| 红桃视频国产一区| 亚洲精品一区久久久久久| 99精品国产高清一区二区| 亚洲一区二区三区久久| 久久er精品视频| 欧美国产精品v| 在线亚洲一区| 久久这里只有| 欧美午夜精品理论片a级大开眼界| 国产精品视频精品| 亚洲区一区二区三区| 亚洲欧美日韩精品久久久久| 久久综合图片| 在线亚洲精品| 免费在线国产精品| 国产精品亚洲成人| 亚洲国产一区在线| 欧美一区二区视频免费观看 | 免费短视频成人日韩| 欧美日韩国产成人在线91| 国产欧美 在线欧美| 亚洲精品综合| 玖玖精品视频| 亚洲永久免费| 欧美激情91| 国内自拍视频一区二区三区| 在线亚洲一区二区| 欧美成人免费网站| 亚洲欧美国产不卡| 欧美午夜视频| 日韩一级网站| 欧美激情一区在线观看| 欧美亚洲三区| 国产女人aaa级久久久级| 一区二区av| 亚洲大胆av| 欧美在线视频在线播放完整版免费观看 | 亚洲综合日本| 亚洲毛片在线看| 蜜桃av噜噜一区| 国产在线精品成人一区二区三区| 亚洲欧美日韩久久精品| 99精品福利视频| 欧美日韩 国产精品| 亚洲人线精品午夜| 欧美激情一区二区三区成人| 欧美在线短视频| 国产亚洲一级| 久久久久久久久岛国免费| 午夜在线a亚洲v天堂网2018| 国产精品久久午夜| 亚洲欧美日韩综合aⅴ视频| 99精品久久久| 国产精品私拍pans大尺度在线| 亚洲一区二区伦理| 亚洲私拍自拍| 国产美女在线精品免费观看| 欧美一区二视频在线免费观看| 亚洲午夜av在线| 国产精品入口日韩视频大尺度| 亚洲在线观看视频网站| 亚洲欧美影院| 国内一区二区三区| 免费的成人av| 欧美日韩播放| 午夜在线电影亚洲一区| 欧美一级黄色网| 极品少妇一区二区三区| 欧美暴力喷水在线| 欧美日韩国产成人在线免费| 亚洲影院在线观看| 久久精品日韩| 亚洲精品男同| 亚洲影院免费观看| 伊人久久大香线蕉综合热线| 亚洲国产综合视频在线观看| 欧美日韩妖精视频| 久久成人精品电影| 免费观看成人| 亚洲综合色在线| 久久久久.com| 亚洲视频在线一区| 欧美亚洲综合久久| 日韩视频一区二区| 午夜精品国产更新| 亚洲欧洲在线一区| 亚洲一区二区三区精品动漫| 在线观看日韩www视频免费| 亚洲精品免费一二三区| 韩日成人av| 99精品热视频| 亚洲福利视频二区| 亚洲欧美偷拍卡通变态| 日韩亚洲欧美在线观看| 欧美一级视频免费在线观看| 日韩写真在线| 久久精品日韩欧美| 先锋影音久久| 欧美日韩麻豆| 免费久久久一本精品久久区| 国产精品久久久久久久久免费桃花| 美女主播一区| 国产九九视频一区二区三区| 亚洲激情午夜| 亚洲国产va精品久久久不卡综合| 亚洲一区二区三区高清| 亚洲每日在线| 另类综合日韩欧美亚洲| 久久久久国产精品麻豆ai换脸| 欧美日韩一区二区三区在线看| 美女日韩欧美| 国内精品模特av私拍在线观看| 99热在线精品观看| 99精品久久久| 欧美成人精品三级在线观看| 久久久在线视频| 国产欧美一区二区三区国产幕精品| 亚洲毛片视频| 日韩一二在线观看| 欧美精品一区二区精品网| 亚洲电影免费观看高清完整版在线观看 | 欧美黄污视频| 亚洲福利视频免费观看| 久久国内精品自在自线400部| 欧美一区成人| 国产精品yjizz| 99在线观看免费视频精品观看| 亚洲欧洲综合| 欧美 日韩 国产 一区| 欧美freesex8一10精品| 黄色亚洲免费| 久久综合九色综合网站| 欧美ab在线视频| 亚洲精品乱码久久久久久黑人| 免费观看成人网| 亚洲黄色在线看| 亚洲视频成人| 国产精品综合色区在线观看| 亚洲专区国产精品| 久久久久9999亚洲精品| 红桃视频国产精品| 欧美国产精品久久| 99re6这里只有精品| 午夜精品久久久久久99热| 国产精品亚洲片夜色在线| 新67194成人永久网站| 老司机午夜精品视频| 亚洲精品中文字幕在线| 欧美婷婷久久| 翔田千里一区二区| 欧美高清一区| 亚洲综合视频1区| 韩日精品中文字幕| 欧美精品九九| 性做久久久久久久久| 久久天天躁狠狠躁夜夜av| 亚洲三级视频| 国产精品入口66mio| 久久人91精品久久久久久不卡 | 99国产精品久久久久老师| 国产精品草莓在线免费观看| 欧美一级久久久| 亚洲韩国日本中文字幕| 午夜亚洲影视| 亚洲精品乱码久久久久久| 国产精品高潮呻吟久久| 久久久久久亚洲精品杨幂换脸| 亚洲美女在线一区| 久久伊人精品天天| 亚洲网站在线| 亚洲国产网站| 国产一区二区按摩在线观看| 欧美日韩1区2区| 久久亚洲春色中文字幕久久久| 日韩午夜黄色| 亚洲二区视频在线| 久久先锋影音av| 羞羞答答国产精品www一本| 亚洲人人精品| 又紧又大又爽精品一区二区| 国产精品国产三级国产aⅴ入口| 久久亚洲精选| 欧美一区二区视频在线观看2020| 亚洲免费成人av| 欧美福利视频在线观看| 久久蜜桃资源一区二区老牛 | 亚洲国产欧美精品| 国产美女精品视频| 欧美日韩一区精品| 欧美成人在线影院| 久久人人超碰| 久久精品青青大伊人av| 欧美一区二区三区的| 亚洲欧美日韩网| 亚洲——在线|