I wish to enter directories which are on the HD but not part of the user hierarchy and have access to the contents of an external HD. To an advanced user this is probably a stupid question but I experimented with ~, cd, . and.. to no avail. I did check for a suitable command but couldn't find one. How does one cd up the hierarchical chain?
Any help will be appreciated.
Thanks again RTM, like most things it was pretty obvious in hindsight. I didn't expect the 'upward' levels to be designated as ../../ and was expecting to see the proper name for the levels. Please stick with me, I'm learning and it is easier now that I realise that it is very similar to operating a shell on the Amiga.
The path to account Frank Hunter is:- Frank Hunter's Computer/Main/Users.Frank Hunter.
Thanks to RTM I am able to access Main but cannot move upwards into it's parent, the basic computer.
I need this to enable access to an external HD and the optical drive.
d205-250-231-229:~ frankhunter$ cd ../../ gets me into Main as the working directory but any additional ../ make no difference. Is there a special designation for the basic computer?
Which OS (Operating System) are you using here? Please post the output of the "uname -a" command.
Within UNIX, everything "hangs off of" the root directory, which is represented by a single slash, / - this is the "Top" of the directory heirarchy. This is opposed to Windows where each Disk/Partition has it's own "root" directory, C:, D:, etc - with the concept of "My Computer" being a container housing these drives (I'm trying to be as conceptual and less technical as possible here!)
For example, my home directory might be /export/home/zazzybob (or /home/zazzybob), the path to the "foo" command might be /usr/local/bin/foo.
A path such as Frank Hunter's Computer/Main/Users.Frank Hunter doesn't look too UNIX like to me?! If you are in your "home" directory (i.e., you've just logged on, and haven't cd'd anywhere), type "pwd" and let us know what the result is. For example, on one of my systems.
Here you can see I've moved right up to the top of the directory heirarchy to the "root" directory.
result of 'uname -a' :-
Darwin d205-250-231-229.bchsia.telus.net 7.7.0 Darwin Kernel Version 7.7.0: Sun Nov 7 16:06:51 PST 2004; root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC Power Macintosh powerpc
My apologies, the path I gave is the OSX path, I didn't know of any other way to explain it.
The result of pwd :-
/Users/frankhunter
Using ../ I can regress to users but not to the Hard drive nor peripherals
Hope this makes sense.
Please excuse this comment, but I like your Avatar! looks like an uncle of mine, complete with ratting cap.
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. This is for Solaris. Please help. (1 Reply)
I am passing an argument to a C++ program which is going to look like
I need to get the integers into arrays a, b, c, d with
a= 12,12,34,2,12
b= 34,4,2,1,23
c= 5,5,4,4,13
d= 6,6,6,6,5 (5 Replies)
I am trying to use awk to create a summary of a structured file. Here is what it looks like:
(random text)
H1 H2 H3 H4
44 78 99 30
31 -- 32 21
12 33 55 21
I'd like to be able to specify a column, say H2, and then have information about that column printed. ... (4 Replies)
Hi all
In my system we have implemented user lockout feature after 3 failure attempt if he tries to login directly or if he run the any command through sudo and enter wrong password thrice. Now I have requirement in which particular user account shouldn't be locked when he run the command... (1 Reply)
Hi all,
I have just installed Solaris 10 on an old Fujitsu Primepower 650 which has been wiped clean. I haven't installed anything apart from the OS yet, so the machine is 99% idle.
I get long delays when logging in, first after entering the id then another long delay after entering a valid... (8 Replies)
Hi,
looking for a piece of code to get the values from a structured text file like this:
###############################################################################
###############################################################################
#
# PERSONAL DATA DEFINITIONS
#... (8 Replies)
Hi,
I want to know if the is a way I can list the directories owned by a given user. Say i am logged in as that user.
I found out the find command lists the files owned by a certain user/group
but i want to know only the directories and if possible the permissions associated with these... (6 Replies)
Hi
I have a very structured file consisting of multiple lines as follows:
3752 AVAILABLE 06/24/2009 FFFF 000000 0000 0000
3753 TRADITION (ASIA) LTD TACB 008329 0000 0000
3754 WACHOVIA CONVS/PRFDS WBCP 001099 0000 0000
3755 AVAILABLE 05/12/2009 FFFF 000000 0000 0000
3756... (3 Replies)
I would like to use SFTP from command line without entering userid and password.
Here is what I have gathered and did.
1) Create a public and private key pair for the protocol you want to use.
To create a key pair for use by SSH2, enter:
ssh-keygen -t dsa
I did that and got... (7 Replies)