rpi_common

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
rpi_common [2019/03/29 12:53] โ€“ Jรบne Parkrpi_common [2019/04/13 14:44] โ€“ [Upgrade Raspbian from Jessie to Stretch] Jรบne Park
Line 271: Line 271:
  
 ---- ----
 +==== Customize login messages ==== 
  
 +edit or append ''/etc/update-motd.d/xx-command'', where xx is arbitrary number to set priorities. 
 +
 +For example touch ''/etc/update-motd.d/20-disk'' with the following, 
 +
 +<code bash> 
 +#!/bin/sh
 +printf "\n"
 +df -h /dev/sd* --out=target,fstype --output=size,used,avail,pcent --type=ext4
 +printf "\n"
 +</code> 
 +
 +shows size of disk, used and available capacities of ''ext4'' format disk(es). 
 +
 +<code ini> 
 +Mounted on             Type  Size  Used Avail Use%
 +/home/userid/disk1     ext4  917G  338G  533G  39%
 +/home/userid/disk2     ext4  458G  307G  128G  71% 
 +</code> 
 +
 +----
  • rpi_common
  • Last modified: 2024/04/18 08:52
  • by Jรบne Park