-
Notifications
You must be signed in to change notification settings - Fork 0
/
features.txt
67 lines (45 loc) · 2.29 KB
/
features.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Uptime, IdleTime and Idle percentage___________________DONE
Command : cat proc/uptime______________________________
memory information____________________________________
Command : cat /proc/meminfo___________________________DONE
* Swap memory info____________________________________
* RAM memory info_____________________________________
system information
command : uname
options : -s -r -v ect.
-a, --all
print all information, in the following order, except omit -p and -i if
unknown:
-s, --kernel-name
print the kernel name
-n, --nodename
print the network node hostname
-r, --kernel-release
print the kernel release
-v, --kernel-version
print the kernel version
-m, --machine
print the machine hardware name
-p, --processor
print the processor type (non-portable)
-i, --hardware-platform
print the hardware platform (non-portable)
-o, --operating-system
print the operating system
--help display this help and exit
--version
output version information and exit
power and battery commands/files
Command : cat /sys/class/power_supply/ACAD/uevent________________________________________________
To get power plugged on or off_______________________________________________________DONE________
Command : cat sys/class/power_supply/BAT1/status (alternative to above)________________________________
Command : cat /sys/class/power_supply/BAT1/capacity (to get battery percentage)________________________________
Command : cat /sys/class/power_supply/BAT1/capacity_level (to get battery level)________________________________
Command : cat /sys/class/power_supply/BAT1/uevent (to get all details)________________________________
CPU usage (core wise)
Command : cat /proc/loadavg
Command : cat /proc/stat (better as it gives core wise usage)
Output : CPU usage in the last minute, last five minutes, and last 10 minutes, as well as the number of currently running processes.
Zombie Proccesses
For example, if you want to hunt for zombie processes, you could scan all numbered directories and check whether “(Z) Zombie” appears in the /status file
System Name : tejas@nimbostratus