File tree Expand file tree Collapse file tree 7 files changed +38
-38
lines changed Expand file tree Collapse file tree 7 files changed +38
-38
lines changed Original file line number Diff line number Diff line change 55
66- Display the current time as reported by the hardware clock:
77
8- ` hwclock `
8+ ` sudo hwclock`
99
1010- Write the current software clock time to the hardware clock (sometimes used during system setup):
1111
12- ` hwclock {{[-w|--systohc]}} `
12+ ` sudo hwclock {{[-w|--systohc]}}`
1313
1414- Write the current hardware clock time to the software clock:
1515
16- ` hwclock {{[-s|--hctosys]}} `
16+ ` sudo hwclock {{[-s|--hctosys]}}`
Original file line number Diff line number Diff line change 1313
1414- List verbose information about USB devices:
1515
16- ` lsusb {{[-v|--verbose]}} `
16+ ` sudo lsusb {{[-v|--verbose]}}`
1717
1818- List detailed information about a USB device:
1919
20- ` lsusb {{[-v|--verbose]}} -s {{bus}}:{{device number}} `
20+ ` sudo lsusb {{[-v|--verbose]}} -s {{bus}}:{{device number}}`
2121
2222- List devices with a specified vendor and product ID only:
2323
Original file line number Diff line number Diff line change 66
77- Display information about logical volumes:
88
9- ` lvs `
9+ ` sudo lvs`
1010
1111- Display all logical volumes:
1212
13- ` lvs {{[-a|--all]}} `
13+ ` sudo lvs {{[-a|--all]}}`
1414
1515- Change default display to show more details:
1616
17- ` lvs {{[-v|--verbose]}} `
17+ ` sudo lvs {{[-v|--verbose]}}`
1818
1919- Display only specific fields:
2020
21- ` lvs {{[-o|--options]}} {{field_name_1}},{{field_name_2}} `
21+ ` sudo lvs {{[-o|--options]}} {{field_name_1}},{{field_name_2}}`
2222
2323- Append field to default display:
2424
25- ` lvs {{[-o|--options]}} +{{field_name}} `
25+ ` sudo lvs {{[-o|--options]}} +{{field_name}}`
2626
2727- Suppress heading line:
2828
29- ` lvs --noheadings `
29+ ` sudo lvs --noheadings`
3030
3131- Use a separator to separate fields:
3232
33- ` lvs --separator {{=}} `
33+ ` sudo lvs --separator {{=}}`
Original file line number Diff line number Diff line change 66
77- Display information about physical volumes:
88
9- ` pvs `
9+ ` sudo pvs`
1010
1111- Display non-physical volumes:
1212
13- ` pvs {{[-a|--all]}} `
13+ ` sudo pvs {{[-a|--all]}}`
1414
1515- Change default display to show more details:
1616
17- ` pvs {{[-v|--verbose]}} `
17+ ` sudo pvs {{[-v|--verbose]}}`
1818
1919- Display only specific fields:
2020
21- ` pvs {{[-o|--options]}} {{field_name_1}},{{field_name_2}} `
21+ ` sudo pvs {{[-o|--options]}} {{field_name_1}},{{field_name_2}}`
2222
2323- Append field to default display:
2424
25- ` pvs {{[-o|--options]}} +{{field_name}} `
25+ ` sudo pvs {{[-o|--options]}} +{{field_name}}`
2626
2727- Suppress heading line:
2828
29- ` pvs --noheadings `
29+ ` sudo pvs --noheadings`
3030
3131- Use separator to separate fields:
3232
33- ` pvs --separator {{special_character}} `
33+ ` sudo pvs --separator {{special_character}}`
Original file line number Diff line number Diff line change 66
77- Enable ` ufw ` :
88
9- ` ufw enable `
9+ ` sudo ufw enable`
1010
1111- Disable ` ufw ` :
1212
13- ` ufw disable `
13+ ` sudo ufw disable`
1414
1515- Show ` ufw ` rules, along with their numbers:
1616
17- ` ufw status numbered `
17+ ` sudo ufw status numbered`
1818
1919- Allow incoming traffic on port 5432 on this host with a comment identifying the service:
2020
21- ` ufw allow 5432 comment "{{Service}}" `
21+ ` sudo ufw allow 5432 comment "{{Service}}"`
2222
2323- Allow only TCP traffic from 192.168.0.4 to any address on this host, on port 22:
2424
25- ` ufw allow proto tcp from 192.168.0.4 to any port 22 `
25+ ` sudo ufw allow proto tcp from 192.168.0.4 to any port 22`
2626
2727- Deny traffic on port 80 on this host:
2828
29- ` ufw deny 80 `
29+ ` sudo ufw deny 80`
3030
3131- Deny all UDP traffic to ports in range 8412:8500:
3232
33- ` ufw deny proto udp from any to any port 8412:8500 `
33+ ` sudo ufw deny proto udp from any to any port 8412:8500`
3434
3535- Delete a particular rule. The rule number can be retrieved from the ` ufw status numbered ` command:
3636
37- ` ufw delete {{rule_number}} `
37+ ` sudo ufw delete {{rule_number}}`
Original file line number Diff line number Diff line change 66
77- Display information about volume groups:
88
9- ` vgs `
9+ ` sudo vgs`
1010
1111- Display all volume groups:
1212
13- ` vgs {{[-a|--all]}} `
13+ ` sudo vgs {{[-a|--all]}}`
1414
1515- Change default display to show more details:
1616
17- ` vgs {{[-v|--verbose]}} `
17+ ` sudo vgs {{[-v|--verbose]}}`
1818
1919- Display only specific fields:
2020
21- ` vgs {{[-o|--options]}} {{field_name_1}},{{field_name_2}} `
21+ ` sudo vgs {{[-o|--options]}} {{field_name_1}},{{field_name_2}}`
2222
2323- Append field to default display:
2424
25- ` vgs {{[-o|--options]}} +{{field_name}} `
25+ ` sudo vgs {{[-o|--options]}} +{{field_name}}`
2626
2727- Suppress heading line:
2828
29- ` vgs --noheadings `
29+ ` sudo vgs --noheadings`
3030
3131- Use separator to separate fields:
3232
33- ` vgs --separator = `
33+ ` sudo vgs --separator =`
Original file line number Diff line number Diff line change 66
77- Synchronize list of packages and versions available:
88
9- ` zypper {{[ref|refresh]}} `
9+ ` sudo zypper {{[ref|refresh]}}`
1010
1111- Install a new package:
1212
13- ` zypper {{[in|install]}} {{package}} `
13+ ` sudo zypper {{[in|install]}} {{package}}`
1414
1515- Remove a package:
1616
17- ` zypper {{[rm|remove]}} {{package}} `
17+ ` sudo zypper {{[rm|remove]}} {{package}}`
1818
1919- Upgrade installed packages to the newest available versions:
2020
21- ` zypper {{[up|update]}} `
21+ ` sudo zypper {{[up|update]}}`
2222
2323- Search package via keyword:
2424
You can’t perform that action at this time.
0 commit comments