User Tools

Site Tools


useful_commands

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
useful_commands [2019/09/27 20:35] dinouseful_commands [2022/10/18 15:31] dino
Line 1: Line 1:
 +**Basic info about your distribution**\\
 +<code>cat /etc/os-release</code>\\
 +
 +**What is my computer's ip address**\\
 +<code>hostname -I </code> or \\
 +<code>ip -s -c -h a</code> 
 +
 **How to restart your network connection**\\ **How to restart your network connection**\\
 <code>sudo service network-manager restart</code> <code>sudo service network-manager restart</code>
 +
 +**See which tasks and processes are running**\\
 +<code>top</code>
 +
 +**Which linux kernel/version**\\
 +<code>uname -a</code>   
 +
 +**How much RAM memory is used**\\
 +<code>free -m</code>
 +
 +**How to find out exact installation date of your Linux OS**\\
 +<code>sudo su</code>
 +<code>fs=$(df / | tail -1 | cut -f1 -d' ') && tune2fs -l $fs | grep created</code>
 +
 +**See sources list your OS is using**\\
 +<code>cat /etc/apt/sources.list</code>
 +
 +**Run an app as root**\\             
 +<code>sudo caja</code> 
 +
 +**List all installed packages**\\                 
 +<code>dpkg --list</code>             
 +
 +**Update and/or delete an app**\\
 +<code>
 +sudo apt-get upgrade firefox            <-- update an app
 +sudo apt-get remove “package-name”      <-- delete app
 +sudo apt-get purge “package-name”       <-- delete apps + settings
 +sudo apt-get autoremove                 <-- remove all dependencies you don't need
 +sudo apt autoclean && sudo apt autoremove
 +</code>
 +
 +**Enable firewall**\\
 +<code>sudo ufw enable</code>
 + 
 +**Disable firewall**\\
 +<code>sudo ufw disable  </code>
 +
 +**Show your PC specifications**\\
 + <code>inxi -Frxzc0 </code>           
 +
 +**Output of a command to a text file**\
 +fx
 +
 +<code>dpkg --list --> app_list.txt</code>
 +
 +
 +**Shortcut to shutdown/restart/suspend**\\
 +CTRL+DEL+END
 +
 +
 +**Quick I need an txt editor**\\
 +
 +This key combination fires up, an editor in the terminal, instantaneously:
 +
 +Ctrl+x+e
 +
 +
useful_commands.txt · Last modified: 2024/03/12 21:23 by 127.0.0.1