There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer blue screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel firefox firefox 3 game hard drive hardware internet internet explorer itunes laptop linux malware monitor network networking outlook outlook 2003 outlook express partition password printer problem problems ram router slow sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Create a shortcut to open terminal & cd


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Jeiara's Avatar
Member with 33 posts.
 
Join Date: Dec 2001
07-Feb-2005, 07:36 PM #1
Lightbulb Create a shortcut to open terminal & cd
Hi all,
Friend installed VMWare and SUSE Linux on my comp so I could do my programming assignments at home and not have to SSH to school server/drive to school to use Linux lab. The shared folders (so I can access my program files located in Windows) are in /mnt/hgfs/CS Programs/

I don't want to type that everytime I want to compile (the default is /home/user), so I just want to make a desktop shortcut so I'm at the terminal ready to go.

I did a Create New > Link to Application > and in the Execute tab I wrote cd '/mnt/hgfs/CS Programs/' and checked the Run in terminal box. That didn't work. So searched around on the Net and saw some sample shell scripts to run programs. I then created file with this:

#!/bin/bash
cd /mnt/hgfs/CS Programs/

Yeah, that didn't work either. I not familiar with navigating Linux or KDE whatever it is, all I've used it for was for emacs and compiling C++ programs at school, so I'm rather clueless to do this simple thing.
Squashman's Avatar
Distinguished Member with 12,700 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
08-Feb-2005, 01:40 AM #2
You could create a symbolic link to the directory in your home directory or create an alias command that will take you directly to the directory.

ln -s /mnt/hgfs/CS Programs ./csprograms
alias cwd='cd /mnt/hgfs/CS Programs'

But remember that unix/linux does not like spaces in directory and filenames. You will need to put back slashes in before the spaces or put the path in quotes.
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:56 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.