09-13-2006
There are two possibilities I can think of offhand.
1. The filesystem for those has problems. see man fsck (or whatever utility anlyzes filesystems for you). Try this first.
2. Since ls returns something different from another "non-standard" utility and ls returns fewer files, consider that your system may have a rootkit installed. This behavior -underreporting files - is a common symptom of that. ls, quota, find, and other binaries - sometimes even kernel modules in Linux - are compromised so as to not show files. Or report the disk space they use.
I'm making guesses here - there is no way to know.
What OS do you have?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
] && exit 0
Although it, the $answer, is 'y', the test operation returns true.
&& exit 0
This works but I want to do multiple choice matching.
I don't want to do like:
Please help (2 Replies)
Discussion started by: lalelle
2 Replies
2. Shell Programming and Scripting
Hi all
I have a file with below content (content is variable whenever new product is launched). I need form a grep command like this
egrep "Unknown product|Invalid symboland so on"
How to do it using a script?
Unknown product
Invalid symbol
No ILX exch found
exceeds maximum size
AFX... (4 Replies)
Discussion started by: johnl
4 Replies
3. AIX
Hi all,
I have two instance of jboss (jboss and jboss2). In a shell script that I am writing, I need to grep for each instance of jboss.
If i use ps -ef|grep 'jboss', it will also return the process for my second instance of jboss, which is jboss2. Can someone tell me how can i specify the... (1 Reply)
Discussion started by: haroon_a
1 Replies
4. AIX
In ksh is there a was to scroll thru all matching commands? For example I executed several commands over several days. Is there a way to scroll thru all the matching 'find' commands only that was executed?
No messing with the .history file. Anyway to do this from the command prompt? TIA. (3 Replies)
Discussion started by: Un1xNewb1e
3 Replies
5. Shell Programming and Scripting
Alo
I have this input:
0x10=some text
0x20=some text
0x30=some text
and want this output:
16=some text
32=some text
48=some text
I want to use a command to convert from hex to decimal i.e.:
$ echo $((0x15a))
or
$ printf '%d\n' 0x15a
I try to use something like this:
sed... (5 Replies)
Discussion started by: chitech
5 Replies
6. Shell Programming and Scripting
I have the following code. I want to remove the --sort=num/num/... and am
using grep to exclude it as shown below:
I have a bit of problem figuring out the use of - at the front
echo "--sort=4/5/6" | grep -ivE '-((sort|group)=+/+(/+)*)$'
Now suppose I want to remove --quiet
I can... (7 Replies)
Discussion started by: kristinu
7 Replies
7. Shell Programming and Scripting
Hello,
I've had a look at the printf modifiers, but so far I haven't had much luck in making it do what I need.
I need to make it output with a set number of characters every time: whether it's by adding zeros at the end or by rounding, the output has to have the same number of characters in it,... (2 Replies)
Discussion started by: Leo_Boon
2 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
I need to print directories using find command. The directories names contain date in the format YYYYMMDD or the name of directory is only the date format. I want print directories, which doesn't start with this date.
E.g I have dirs like
foo20120101
foo20120101foo
20120101foo... (1 Reply)
Discussion started by: satin1321
1 Replies
9. Shell Programming and Scripting
we want to fetch the latest file in a given directory and also the file name should match the below pattern
Example file name ->hrdata-2015-10-13-16-45-26.xml(2015-10-13-16-45-26- it is not current timestamp, we just need to check for the pattern)
We expect the file will have the... (3 Replies)
Discussion started by: vishwanath001
3 Replies
10. Shell Programming and Scripting
This is the command output need to be matched:
Telnet console listening to port 42365.
(the port number changes every time)
Code to test it:
=======================================
#!/tools/AGRtools/bin/expect
exp_internal 1
set timeout 10
spawn bash
set bashId $spawn_id
... (4 Replies)
Discussion started by: marsala
4 Replies
LEARN ABOUT OPENDARWIN
quotacheck
QUOTACHECK(8) BSD System Manager's Manual QUOTACHECK(8)
NAME
quotacheck -- filesystem quota consistency checker
SYNOPSIS
quotacheck [-g] [-u] [-v] filesystem ...
quotacheck [-g] [-u] [-v] -a
DESCRIPTION
Quotacheck examines each filesystem, builds a table of current disk usage, and compares this table against that recorded in the disk quota
file for the filesystem. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are
updated (the latter only occurs if an active filesystem is checked). By default both user and group quotas are checked.
Available options:
-a If the -a flag is supplied in place of any filesystem names, quotacheck will check all the read-write filesystems with an existing
mount option file at its root. The mount option file specifies the types of quotas that are to be checked.
-g Only group quotas are checked. The mount option file, .quota.ops.group, must exist at the root of the filesystem.
-u Only user quotas are checked. The mount option file, .quota.ops.user, must exist at the root of the filesystem.
-v quotacheck reports discrepancies between the calculated and recorded disk quotas.
Specifying both -g and -u is equivalent to the default. Parallel passes are run on the filesystems required, in an identical fashion to
fsck(8).
Normally quotacheck operates silently.
Quotacheck expects each filesystem being checked to have quota data files named .quota.user and/or .quota.group located at the filesystem
root. If a binary data file is not present, quotacheck will create it. The default filename and root location cannot be overridden.
Quotacheck is normally run at fsck time.
Quotacheck accesses the raw device in calculating the actual disk usage for each user. Thus, the filesystems checked should be quiescent
while quotacheck is running.
FILES
Each of the following quota files is located at the root of the mounted filesystem. The mount option files are empty files whose existence
indicates that quotas are to be enabled for that filesystem. The binary data files will be created by quotacheck, if they don't already
exist.
.quota.user data file containing user quotas
.quota.group data file containing group quotas
.quota.ops.user mount option file used to enable user quotas
.quota.ops.group mount option file used to enable group quotas
SEE ALSO
quota(1), quotactl(2), edquota(8), fsck(8), quotaon(8), repquota(8)
HISTORY
The quotacheck command appeared in 4.2BSD.
4.2 Berkeley Distribution October 17, 2002 4.2 Berkeley Distribution