09-15-2005
After a call to unlink() that set the inode link count to zero, the kernel keeps the file out there until all processes file descriptors are closed for that file.
So an inactive process that has the file open will keep the file there forever.
As blowtorch suggested lsof or fuser are the best choices for finding and killing processes that have the file open.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi...
question is this:
How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure.
... (4 Replies)
Discussion started by: soulshaker
4 Replies
2. UNIX for Dummies Questions & Answers
hi, i ran tty and get this /dev/pts/1?
what does /dev/pts/1 indicates about my terminal and the device files? thanks (4 Replies)
Discussion started by: yls177
4 Replies
3. UNIX for Dummies Questions & Answers
i log in as root and is in pts/11 , do a who -uH, got the below
root pts/11 Dec 11 08:01 0:10 11588
root pts/12 Dec 11 09:09 0:03 12001
now do a ps -ef | grep pts/12, get the below
root 12133 12107 0 09:18:22 pts/13 0:00 vi myoracle
root 12107 12105 ... (3 Replies)
Discussion started by: yls177
3 Replies
4. UNIX for Dummies Questions & Answers
im ultra new at unix and was wondering if its possible to create aliases of the write command that send messeges to users using an ip address. i was thinking to use the '|awk' with the command finger but as i've said im a total newbie. thanks a lot in advance. (2 Replies)
Discussion started by: swag:þ
2 Replies
5. UNIX for Dummies Questions & Answers
My apologies in advance if this question has already been asked or if I use incorrect terminology; I have tried searching for nearly an hour without any luck.
Is there any way to change the active TTY for a session? I was monitoring a long (~5 hour) process through an SSH connection and the... (4 Replies)
Discussion started by: tspicher
4 Replies
6. UNIX for Dummies Questions & Answers
hi iam very new to linux can anyone tell me about pts and tty
acctually today morning i logged into my pc at 9:51
when i have given #who
it has given
sam tty7 9:51
sam pts/1 10:11
so what does it mean (1 Reply)
Discussion started by: praneel2k
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
i am using finch (unix commandline instant messaging client using libgnt) which is running connected to /dev/pts/1
Now I would like to "remote control" the program by sending the key combinations normally typed on the keyboard from a programm in another shell. So I tried:... (0 Replies)
Discussion started by: mentos
0 Replies
8. UNIX for Advanced & Expert Users
I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access. # mount -t cifs //servername/sharename /mnt/temp -o password=""
mount error 13 = Permission denied Refer to the... (3 Replies)
Discussion started by: humbletech99
3 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I´m working with an m4000 server, with solaris 11. the problem is when users connect to the server, I have the range from pts/65 to pts/128 "blocked". The system does not take any pts of that range. Usually a close all the connections and the problem is solved, but this time that solution... (3 Replies)
Discussion started by: salvador_cast
3 Replies
LEARN ABOUT CENTOS
lssubsys
LSSUBSYS(1) libcgroup Manual LSSUBSYS(1)
NAME
lssubsys - list hierarchies containing given subsystem
SYNOPSIS
lssubsys [-m|--mount-points] [-M|--all-mount-points] [controller] [...]
lssubsys [-m|--mount-points] [-M|--all-mount-points] [-i|--hierarchies] [-a|--all]
lssubsys [-h|--help]
DESCRIPTION
lssubsys list the hierarchies containing the given subsystem(s). If no subsystem is defined, it displays all mounted hierarchies.
controller
defines the subsystem whose hierarchy is shown. If this parameter is not used, the command will list all mounted subsystems.
-m, --mount-points
Display mount points. Only the first mount points of shown hierarchies are displayed.
-M, --all-mount-points
Display mount points. All mount points of shown hierarchies are displayed, each on separate line.
-a, --all
Display all subsystems (including unmounted ones).
-i, --hierarchies
Display the attached hierarchy number if the subsystem is in a hierarchy. If the option -m is also used, the hierarchy number is
shown only for unmounted hierarchies.
-h, --help
Display help and exit.
EXAMPLE
The command lssubsys -am lists all subsystems which are present in the system, mounted ones will be shown with their mount point:
$ lssubsys -am
ns
cpuset
cpu,devices
cpuacct /cgroup/cpuacct
memory /cgroup/memory
freezer /cgroup/freezer
net_cls /cgroup/net_cls
The command lssubsys -ami lists all subsystems which are present in the system, mounted subsystems are listed with their mount points,
unmounted ones which are in a hierarchy are listed with their hierarchy number:
$ lssubsys -ami
ns
cpuset 5
cpu,devices 6
cpuacct /cgroup/cpuacct
memory /cgroup/memory
freezer /cgroup/freezer
net_cls /cgroup/net_cls
ENVIRONMENT VARIABLES
CGROUP_LOGLEVEL
controls verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.
SEE ALSO
lscgroup (1), cgcreate (1), cgdelete (1), cgconfig.conf (5)
Linux 2009-11-05 LSSUBSYS(1)