LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2006, 07:27 AM   #1
gbrn
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4
Posts: 2

Rep: Reputation: 0
Trying to do odd things with symbolic links


Hello community first of all!

I'm recently migrating to Linux, so I apologize about my win-related explanation: One of the very handy things that I much miss & can't get to work at my new Linux environment is the instant way (as I did it in Win) to let certain folders and files (or programs) open immediately through the RUN box instead of navigating through endless trees of directories or clicking on endless armies of Desktop shortcuts. I did the trick in WinXP by adding a custom path to the path-list of environmental variables and creating in the specified folder handy shortcuts to the needed folders, files, etc. so that when I type the name of a shortcut in the RUN dialog, the object runs immediately for me.
I've tried to do smth of that sort now in Fedora, by trying to force bash follow symbolic links that I've created in one of the PATH folders (/home/myaccount/bin), but it won't execute (cause they're not binary, I guess?). What about the run application dialog, I could not do with it either. Tryed to google it of course too, but no success! So is there another work-around for that problem?
Best regards!
gbrn
 
Old 05-29-2006, 07:33 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,973

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Right click on your Desktop and add a "Link to Location (URL)" which points to the directory you wish to access.
 
Old 05-29-2006, 08:04 AM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Folders would need to be opened with a file browser like nautilus so you could open them with a command like
Code:
nautilus /path/to/folder
If you wanted to run that with a single command you could put it in a script like this
Code:
#!/bin/bash
nautilus /path/to/folder
Make it executable
Code:
chmod +x /path/to/script
And move it somewhere in your path
Code:
mv /path/to/script /home/myaccount/bin
Change the name of the script to whatever command you want to use (choose a name that doesn't clash with something already in your $PATH, or one of the built in shell commands).
Same deal with files, except that you wouldn't open them with nautilus, you'd use whatever was suitable for that file type. For text files, gedit, for example.
 
Old 05-29-2006, 11:33 AM   #4
gbrn
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks very much for quickly & detailed responding!

@rkelsen: could not find such an option - using Gnome.
@Andrew Benton: That is exactly what I needed & it works perfect now! Everything runs fine through the run application tool too.
Best regards
 
  


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
symbolic links neocontrol Linux - Software 3 05-15-2006 01:08 AM
Symbolic Links suavecu Linux - Software 1 01-11-2006 11:04 PM
Symbolic Links Greg_courageous Linux - Newbie 1 05-10-2004 08:05 AM
Symbolic links? TongueTied Linux - Newbie 3 08-27-2003 07:00 AM
symbolic links NoahsMyBro Linux - Newbie 1 11-16-2001 12:13 PM


All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration