Unix - Navigating the file system

Thread Tools Search this Thread
# 1  
Unix - Navigating the file system

When I log on to my unix session I have a default location. But I need to navigate 3 directories up then 6 directories down to where I want to be. There must be a way to create some sort of short cut from my defeault location to my required location. Can anyone help?
# 2  
You must be having a .bashrc or .bash_login which must be read when you login.

I think you can make an entry as cd /target/dir in that login file.
# 3  
I think what you are looking for is a symbolic link. You could create a link in your home directory to the location you want to go. Look at the manpage for the command "ln" on your system to get the right syntax. On Solaris it would be something like this:

ln -s ../../../dir1/dir2/dir3/dir4/dir5/targetdir name

Where that path is the path to the directory you want, and name is the name of the link in your home directory. After that, doing "cd name" would put you in your target directory.
# 4  
you could add the cd line that vino suggested as the last line in your default shell's initialization file (sh/ksh uses .profile, csh uses .login, bash uses .bashrc, etc.) but that might affect how you go about with your work after the initial login ...

i think your best bet is to create either a symlink to the target directory like rhfromm said or create an alias for the cd (i.e., alias mydir="cd /target/dir") in your environment file whichever one it is that your default shell uses ...
# 5  
Thanks for the advice people Smilie

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #543
Difficulty: Easy
A global variable can be accessed and referenced on every line of code.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX file system to Linux file system migration

We would be migrating UNIX file system to Linux file system. We do have many directory and sub directories with files. after migrating unix to linux file system , i want to make sure all the files has been copied ? What would be the best approach to validate directory ,sub-directory and file... (1 Reply)
Discussion started by: balajikalai
1 Replies

2. UNIX for Dummies Questions & Answers

Navigating directories with * / . and ..

I would be very happy (after a lot of fruitless searching) if someone could explain the meaning of these variations on the ls command: ls */ ls */. ls */./ I understand the basic use of ls already eg ls -al but am wanting to list from different points in the file structure without having to... (4 Replies)
Discussion started by: bloodrule
4 Replies

3. Shell Programming and Scripting

Navigating a WebPage with Perl

Hi All Below is Code, It opens a link from which it ask a login name and password, the script enter the login name and password and navigate to next page.. In the next page there is a drop down box from which i have to select a value, I have written the code but it gives error #!/usr/bin/perl... (3 Replies)
Discussion started by: parthmittal2007
3 Replies

4. Shell Programming and Scripting

PERL navigating directories. How do I do it

I am trying to write a Perl script that lists all the .pm files within c:\perl on a WinXP system. I have Strawberry Perl installed. I know that I can perform the action I want with shell script commands but I just want to perform it with Perl. I have written a Perl script that opens the pwd and... (0 Replies)
Discussion started by: ShermW0829
0 Replies

5. UNIX for Advanced & Expert Users


Dear All, We are using COMPAQ DS -10 machines with UNIX 4.0F System is behaving abnormal some directories shows full and they should not be . here is df -k output of a machines file system----1024 block-----used--available--capacity--mounted on /dev/rz17h-----8680793----- 1 --- ... (1 Reply)
Discussion started by: akash.jahangir
1 Replies

6. UNIX for Dummies Questions & Answers

Unix file system

which one is correct explanaton for unix file system a. Explaining about directory hierarchy or b. Explaining about boot block , super block? (1 Reply)
Discussion started by: gwgreen1
1 Replies

7. Programming

compare XML/flat file with UNIX file system structure

Before i start doing something, I wanted to know whether the approach to compare XML file with UNIX file system structure. I have a pre-configured file(contains a list of paths to executables) and i need to check against the UNIX directory structure. what are the various approches should i use ? I... (6 Replies)
Discussion started by: shafi2all
6 Replies

8. Shell Programming and Scripting

Unix File System

Dear All, I want try to using unix,till now i just download 2 Iso file from 5 iso file of Sun Solaris 10. But know I just using unix sun solaris 6.5 that using in my company and I have root password. But some time I'm worry to using root password cos I don't have good basic knowladge about Unix... (1 Reply)
Discussion started by: heru_90
1 Replies

9. Shell Programming and Scripting

how to get file from Unix system

Dear All, I'm new in unix system, when i'm try to get file from Unix system using FTP . I using "get" command for transfer file from unix to windows folder but, there error happened , message is : get filename ERROR : not an SCCS file <col> how can I transfer this file ..?? and how... (1 Reply)
Discussion started by: heru_90
1 Replies

10. UNIX for Dummies Questions & Answers

How do I send a file as an attachment (gzip file) on a Unix system

Hi, How do I send a file as an attachment (gzip file) on a Unix system ? Using sendmail. Please help me. :confused: (3 Replies)
Discussion started by: lacca
3 Replies

Featured Tech Videos