Skip to content

Commit 14fe915

Browse files
authoredFeb 14, 2024
Update Linux-cheat-sheet.md
1 parent d0ba381 commit 14fe915

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
 

‎Tutorial-Files/Linux-cheat-sheet.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151

5252
```bash
5353
$ group
54-
sj: sj, adm, cdrom, sudo, dip, plugdev, lpadmin, lxd, sambashare
54+
pavankumar: pavankumar, adm, cdrom, sudo, dip, plugdev, lpadmin, lxd, sambashare
5555
```
5656

5757
5. **finger:** Used to check the information of any currently logged in users. i.e, It displays users login time, tty (name), idle time, home directory, shell name etc.
5858

5959
```bash
6060
$ finger
61-
Login Name Tty Idle Login Time Office Office Phone
62-
sj sj *:0 Mar 29 01:27 (:0)
61+
Login Name Tty Idle Login Time Office Office Phone
62+
pavankumar pavankumar *:0 Mar 29 01:27 (:0)
6363
```
6464

6565
This may not be available by default in many linux machines. In this case, you need to install it manually.
@@ -71,7 +71,7 @@
7171

7272
```bash
7373
$ users
74-
sj
74+
pavankumar
7575
```
7676

7777
7. **grep:** It is a powerful pattern searching tool to find information about a specific user from the system accounts file: /etc/passwd.
@@ -89,8 +89,8 @@
8989
Example:
9090
w
9191
18:45:04 up 2:09, 1 user, load average: 0.09, 0.07, 0.02
92-
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
93-
sj :0 :0 01:27 ?xdm? 1:14 0.01s /usr/lib/gdm3/g
92+
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
93+
pavankumar :0 :0 01:27 ?xdm? 1:14 0.01s /usr/lib/gdm3/g
9494
```
9595

9696
9. **last or lastb:** Displays a list of last logged in users on the system. You can pass user names to display their login and hostname details.
@@ -101,11 +101,11 @@
101101
Example:
102102
103103
last
104-
sj :0 :0 Fri Aug 28 01:27 gone - no logout
104+
pavankumar :0 :0 Fri Aug 28 01:27 gone - no logout
105105
reboot system boot 5.4.0-29-generic Fri Aug 28 01:27 still running
106-
sj :0 :0 Wed Jul 29 11:46 - crash (29+13:40)
106+
pavankumar :0 :0 Wed Jul 29 11:46 - crash (29+13:40)
107107
reboot system boot 5.4.0-29-generic Wed Jul 29 11:45 still running
108-
sj :0 :0 Thu May 14 21:04 - crash (75+14:41)
108+
pavankumar :0 :0 Thu May 14 21:04 - crash (75+14:41)
109109
reboot system boot 5.4.0-29-generic Thu May 14 21:03 still running
110110
111111
wtmp begins Sun Jan 28 21:03:56 2024

0 commit comments

Comments
 (0)