Adding space to a directory?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Adding space to a directory?
# 1  
Old 05-10-2010
Adding space to a directory?

I need to add space to certain directory. I believe I need to add space to the filesystem this directory belongs to. How can I find out what filesystem this directory belongs to?
# 2  
Old 05-10-2010
You can only space to a filesystem. What version of 'NIX are you running?
# 3  
Old 05-10-2010
To list the file systems, and the amount filled use:
Code:
df -v

Then determine which file system your directory is in.
eg
If your directory is:
/mydirectory, file is in the root file system
/u/mydirectory, file system is /u, assuming that there is a /u in the df -v listing.
/home/john/mydirectory is in the /home file system; if there is no /home in the df -v listing, then the directory is in the root file system.
# 4  
Old 05-10-2010
Quote:
Originally Posted by NycUnxer
How can I find out what filesystem this directory belongs to?
That way:
Code:
 df -h directory

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Adding variable number of space in between two string

Hi, I am looking for the way to add variable number of spaces between two string. e.g input line is a ,bb abc ,bcb pqr ,bfg My output should be something like this a ,bb abc ,bcb pqr ,bfg This text... (9 Replies)
Discussion started by: diehard
9 Replies

2. UNIX for Dummies Questions & Answers

Adding word in blank space

Hi, var=QSB SBD SDN SGJ SJP SKB SKD SLP SML SNB SRE SRG STP TAJ UMP UNO VKS VND VNS WAH ZRR I have to put *.sql after every word What I did echo $var>/root/file1.sql sed -i 's/ /*.sql /g' file1.sql cat file1.sql Output QSB*.sql SBD*.sql SDN*.sql SGJ*.sql SJP*.sql SKB*.sql... (9 Replies)
Discussion started by: kaushik02018
9 Replies

3. UNIX Desktop Questions & Answers

Adding lines to pattern space

Is there any way to add lines to the pattern space of sed? I know a bit about the N flag, but am not able to use it to do what I want which is: read a file n lines at a time. If I find a match I quit else move to the next line. e.g. if I am looking for the following three lines Hello How... (2 Replies)
Discussion started by: jawsnnn
2 Replies

4. UNIX for Dummies Questions & Answers

Adding space after character using sed?

dears i have the data below, i want a command ( i think it should be sed) that add a space after the seconds as below : Jun 24 22:28:18966568406148@ Jun 24 05:47:35966555747744@ Jun 24 05:47:53966560825239@ Jun 24 06:07:52966541147164@ Jun 24 15:49:55966566478883@ thanks... (5 Replies)
Discussion started by: thehero
5 Replies

5. UNIX for Dummies Questions & Answers

Display all directory/sub directory with occupied space?

Hello, I am using Red Hat linux system. I see my /work directory has used space 300GB. But there are so many sub directory under /work. I want to list each direcotry and under all subdirectory. But i want to know how much space occupied by each directory. What kind of command i can use to... (3 Replies)
Discussion started by: govindts
3 Replies

6. HP-UX

Adding space to a filesystem

Hello, I am trying to add space to my existing system and I need a little assistance determining if I have any disk space available to allocate. Here is what I have: DISKS: Class I H/W Path Driver S/W State H/W Type Description... (1 Reply)
Discussion started by: dkranes
1 Replies

7. Linux

Adding space to existing mount

I am on Red Hat Linux 4.7. I am getting this error message: Preparing... ########################################### You have insufficient diskspace in the destination directory (/usr/lib) to install xxxxxxxxxxxxx. The installation requires at least 1.5 GB free on this... (2 Replies)
Discussion started by: jxh461
2 Replies

8. Windows & DOS: Issues & Discussions

Adding space to partition C: from D: in Win 2K3

Hi, I have a Windows 2K3 machine. I have installed the OS on C: partiiton which has 8 GB space and D: has 60GB space. I want to add the 60GB of D: to C; without rebuilding the host. How can I do that? Thanks. (3 Replies)
Discussion started by: gunnervarma
3 Replies

9. AIX

Adding space to a filesystem

Hello I have a flesystem that has run out of space. I have tried using the following command to add space: # chfs -a size=+100 /lsrc I get the following error: 0516-404 allocp: This system cannot fulfill the allocation request. There are not enough free partitions or not enough... (9 Replies)
Discussion started by: dkranes
9 Replies

10. Shell Programming and Scripting

Awk adding a space between integer and the rest of the field

Hi, I have a problem where some of the records I need to process have the first address field as something like "10Walpole Street" where obviously I want it to be "10 Walpole Street". I know I need to somehow separate out the integer and probably form a new string variable, but I just don't... (5 Replies)
Discussion started by: jonathanm
5 Replies
Login or Register to Ask a Question