User Tools

Site Tools


linux:installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux:installation [2017/02/13 10:15]
mstraub [Init Daemons]
linux:installation [2018/12/07 11:13]
mstraub [Mounting]
Line 76: Line 76:
 == hwclock == == hwclock ==
  
-The hardware clock can be read and set (by root only) with the ''​hwclock''​ command. The parameters ''​--utc''​ and ''​--localtime''​ tell if the hardware clock is / should be set to UTC or local time. +The hardware clock can be read and set (by root only) with the ''​hwclock''​ command. The parameters ''​%%--utc%%''​ and ''​%%--localtime%%''​ tell if the hardware clock is / should be set to UTC or local time. 
  
 **Note, however, that hwclock always prints and expects (when setting) date in local time.** **Note, however, that hwclock always prints and expects (when setting) date in local time.**
Line 291: Line 291:
 ===== Mounting ===== ===== Mounting =====
  
-The ''​mount''​ command and various files can be used to inquire the currently mounted devices and swap spaces.+The ''​findmnt''​ command and various files can be used to inquire the currently mounted devices and swap spaces.
 <code bash> <code bash>
-mount                  # show currently mounted devices+lsblk                  # list block devices (i.e. no network or virtual devices) 
 +findmnt ​               # show all currently mounted devices 
 +findmnt -t ext4,​cifs ​  # show mounted devices with a certain file system type 
 +mount                  # show all currently mounted devices ​(deprecated!)
 cat /​etc/​mtab ​         # .. cat /​etc/​mtab ​         # ..
 cat /​proc/​mounts ​      # .. cat /​proc/​mounts ​      # ..
Line 517: Line 520:
 Starting and stopping services works as follows: Starting and stopping services works as follows:
 <code bash> <code bash>
-service myservice ​start +systemctl ​start myservice 
-service ​myservice ​stop +systemctl stop myservice 
-service ​myservice status+systemctl ​status ​myservice
 </​code>​ </​code>​
  
 Logs of a service can be accessed via ''​journalctl'':​ Logs of a service can be accessed via ''​journalctl'':​
-<​code>​+<​code ​bash>
 journalctl -u myservice journalctl -u myservice
 </​code>​ </​code>​
linux/installation.txt · Last modified: 2019/10/21 14:09 by mstraub