Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:commands [2007/12/16 23:44] 127.0.0.1 external edit |
linux:commands [2024/04/19 13:59] (current) cyril [List] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
===== Links ===== | ===== Links ===== | ||
Line 15: | Line 15: | ||
| pwd | print the current path | | | pwd | print the current path | | ||
| which < | | which < | ||
+ | | write < | ||
^ Kernel modules | ^ Kernel modules | ||
| lsmod | list modules | | | lsmod | list modules | | ||
Line 23: | Line 24: | ||
| rc-update add script.sh boot | add the script to the boot level | | | rc-update add script.sh boot | add the script to the boot level | | ||
^ Manage users ^^ | ^ Manage users ^^ | ||
- | | adduser -m -s /bin/zsh -g users cyril | add user cyril, ask creation of his home folder (-m), shell (-s), groups | + | | adduser -m -s /bin/zsh -g < |
| passwd cyril | change the password of user cyril (or yours if no user specified) | | | passwd cyril | change the password of user cyril (or yours if no user specified) | | ||
| groupadd < | | groupadd < | ||
| /etc/passwd | contains UID of users, home directory and shell used | | | /etc/passwd | contains UID of users, home directory and shell used | | ||
| /etc/shadow | contains crypted passwords of users | | | /etc/shadow | contains crypted passwords of users | | ||
- | | /etc/group | contains groups GIDs and list of users in (you can edit it to add users to groups) | + | | /etc/group | contains groups GIDs and list of users in | |
+ | | usermod -a -G < | ||
+ | | chsh -s /bin/zsh | change default shell of user | | ||
| userdel | delete user | | | userdel | delete user | | ||
| groupdel | delete group | | | groupdel | delete group | | ||
^ Manage permissions | ^ Manage permissions | ||
- | | chmod -R [u/ | + | | chmod -R [u/ |
| chmod -R 0222 | change permissions (octal : rwx=1+2+4 / ugo) | | | chmod -R 0222 | change permissions (octal : rwx=1+2+4 / ugo) | | ||
| chown -R < | | chown -R < | ||
+ | | chgrp -R < | ||
+ | ^ Monitoring | ||
+ | | top / htop / ps / free | processes (cpu, mem) | | ||
+ | | nettop / jnettop | network | | ||
+ | | lsof | opened files | | ||
+ | | w | connected users | | ||
+ | | pidstat | | | ||
+ | | atop | | | ||
^ System | ^ System | ||
| lspci | | | | lspci | | | ||
Line 40: | Line 51: | ||
| lshw | | | | lshw | | | ||
^ File content manipulation | ^ File content manipulation | ||
+ | | '' | ||
| '' | | '' | ||
- | | '' | + | | grep -r < |
| '' | | '' | ||
| '' | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
| '' | | '' | ||
+ | | '' | ||
| '' | | '' | ||
- | | '' | + | | iconv -f iso-8859-15 |
- | | '' | + | | convmv -f iso-8859-15 -t utf8 -r < |
+ | | paste | merge files by concatenating columns | | ||
+ | | numfmt --to=iec --format=" | ||
+ | ^ Programming | ||
+ | | nm [-D] / objdump / ldd / readelf [-s] | check infos about link and symbols in exe and libs | | ||
+ | | strace | list system calls a program issues | | ||
+ | |||
+ | tr ' |