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/28 17:46] 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>
Line 7: Line 14:
 **Which linux kernel/version**\\ **Which linux kernel/version**\\
 <code>uname -a</code>    <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**\\ **See sources list your OS is using**\\
Line 12: Line 26:
  
 **Run an app as root**\\              **Run an app as root**\\             
-<code>sudo nemo</code> +<code>sudo caja</code> 
  
 **List all installed packages**\\                  **List all installed packages**\\                 
 <code>dpkg --list</code>              <code>dpkg --list</code>             
  
- +**Update and/or delete an app**\\ 
-sudo apt-get upgrade firefox            update an app +<code> 
-sudo apt-get remove “package-name”    delete app +sudo apt-get upgrade firefox            <-- update an app 
-sudo apt-get purge “package-name”        delete apps + settings +sudo apt-get remove “package-name”      <-- delete app 
-sudo apt-get autoremove                         remove all dependencies you don't need+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 sudo apt autoclean && sudo apt autoremove
 +</code>
  
 +**Enable firewall**\\
 +<code>sudo ufw enable</code>
 + 
 +**Disable firewall**\\
 +<code>sudo ufw disable  </code>
  
-inxi -Frxzc0                                                     shows your pc specs +**Show your PC specifications**\\ 
-sudo ufw enable                enable firewall + <code>inxi -Frxzc0 </code>            
-sudo ufw disable                disable firewall + 
-SomeCommand > SomeFile.txt             output of a command to a text file (dpkg --list > applist.txt)+**Output of a command to a text file**\ 
 +fx 
 + 
 +<code>dpkg --list --app_list.txt</code>
  
  
 **Shortcut to shutdown/restart/suspend**\\ **Shortcut to shutdown/restart/suspend**\\
 CTRL+DEL+END 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