Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux:commands [2008/11/27 22:24] cyril +monitoring |
linux:commands [2012/06/10 13:14] cyril |
||
---|---|---|---|
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 < | ||
- | ^ Monitoring ^^ | + | | chgrp -R < |
+ | ^ Monitoring | ||
| top / htop / ps / free | processes (cpu, mem) | | | top / htop / ps / free | processes (cpu, mem) | | ||
| nettop / jnettop | network | | | nettop / jnettop | network | | ||
Line 47: | Line 51: | ||
| lshw | | | | lshw | | | ||
^ File content manipulation | ^ File content manipulation | ||
+ | | '' | ||
| '' | | '' | ||
| grep -r < | | grep -r < | ||
| '' | | '' | ||
| '' | | '' | ||
- | | perl -pi -e " | + | | '' |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
| '' | | '' | ||
+ | | '' | ||
| '' | | '' | ||
| iconv -f iso-8859-15 -t utf8 < | | iconv -f iso-8859-15 -t utf8 < | ||
| convmv -f iso-8859-15 -t utf8 -r < | | convmv -f iso-8859-15 -t utf8 -r < | ||
+ | | paste | merge files by concatenating columns | | ||
+ | ^ 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 ' |