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

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 丑石 閱讀(641) 評(píng)論(0)  編輯 收藏 引用 所屬分類: My life


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


My Links

Blog Stats

News

常用鏈接

留言簿(1)

隨筆分類(13)

隨筆檔案(17)

文章檔案(1)

相冊(cè)

收藏夾(1)

Friends' blog

useful sites

搜索

積分與排名

最新評(píng)論

閱讀排行榜

評(píng)論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            亚洲大片在线观看| 91久久一区二区| 销魂美女一区二区三区视频在线| 亚洲精品一区二区三区婷婷月| 欧美成人综合在线| 亚洲巨乳在线| 亚洲破处大片| 欧美日韩国产首页| 亚洲欧美变态国产另类| 亚洲免费网站| 国产欧美精品xxxx另类| 久久香蕉国产线看观看网| 久久爱www久久做| 亚洲国产专区| 在线亚洲一区| 国产色产综合产在线视频| 久热精品在线视频| 欧美激情第10页| 亚洲男人av电影| 欧美一区二区在线视频| 亚洲第一偷拍| 亚洲精品专区| 国内精品久久久久久影视8| 欧美成人性网| 国产精品黄色| 毛片av中文字幕一区二区| 欧美日本不卡| 久久久欧美精品sm网站| 欧美精品成人| 久久成人久久爱| 欧美精品一区二区三区蜜桃| 午夜综合激情| 欧美久久婷婷综合色| 欧美在线观看网站| 男女精品视频| 久久久久这里只有精品| 欧美另类一区| 美女视频一区免费观看| 国产精品第一区| 亚洲成人资源网| 国产在线播精品第三| 亚洲免费不卡| 亚洲国产一区在线| 午夜一区在线| 亚洲综合视频一区| 免费在线观看一区二区| 欧美在线你懂的| 欧美日韩不卡在线| 欧美电影免费观看| 狠狠色丁香久久综合频道| 中国成人黄色视屏| 日韩亚洲精品视频| 久久一本综合频道| 久久久午夜视频| 国产精品专区h在线观看| 日韩视频永久免费| 9国产精品视频| 美女91精品| 欧美成人精品一区| 国产在线国偷精品产拍免费yy| 夜夜嗨av一区二区三区网页| 亚洲日本久久| 欧美成人69av| 亚洲国产女人aaa毛片在线| 精品51国产黑色丝袜高跟鞋| 欧美在线观看视频一区二区| 欧美亚洲日本国产| 国产欧美日韩在线播放| 亚洲一区免费观看| 亚洲男人影院| 欧美性大战久久久久久久蜜臀| 亚洲伦理在线免费看| 中文在线资源观看视频网站免费不卡| 欧美激情欧美激情在线五月| 亚洲国产精品成人久久综合一区| 亚洲激情在线观看| 欧美国内亚洲| 亚洲欧洲久久| 宅男精品导航| 国产精品久久久一区麻豆最新章节| aaa亚洲精品一二三区| 亚洲婷婷综合色高清在线| 欧美三级在线视频| 亚洲一级二级在线| 久久久久久久一区二区三区| 激情久久五月| 欧美成人一区在线| 一本一本a久久| 欧美在线观看一区| 黄色亚洲免费| 欧美成年人在线观看| 99综合精品| 久久久精品国产一区二区三区| 韩国在线一区| 欧美激情中文字幕一区二区| 一区二区免费在线视频| 久久大综合网| 亚洲精品美女免费| 国产精品国产三级国产普通话99| 羞羞漫画18久久大片| 亚洲电影免费观看高清完整版| av成人老司机| 黄色亚洲精品| 国产精品成人一区| 久久视频国产精品免费视频在线| 亚洲国内在线| 久久精品五月| 亚洲视频1区2区| 国产一区清纯| 欧美日韩综合不卡| 久久精品欧美日韩精品| 夜夜夜精品看看| 欧美大片一区二区三区| 亚洲手机视频| 91久久精品国产91久久性色tv | 免费观看一级特黄欧美大片| 亚洲国产精品成人va在线观看| 欧美日韩国产三级| 久久久久国产精品午夜一区| 99这里有精品| 亚洲高清资源| 久久日韩粉嫩一区二区三区| 亚洲一级二级| 亚洲精品国产精品乱码不99| 国产欧美日韩一区二区三区在线| 欧美搞黄网站| 美女久久一区| 久久精品九九| 亚洲综合视频在线| 一区二区三区免费网站| 欧美激情区在线播放| 久久综合久久综合九色| 欧美在线免费观看亚洲| 亚洲视频一区二区在线观看| 最新国产乱人伦偷精品免费网站| 国产一区三区三区| 国产日韩综合| 国产精品普通话对白| 国产精品va| 欧美肉体xxxx裸体137大胆| 欧美精品在线免费| 欧美国产日韩一区二区在线观看 | 久久九九电影| 亚洲欧洲av一区二区三区久久| 国产精品99久久久久久久女警| 91久久综合| 亚洲久久一区二区| 亚洲欧洲在线一区| 亚洲日本欧美在线| 亚洲美女视频在线观看| 9久re热视频在线精品| 亚洲毛片av| 中文在线不卡| 亚洲欧美日韩人成在线播放| 午夜精品久久久久久99热| 性欧美暴力猛交69hd| 欧美在线播放高清精品| 久久久久久久久岛国免费| 久久久青草婷婷精品综合日韩| 久久久999精品免费| 美国成人直播| 欧美日本中文| 国产精品盗摄久久久| 国产女人18毛片水18精品| 国产在线国偷精品产拍免费yy| 狠狠色狠狠色综合日日五| 亚洲国产成人91精品| 999亚洲国产精| 亚洲一区二区三区四区在线观看| 亚洲欧美日产图| 久久久女女女女999久久| 欧美jjzz| 中文成人激情娱乐网| 欧美亚洲在线播放| 欧美成年人视频| 国产精品视频久久久| 伊人色综合久久天天五月婷| 亚洲欧洲日本专区| 亚洲欧美另类在线观看| 久久婷婷麻豆| 亚洲美女在线视频| 久久国产手机看片| 欧美日本高清视频| 国产欧美一区视频| 亚洲看片免费| 久久乐国产精品| 亚洲巨乳在线| 老司机精品福利视频| 国产精品久久久久久超碰| …久久精品99久久香蕉国产| 在线中文字幕日韩| 欧美sm重口味系列视频在线观看| 亚洲美女av黄| 六月婷婷一区| 国产欧美日韩伦理| 亚洲一区二区三区免费观看| 免费欧美视频| 欧美一区二区高清| 国产精品av久久久久久麻豆网| 在线成人小视频|