hello
Sorry but i don't understand very well the lsof command with the man.
Can you explain to me what is the use of this command ?
thank you (2 Replies)
Using lsof command i can find out which process-id is associated with the port.
lsof -i :51000
. But as part of process i cant have lsof in the server.
I am using sun solaris 8 and only kshell. Is there a way to find out which process is using the above port. as of now i am gettn port... (1 Reply)
Hi All,
i want the last login details along with year.
i tried below command but not giving me the year of last login.
last <$Userid> | head -1
i heard that if it is current year then it wont display the year else it will display the year. is it so?
if yes then , is there any way of... (1 Reply)
Hi All,
i want the last login details along with year.
i tried below command but not giving me the year of last login.
last <$Userid> | head -1
i heard that if it is current year then it wont display the year else it will display the year. is it so?
if yes then , is there any way of... (1 Reply)
Hello,
i am developing a simple shell script for simulation of wc command but it's not working.Please tell me what is the problem. I have commented the problematic line
if
then
echo "<Improper Usage>"
echo "wcassg <options> file"
else
eval file=\$$#
if
then
chars=0
words=0... (2 Replies)
Hi,
Can anyone explain me the difference between fsuer and lsof commands. As per my knowledge both the commands are used to find the processes used by the current file system or user. Apart from that what is the major difference between these commands (3 Replies)
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Hi,
i have a source file and have 3 columns and separated by "|" .i want to split this 3 columns in different variable.When i am executing this values indivisually giving correct result but when the same execute inside a for loop,it's giving issues.
Src file(jjj.txt)
-------... (8 Replies)
Hi,
I am trying to find the files in a specific directory that are currently in open state. I need this information to archive the old files that are not active in the directory.
I get the following output when I try the command $ lsof +d '/var/tmp/'|awk '{print $9}'|sort -u
NAME... (1 Reply)
Discussion started by: ryzen7
1 Replies
LEARN ABOUT FREEBSD
utx
UTX(8) BSD System Manager's Manual UTX(8)NAME
utx -- manage the user accounting database
SYNOPSIS
utx boot
utx shutdown
utx rm identifier ...
DESCRIPTION
The utx utility can be used to perform operations on the user accounting database, as done by pututxline(3).
The first argument to utx indicates an action to be performed:
boot Write a boot time record to the user accounting database. This option should typically only be used by rc(8).
shutdown Write a shutdown time record to the user accounting database. This option should typically only be used by rc(8).
rm Remove stale sessions from the user accounting database, by referring to their identifier. Stale sessions can occur if a login
service exits prematurely or fails to remove the session from the accounting database.
Utilities such as w(1) will not display the identifier corresponding with a login session, since its value is typically only of use
by the process managing the record. The following command can be used to obtain all records from the user accounting database's
active session table, including its identifiers:
getent utmpx active
Identifiers can either be supplied in hexadecimal form as displayed by getent(1), or as a string if the identifier allows such a
representation.
Because this utility requires write-access to the user accounting database, its use is limited to the super-user.
SEE ALSO getent(1), w(1), pututxline(3)HISTORY
The utx utility replaced utxrm in FreeBSD 10.0.
AUTHORS
Ed Schouten <ed@FreeBSD.org>
BSD November 3, 2013 BSD