If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Problem changing dir\getting to disk drive.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-09-07, 13:26
garrydawkins garrydawkins is offline
Registered User
 
Join Date: Apr 2003
Location: Washington DC area
Posts: 1,312
Post Problem changing dir\getting to disk drive.

I have a problem getting to a disk location.
/dev/md/dsk/d7

When I login I'm at
/opt/users/*******

Please suggest a command that I can use.
Reply With Quote
  #2 (permalink)  
Old 01-09-07, 13:41
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Talking



Use df to find out if (and where) that disk is mounted.
If not mounted you need to mount.
then use cd (change directory) to get to it.



__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #3 (permalink)  
Old 01-09-07, 13:47
garrydawkins garrydawkins is offline
Registered User
 
Join Date: Apr 2003
Location: Washington DC area
Posts: 1,312
Question Problem with Disk

Thanks of the info. I've gotten to the actual dir, how do I go into the disk.
Reply With Quote
  #4 (permalink)  
Old 01-09-07, 13:53
garrydawkins garrydawkins is offline
Registered User
 
Join Date: Apr 2003
Location: Washington DC area
Posts: 1,312
How do you list content of a disk
P.S.
/dev/md/dsk/d7 156701368 152235403 2898952 99% /data
I need to free up some space.
Reply With Quote
  #5 (permalink)  
Old 01-10-07, 01:27
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
find /data -ls

But you might want to start with the du command to find the directory/file with the largest amount of data. Then repeat the du command for that large dir etc.

e.g.
du -ks /data/* | sort -k 1,1n
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On