Useful console commands

Some linux commands that I’ll probably need in the future User management Add user to a group sudo usermod -aG group user or sudo adduser <user> <group> Delete user userdel user Delete the user’s home directory and mail spool: userdel -r user Remove user from a group sudo gpasswd -d user group list all users: $ getent passwd list all groups: $ getent group list all groups of the current user:...

June 9, 2017 · SergeM

Shell commands (page moved)

Page moved here

January 8, 2017 · SergeM

terminal setup in linux mint

Installation sudo apt-get install tmux Commands In tmux, hit the prefix ctrl+b (my modified prefix is ctrl+a) and then: ###Sessions :new<CR> new session s list sessions $ name session ###Windows (tabs) c create window w list windows n next window p previous window f find window , name window & kill window Panes (splits) % vertical split " horizontal split o swap panes q show pane numbers x kill pane + break pane into window (e....

August 7, 2016 · SergeM

linux life

Good start 1 sudo apt install -y mc curl jq wget htop hwinfo nmap vim Some commands top - see running processes df - check free disk space baobab - free disk space screen - multiple virtual consoles in one real [ref], need installation in ubuntu mc - file manager ccsm - disabling smooth fades and animations (speedup interface, especially useful in VirtualBox) sudo apt-get install compizconfig-settings-manager then ccsm Set up SFTP server How to set up an SFTP server on Linux - some commands are broken (wrong paths and users) but in general works See also more here Ubuntu customization: ubuntu-linux-settings Mount windows shares in linux

June 2, 2014 · SM!

Десятка лучших консольных команд

источник Десятое место Ввод последнего аргумента недавних команд. Удерживая ALT или ESC, с каждым нажатием на точку в строку ввода будут подставляться параметры предыдущих команд, начиная от недавно введенных к старым. Комбинация 'ALT+.' или '<ESC> .' Девятое место Переинициализация терминала без завершения текущей сессии. Например, в случае когда в терминал были выведены двоичные данные и он перестал корректно работать. reset Восьмое место Создает пустой файл. Уничтожает содержимое файла без его удаления....

October 22, 2013 · SergeM