04-11-2010
Using USERNAME variable for getting disk quota information
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. I am trying to write a script where my professor will log in and the script will give him his quota info with the LOGNAME variables, etc.
2. standard I'm not exactly sure what this means, i'm using bash on my mac:
3. this is what i have so far. my tutor say's ill call the quota info with the USERNAME variable to get quota info on the current user - or something like that..
name=${name:-$LOGNAME}
dir=${dir:-$PWD}
gid=b20005
usage=1315
kb=248685
files=347
fq=19653
echo "Hello $name"
echo "Your home directory is $dir and your login shell is $SHELL"
echo "Your default group is $gid"
echo "Currently you have $usage kB of space in use"
echo "There is $kb kB remaining in your quota"
echo "You have $files files"
echo "There are $fq remaining in your qouta"
:
4. City College of San Francisco, Greg Boyd, cs160b, Shell Scripting (intro to) half-semester course. 160a was intro to unix. http://fog.ccsf.edu/~gboyd/cs160b/:
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
10 More Discussions You Might Find Interesting
1. Linux
Hi all,
Does anyone knows any good disk quota software for Linux?
I am trying to assign different disk quota allocation for different users and directories.
At moment I am using an FTP solution (Crush FTP, very good), I am able to specify quotas based on directories for each individual user, but... (3 Replies)
Discussion started by: KDE Man
3 Replies
2. UNIX for Advanced & Expert Users
I know very basic Unix commands s I would really appreciate the assistance of a Unix guru.
I am installing an application on a Sun server, when attempting to install I get an error that says I do not have enough space allocated for my install directory (/ACEMS). Error says it has 7235m but needs... (1 Reply)
Discussion started by: rhack
1 Replies
3. UNIX for Dummies Questions & Answers
I keep getting an error on my site that says:
The server is a 250gb dedicated server so I would have thought I had more than enough space. What does this actually mean and can I increase the disk quota?
Thanks (0 Replies)
Discussion started by: thehaapyappy
0 Replies
4. UNIX for Dummies Questions & Answers
I keep on getting an error on my site saying
I've got a 250GB dedicated server, and have used less than 200mb of that.
The site has only been on the server for just over a month.
What does this mean and how can I sort it? (8 Replies)
Discussion started by: thehaapyappy
8 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I am new to Unix admin. Can anyone tell me how to set disk quota for the users in /export/home directory? Pls specify the exact command. Thanks (1 Reply)
Discussion started by: solaris5.10
1 Replies
6. Shell Programming and Scripting
Hi,
I am executing following in the script file
cat rampIdent.CARE*.txt | rsort.exe -T $BULK_TMP_DIR > rampIdent.ALL.tmp.txt
The txt files are around 20 and each are of average size 60 MB.
rsort.exe is a program that combines and sorts the input given to it and writes output onto... (2 Replies)
Discussion started by: vadi
2 Replies
7. Red Hat
Hi ,
what are all the files will be edited when we are\
implememting disk quota for a user.
Thanks in advance (2 Replies)
Discussion started by: krish4linux
2 Replies
8. Emergency UNIX and Linux Support
I haven't been able to do anything since yesterday evening because my account is full to the brim. Very annoying on a Friday evening when no admin will be in until Monday morning. Of course, I might consider cleaning up if I knew where the problem is, but I can't figure it out because du and df... (8 Replies)
Discussion started by: mregine
8 Replies
9. Shell Programming and Scripting
This is the full file name I get when I do ls -lt from my current directory.
EXPORT_v1x0_20120811_11_T_065800_070000.dat.gz
File names also consist of date as well. In the above file date is 20120811.
So I am trying to delete all the files which starts with EXPORT_v1x0 and whose... (7 Replies)
Discussion started by: raihan26
7 Replies
10. Linux
There is a special problem for my unix. Disk quota exceed.
I use quota -v to check that I almost run out of my quota(I use 45M, limit for me is 50M).
However, I try to use du -sh * to locate my file, it shows me that I only use 9M. I'm wandering if there is something wrong. (3 Replies)
Discussion started by: yayayouknow
3 Replies
LEARN ABOUT LINUX
debconf-mergetemplate
DEBCONF-MERGETEMPLATE(1) Debconf DEBCONF-MERGETEMPLATE(1)
NAME
debconf-mergetemplate - merge together multiple debconf template files
SYNOPSIS
debconf-mergetemplate [options] [templates.ll ...] templates
DESCRIPTION
Note: This utility is deprecated. You should switch to using po-debconf's po2debconf program.
This program is useful if you have multiple debconf templates files which you want to merge together into one big file. All the specified
files will be read in, merged, and output to standard output.
This can be especially useful if you are dealing with translated template files. In this case, you might have your main template file, plus
several other files provided by the translators. These files will have translated fields in them, and maybe the translators left in the
english versions of the fields they translated, for their reference.
So, you want to merge together all the translated templates files with your main templates file. Any fields that are unique to the
translated files need to be added in to the correct templates, but any fields they have in common should be superseded by the fields in the
main file (which might be more up-to-date).
This program handles that case properly, just list each of the translated templates files, and then your main templates file last.
OPTIONS
--outdated
Merge in even outdated translations. The default is to drop them with a warning message.
--drop-old-templates
If a translation has an entire template that is not in the master file (and thus is probably an old template), drop that entire
template.
SEE ALSO
debconf-getlang(1)
AUTHOR
Joey Hess <joeyh@debian.org>
2012-09-10 DEBCONF-MERGETEMPLATE(1)