@@ -6,6 +6,8 @@ A Beginners guide for Linux users
66
77[ System Related Commands] ( #system-related-commands )
88
9+ [ Hardware Related Commands] ( #hardware-related-commands )
10+
911[ File / Directory Related Commands] ( #file--directory-related-commands )
1012
1113## Bash Related Commands
@@ -116,6 +118,76 @@ A Beginners guide for Linux users
116118
117119 pacman -Ss
118120
121+ ## More to come
122+
123+ - Check the internet is working
124+
125+ ping google.com
126+
127+ - Check System and Kernel version
128+
129+ uname -a
130+
131+ - Check System version
132+
133+ cat /etc/os-release
134+
135+ - Check Kernel
136+
137+ uname -r
138+
139+ - Check hostname
140+
141+ hostname
142+
143+ - Check IP address
144+
145+ ip addr
146+
147+ - Check IP address (short)
148+
149+ ip a
150+
151+ - Check IP address (long)
152+
153+ ip address
154+
155+ - See user logged in
156+
157+ who
158+
159+ - See username
160+
161+ whoami
162+
163+ - Short information of logged in user
164+
165+ users
166+
167+ - See all users
168+
169+ cat /etc/passwd
170+
171+ - See all groups
172+
173+ cat /etc/group
174+
175+ - See all groups of a user
176+
177+ groups username
178+
179+ - See all users of a group
180+
181+ getent group groupname
182+
183+ - Reboot the system
184+
185+ sudo reboot
186+
187+ - Shutdown the system
188+
189+ sudo shutdown -h now / sudo poweroff / sudo halt / sudo init 0 / sudo systemctl poweroff
190+
119191- Check the current date and time
120192
121193 date
@@ -220,6 +292,80 @@ A Beginners guide for Linux users
220292
221293 sudo htop -o %CPU,%MEM -p -c -t
222294
295+ ## Hardware Related Commands
296+
297+ - See the system's hardware information
298+
299+ sudo lshw
300+
301+ - See the system's hardware information in a specific format
302+
303+ sudo lshw -short
304+
305+ - See the system's hardware information in a specific format and show only the network devices
306+
307+ sudo lshw -short -C network
308+
309+ - See the system's hardware information in a specific format and show only the network devices and show the network devices in a tree format
310+
311+ sudo lshw -short -C network -class network -tree
312+
313+ - Check the system's memory usage
314+
315+ free -h
316+
317+ - Check CPU information
318+
319+ lscpu
320+
321+ - Check Memory information
322+
323+ sudo dmidecode -t memory
324+
325+ - Check Disk information
326+
327+ sudo dmidecode -t memory
328+
329+ - Check USB information
330+
331+ lsusb
332+
333+ - Check PCI information
334+
335+ lspci
336+
337+ - Check Partitions
338+
339+ lsblk
340+
341+ - Check Partitions with root access
342+
343+ sudo lsblk
344+
345+ - Check Partitions with root access and show only the partitions
346+
347+ sudo lsblk -p
348+
349+ - Check Partitions with root access and show only the partitions and show the partitions in a tree format
350+
351+ sudo lsblk -p -t
352+
353+ - Mount a partition
354+
355+ sudo mount /dev/sda1 /mnt
356+
357+ - Unmount a partition
358+
359+ sudo umount /dev/sda1
360+
361+ - Mount a partition with root access and show only the partitions and show the partitions in a tree format
362+
363+ sudo lsblk -p -t
364+
365+ - Read Write Mount a partition
366+
367+ sudo mount -o rw /dev/sda1 /mnt
368+
223369## File / Directory Related Commands
224370
225371- Create a new directory
@@ -436,4 +582,4 @@ A Beginners guide for Linux users
436582
437583- Find a file
438584
439- - find . -name filename
585+ - find . -name filename
0 commit comments