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 [2018/07/17 13:14]
mstraub
linux:installation [2019/10/02 11:02]
mstraub [Shared Libraries]
Line 68: Line 68:
 </​code>​ </​code>​
  
 +===== Hostname =====
 +
 +The host name is persisted in ''/​etc/​hostname''​ and can be shown with ''​hostname''​ or (using the systemd-way) with ''​hostnamectl''​.
 +
 +To change the host name
 +  - use ''​sudo hostname <​NAME>''​ to set the host name now (would not survive a reboot)
 +  - edit ''/​etc/​hostname''​ to set it permanently
 +  - edit ''/​etc/​hosts''​ to properly map the new host name to localhost
 +
 +Instead of the first two steps you can also use
 +<code bash>
 +hostnamectl set-hostname <​NAME>​
 +</​code>​
 ===== Date & Timezone ===== ===== Date & Timezone =====
  
Line 291: Line 304:
 ===== 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 ​      # ..
linux/installation.txt · Last modified: 2019/10/21 14:09 by mstraub