File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ ========================================================
2
+ LINUX BASICS-DAY-1
3
+ ========================================================
4
+ --------------------------------------------------------
5
+ Prompt Description:
6
+ <username>@<hostname><current working directory>$
7
+ Unprivileged - User Shell Prompt: $
8
+ Privileged - Root Shell Prompt: #
9
+ ---------------------------------------------------------------------
10
+ Basic Information
11
+ ---------------------------------------------------------------------
12
+ hostname -Displays the system’s hostname.
13
+
14
+ uname -Prints basic information about the operating system name
15
+
16
+ hostnamectl --Provides system information, including the operating system version, kernel version
17
+
18
+ whoami -Displays the currently logged-in user.
19
+
20
+ who am i - Display only the line pointing to your current session
21
+
22
+ id- Shows user ID (UID) and group ID (GID) of the current user or specified user.
23
+
24
+ who - Shows users who is logged in and their terminal.
25
+
26
+ w - Displays information about users currently logged in and their activities.
27
+
28
+ last - Shows the last logins of users.
29
+
30
+ uptime - Displays how long the system has been running, along with load averages.
31
+
32
+ passwd --set the password
33
+ ---------------------------------------------------------------------
34
+ Manuals or Help
35
+ man
36
+ help
37
+ -------------------------------
38
+ Navigation
39
+ ------------------
40
+ pwd
41
+ ls
42
+ cd
43
+ ------------------
44
+ Creating file/directory
45
+ mkdir
46
+ mkdir -p
47
+ touch
You can’t perform that action at this time.
0 commit comments