LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 03-23-2007, 06:12 PM   #1
xracer
LQ Newbie
 
Registered: May 2006
Posts: 12

Rep: Reputation: 0
Exclamation how to create folder shortcuts thru a shell


Hello everyone,

I have been trying to creating a folder shortcut from another folder, I know I have to use the ln command.

this is the folder i want to link
/tmp/required/server

and i want the link to be in this folder

/home/groups/user/

I first go into the user folder and from there i was trying to use the command in this way
ln -s /tmp/required/server

by default the shortcut should be created in the user folder with the name server. I am correct or I am doing this wrong?? becasue is not working for me.

THank you for any input
 
Old 03-23-2007, 06:19 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
You need to do
Code:
ln -s /tmp/required/server .
with you being in the folder where you want the shortcut to be placed. The full stop means "the location I am now in".
 
Old 03-23-2007, 07:18 PM   #3
xracer
LQ Newbie
 
Registered: May 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by XavierP
You need to do
Code:
ln -s /tmp/required/server .
with you being in the folder where you want the shortcut to be placed. The full stop means "the location I am now in".
I am sorry say that again???

Sorry i have a question that adds to this.

I have been able to create the link as you suggested however i am linking ot the folder itself i want to link to the content of the folder,

How can i do this?

Last edited by xracer; 03-23-2007 at 08:08 PM.
 
Old 03-24-2007, 11:59 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Which file? If you want to link to all of them, you need to create individual links.
 
Old 03-24-2007, 12:33 PM   #5
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Red hat 9, Ubuntu 5.04, Free BSD 5.3, Knoppix 5.04, Ubuntu 8.04, [Slackware 12~13.1]
Posts: 141

Rep: Reputation: 16
try this command. dont forget the dot it means that link the
folder in your present working directory. hope this helps| 3

$cd /home/groups/user/
$pwd
/home/groups/user/
$ln -s /tmp/required/server .

--- or ---

$cd /home/groups/user/
$pwd
/home/groups/user/
$ln -s /tmp/required/server server

--- output ---

after issueing the ls -lF command this should be the output

$ls -lF
total 4
drwx------ user group 512 Mar 9 14:42 server -> /tmp/required/server
 
Old 03-24-2007, 11:05 PM   #6
xracer
LQ Newbie
 
Registered: May 2006
Posts: 12

Original Poster
Rep: Reputation: 0
I will give it a try sorry for the late reply. i have been a little busy withother stuff.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create a folder/file within a folder using perl indu.a Programming 2 03-07-2007 10:09 PM
xubuntu - how do I create shortcuts? greek_lin Ubuntu 8 08-09-2006 02:33 PM
creating folder shortcuts trumpetdork Linux - Newbie 2 04-05-2005 08:47 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM
How do I create shortcuts? HoosTrax Linux - Newbie 14 02-18-2004 08:34 PM


All times are GMT -5. The time now is 11:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration