This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
utils_commands [2020/05/07 23:15] xavier |
utils_commands [2020/06/06 11:42] (current) xavier |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Useful commands ====== | ====== Useful commands ====== | ||
| + | |||
| + | ===== Error investigation ===== | ||
| + | |||
| + | Unfreeze PC at kernel level:\\ | ||
| + | [[https://en.wikipedia.org/wiki/Magic_SysRq_key#Common_Usage]]\\ | ||
| + | |||
| + | Show error and warning messages:\\ | ||
| + | ''# dmesg -T --level=err,warn''\\ | ||
| + | |||
| + | Monitor message in real time:\\ | ||
| + | ''# dmesg -Tx --follow''\\ | ||
| + | |||
| + | Test RAM:\\ | ||
| + | ''# apt-get install memtester''\\ | ||
| + | ''# memtester 1024 5''\\ | ||
| + | (allocate 1024Mo and repeat 5 times)\\ | ||
| + | |||
| + | |||
| + | |||
| ===== Data management ===== | ===== Data management ===== | ||
| ==== File and directory size ==== | ==== File and directory size ==== | ||
| Line 34: | Line 53: | ||
| ==== Groups ==== | ==== Groups ==== | ||
| Create group:\\ | Create group:\\ | ||
| - | ''$ sudo addgroup readers''\\ | + | ''$ sudo addgroup goupname''\\ |
| Config file:\\ | Config file:\\ | ||
| ''/etc/group''\\ | ''/etc/group''\\ | ||
| + | Add user to group:\\ | ||
| + | ''$ sudo usermod -a -G groupname username''\\ | ||
| + | |||
| + | ===== Packages ===== | ||
| + | List installed packages:\\ | ||
| + | ''sudo apt list --installed''\\ | ||