Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _________________________________________
- / You two ought to be more careful--your \
- \ love could drag on for years and years. /
- -----------------------------------------
- \ ,__,
- \ (oo)____
- (__) )\
- ||--|| *
- [adam@tux ~]$ cat /etc/lsb-release
- DISTRIB_ID=LinuxMint
- DISTRIB_RELEASE=9
- DISTRIB_CODENAME=isadora
- DISTRIB_DESCRIPTION="Linux Mint 9 Isadora - Xfce"
- [adam@tux ~]$ w
- 12:27:35 up 1 day, 22:26, 2 users, load average: 1.11, 1.30, 1.18
- USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
- adam tty7 :0 12:19 46:26m 1:32 0.04s /bin/sh /etc/xd
- adam pts/0 :0.0 12:27 0.00s 0.77s 0.01s w
- [adam@tux ~]$ who
- adam tty7 2010-08-22 12:19 (:0)
- adam pts/0 2010-08-22 12:27 (:0.0)
- [adam@tux ~]$ ps -U rtc -a
- ERROR: User name does not exist.
- ********* simple selection ********* ********* selection by list *********
- -A all processes -C by command name
- -N negate selection -G by real group ID (supports names)
- -a all w/ tty except session leaders -U by real user ID (supports names)
- -d all except session leaders -g by session OR by effective group name
- -e all processes -p by process ID
- T all processes on this terminal -s processes in the sessions given
- a all w/ tty, including other users -t by tty
- g OBSOLETE -- DO NOT USE -u by effective user ID (supports names)
- r only running processes U processes for specified users
- x processes w/o controlling ttys t by tty
- *********** output format ********** *********** long options ***********
- -o,o user-defined -f full --Group --User --pid --cols --ppid
- -j,j job control s signal --group --user --sid --rows --info
- -O,O preloaded -o v virtual memory --cumulative --format --deselect
- -l,l long u user-oriented --sort --tty --forest --version
- -F extra full X registers --heading --no-heading --context
- ********* misc options *********
- -V,V show version L list format codes f ASCII art forest
- -m,m,-L,-T,H threads S children in sum -y change -l format
- -M,Z security data c true command name -c scheduling class
- -w,w wide output n numeric WCHAN,UID -H process hierarchy
- [adam@tux ~]$
- [adam@tux ~]$ cat /etc/lsb-release
- DISTRIB_ID=LinuxMint
- DISTRIB_RELEASE=9
- DISTRIB_CODENAME=isadora
- DISTRIB_DESCRIPTION="Linux Mint 9 Isadora - Xfce"
- [adam@tux ~]$ w
- 12:28:09 up 1 day, 22:26, 2 users, load average: 1.66, 1.42, 1.23
- USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
- adam tty7 :0 12:19 46:26m 1:38 0.04s /bin/sh /etc/xd
- adam pts/0 :0.0 12:27 0.00s 0.76s 0.00s w
- [adam@tux ~]$ who
- adam tty7 2010-08-22 12:19 (:0)
- adam pts/0 2010-08-22 12:27 (:0.0)
- [adam@tux ~]$ ps -U kipx -a
- PID TTY TIME CMD
- 15558 ? 00:00:00 gnome-keyring-d
- 20214 ? 00:00:00 gnome-keyring-d
- 27818 pts/0 00:00:00 ps
- [adam@tux ~]$ pkill -KILL -u kipx
- pkill: 15558 - Operation not permitted
- pkill: 20214 - Operation not permitted
- [adam@tux ~]$ su !!
- su pkill -KILL -u kipx
- su: invalid option -- 'K'
- Usage: su [options] [LOGIN]
- Options:
- -c, --command COMMAND pass COMMAND to the invoked shell
- -h, --help display this help message and exit
- -, -l, --login make the shell a login shell
- -m, -p,
- --preserve-environment do not reset environment variables, and
- keep the same shell
- -s, --shell SHELL use SHELL instead of the default in passwd
- [adam@tux ~]$ su pkill -kill -u kipx
- su: invalid option -- 'k'
- Usage: su [options] [LOGIN]
- Options:
- -c, --command COMMAND pass COMMAND to the invoked shell
- -h, --help display this help message and exit
- -, -l, --login make the shell a login shell
- -m, -p,
- --preserve-environment do not reset environment variables, and
- keep the same shell
- -s, --shell SHELL use SHELL instead of the default in passwd
- [adam@tux ~]$ sudo deluser kipx
- Removing user `kipx' ...
- Warning: group `kipx' has no more members.
- userdel: user kipx is currently logged in
- /usr/sbin/deluser: `/usr/sbin/userdel kipx' returned error code 8. Exiting.
- [adam@tux ~]$
- [adam@tux ~]$ cat /etc/lsb-release
- DISTRIB_ID=LinuxMint
- DISTRIB_RELEASE=9
- DISTRIB_CODENAME=isadora
- DISTRIB_DESCRIPTION="Linux Mint 9 Isadora - Xfce"
- [adam@tux ~]$ w
- 12:30:15 up 1 day, 22:28, 2 users, load average: 1.28, 1.43, 1.26
- USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
- adam tty7 :0 12:19 46:28m 2:01 0.04s /bin/sh /etc/xd
- adam pts/0 :0.0 12:27 0.00s 0.77s 0.01s w
- [adam@tux ~]$ who
- adam tty7 2010-08-22 12:19 (:0)
- adam pts/0 2010-08-22 12:27 (:0.0)
- [adam@tux ~]$ ps -U kipx -a
- PID TTY TIME CMD
- 15558 ? 00:00:00 gnome-keyring-d
- 20214 ? 00:00:00 gnome-keyring-d
- 29147 pts/0 00:00:00 ps
- [adam@tux ~]$ pkill -KILL -u kipx
- pkill: 15558 - Operation not permitted
- pkill: 20214 - Operation not permitted
- [adam@tux ~]$ sudo deluser kipx
- Removing user `kipx' ...
- Warning: group `kipx' has no more members.
- userdel: user kipx is currently logged in
- /usr/sbin/deluser: `/usr/sbin/userdel kipx' returned error code 8. Exiting.
- [adam@tux ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement