04-18-2013
Quote:
Originally Posted by
hanson44
Just to make sure, I did the same test on syslog. If you edit syslog (normally not a good idea), wait a while for something to be appended, write and exit vi, the newly added content is not there. The original poster thought syslog stopped working only because the newly added content was overwritten with the original file when vi saved/exited.
This could be insidious, actually. If the old file is deleted and a new one created, syslog
will apparently stop working, since the old, deleted file will remain on disk -- and keep getting written to -- until syslog rotates the file itself for some reason or the machine restarts.
What puzzles me is why anything under /var/log was being edited at all.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I run a decent size Solaris 8 network where we use host files and no DNS servers. I have a master host file to push out to all the machines (also would like to do system and services too) but, the only way I've ever been able to do it is buy telneting into the machine and ftping the file into place... (10 Replies)
Discussion started by: turbo90awd
10 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am parsing a very big file say 10 MB. It 'll take more than an hour ..I want to know the progress say in % .Is there any way to do that???
or
(Is there any way to know which line of the file I am in ) (2 Replies)
Discussion started by: sakthi.abdullah
2 Replies
3. UNIX for Dummies Questions & Answers
Hi, people.
I need some help with this:
i have this file " PROVEDP_???_yyyymmdd " , and i want to rename to this
" IN_PROV_yyyy???.dat " .
The " ??? " is the Month , but the file could be created on April, but the name coulb be March, for example.So i need to grab the 3 caracters
... (2 Replies)
Discussion started by: osramos
2 Replies
4. Shell Programming and Scripting
Hi..
Can Anyone out there help me? I need to write a script to convert a file in EDCIDC format to CSV
The files will be transfered through sftp to the box. Is there a way to check the file has finished being transfered or still transfering. so that my conversion task will be performed after... (3 Replies)
Discussion started by: ramukandada
3 Replies
5. Shell Programming and Scripting
Hi All
I have a script which drops a mail with the changes done on crontab file for every 1 hour
Can anyone pls tell me how can I modify the script so that it should display the terminal from which the crontab file hasbeen modified.
Quick responce much appriciated !!
Many thanks in... (7 Replies)
Discussion started by: jagadish_gaddam
7 Replies
6. Shell Programming and Scripting
how to use the filehandle stored in a variable without knowing its file association i.e. the filename
code
my $logFH = $connObj->get('logFH');
infoPrint("Variable is of type IO \n") if(UNIVERSAL::isa($logFH, 'IO'));
infoPrint("$logFH\n");
output
== INFO :: Variable is of type... (0 Replies)
Discussion started by: rrd1986
0 Replies
7. Emergency UNIX and Linux Support
Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time.
Please advice here.Thanks in advance.:b: (7 Replies)
Discussion started by: saluja.deepak
7 Replies
8. UNIX Desktop Questions & Answers
So I need some help with this. Pardon me if I'm posting in the wrong forum, after some googling for my answer and finding nothing I found this forum. It seemed appropriate for what I was seeking. I just didnt find a forum that concerned the use of GDB. I'm learning to use the C language and GDB.... (2 Replies)
Discussion started by: Cambria
2 Replies
9. Solaris
Hi,
I have a Solaris 10 box where password aging is not functioning properly. Using the passwd command with the -l or -u options causes the lastchg field in the /etc/shadow file to be modified. Therefore, if a user's password is set to expire in 90 days and they are 1 day away, all they have... (4 Replies)
Discussion started by: cschar
4 Replies
10. Shell Programming and Scripting
This question could be specific to the site subdivx.com In the past, I've been able to download a file following location using cURL but there is something about subdivx.com that's different and can't figure out how to get it to work.
I tried the following directly in the terminal with no... (5 Replies)
Discussion started by: MoonD
5 Replies
df_hfs(1M) df_hfs(1M)
NAME
df_hfs: df - report number of free CDFS, HFS, or NFS file system disk blocks
SYNOPSIS
FStype] specific_options] [special|directory]...
DESCRIPTION
The command displays the number of free 512-byte blocks and free inodes available for file systems by examining the counts kept in the
superblock or superblocks. If a special or a directory is not specified, the free space on all mounted file systems is displayed. If the
arguments to are path names, reports on the file systems containing the named files. If the argument to is a special of an unmounted file
system, the free space in the unmounted file system is displayed.
Options
recognizes the following options:
Report only the number of kilobytes (KB) free.
Report the total number of blocks allocated for swapping to the file system
as well as the number of blocks free for swapping to the file system. This option is supported on HFS file systems
only.
Report the number of files free.
Report only the actual count of the blocks in the free list
(free inodes are not reported). When this option is specified, reports on raw devices.
Report only on the
FStype file system type (see fstyp(1M)). For the purposes of this manual entry, FStype can be one of and for the
CDFS, HFS, and NFS file systems, respectively.
Report the entire structure described in
statvfs(2).
Report the total number of inodes,
the number of free inodes, number of used inodes, and the percentage of inodes in use.
Report the allocation in kilobytes (KB).
Report on local file systems only.
Report the file system name.
If used with no other options, display a list of mounted file system types.
Specify options specific to the HFS file system type.
specific_options is a comma-separated list of suboptions.
The available suboption is:
Report the number of used and free inodes.
Report the total allocated block figures and the number of free blocks.
Report the percentage of blocks used,
the number of blocks used, and the number of blocks free. This option cannot be used with other options.
Echo the completed command line, but perform no other action.
The command line is generated by incorporating the user-specified options and other information derived from This
option allows the user to verify the command line.
When is used on an HFS file system, the file space reported is the space available to the ordinary user, and does not include the reserved
file space specified by
Unreported reserved blocks are available only to users who have appropriate privileges. See tunefs(1M) for information about
When is used on NFS file systems, the number of inodes is displayed as -1 . This is due to superuser access restrictions over NFS.
EXAMPLES
Report the number of free disk blocks for all mounted file systems:
Report the number of free disk blocks for all mounted HFS file systems:
Report the number of free files for all mounted NFS file systems:
Report the total allocated block figures and the number of free blocks, for all mounted file systems:
Report the total allocated block figures and the number of free blocks, for the file system mounted as /usr:
WARNINGS
does not account for:
o Disk space reserved for swap space,
o Space used for the HFS boot block (8K bytes, 1 per file system),
o HFS superblocks (8K bytes each, 1 per disk cylinder),
o HFS cylinder group blocks (1K-8K bytes each, 1 per cylinder group),
o Inodes (currently 128 bytes reserved for each inode).
Non-HFS file systems may have other items that this command does not account for.
The option, from prior releases, has been replaced by the option.
FILES
File system devices.
Static information about the file systems
Mounted file system table
SEE ALSO
du(1), df(1M), fsck(1M), fstab(4), fstyp(1M), statvfs(2), mnttab(4).
STANDARDS CONFORMANCE
df_hfs(1M)