Changes

Jump to navigation Jump to search
1,277 bytes added ,  17:51, 10 September 2018
Line 1: Line 1:  
== Linux general commands ==
 
== Linux general commands ==
   
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 
! Command !! Description
 
! Command !! Description
 +
|-
 
| [[Linux_command:_alias|alias]] || Creates a commnad  
 
| [[Linux_command:_alias|alias]] || Creates a commnad  
 
|-
 
|-
Line 11: Line 11:  
|-
 
|-
 
| [[Linux_comand:_apt-get|apt-get]] || Package installation and system update
 
| [[Linux_comand:_apt-get|apt-get]] || Package installation and system update
 +
|-
 +
| [[Linux_command:_awk|awk]] || CLI text processor
 
|-
 
|-
 
| cal || Shows calendar
 
| cal || Shows calendar
Line 20: Line 22:  
| [[Linux_command:_date|date]] || Shows date
 
| [[Linux_command:_date|date]] || Shows date
 
|-
 
|-
| df || Shows the disk ussage. Example: df -h
+
| [[Linux_command:_dd|dd]] || Create / Dump images
 +
|-
 +
| df || Shows the disk ussage. Example: df -h -x devtmpfs -x tmpfs
 
|-
 
|-
 
| dpkg || .deb package installation: sudo dpkg -i packagename.deb
 
| dpkg || .deb package installation: sudo dpkg -i packagename.deb
 
|-
 
|-
 
| [[Linux_command:_du|du]] || Disk ussage  
 
| [[Linux_command:_du|du]] || Disk ussage  
 +
|-
 +
| export VARIABLE=VALUE || To create system variables
 +
|-
 +
| [[Linux_command:_fsck|fsck]] || Check file system
 
|-
 
|-
 
| [[Linux_command:_fdisk|fdisk]] || Disk partition utility  
 
| [[Linux_command:_fdisk|fdisk]] || Disk partition utility  
Line 32: Line 40:  
| free || Shows free memory
 
| free || Shows free memory
 
|-
 
|-
| grep <text> || finds text
+
| [[Linux:_gpg|gpg]] || GnuPG
 +
|-
 +
| [[Linux_comand:_grep|grep]] || finds text matching regex or text
 
|-
 
|-
 
| head || Shows file start (-n, -f,...)
 
| head || Shows file start (-n, -f,...)
Line 40: Line 50:  
| info <command> || Sows command info
 
| info <command> || Sows command info
 
|-
 
|-
| [[Linux_command:_ln|ln]] | Create simbolic links  
+
| [[Linux_command:_ln|ln]] || Create simbolic links  
 +
|-
 +
| lsb_release -a || Show os name and version
 +
|-
 +
| lsblk ||
 
|-
 
|-
 
| lspci -v || View PCI device information
 
| lspci -v || View PCI device information
 +
|-
 +
| lscpu || List cpu cores
 +
|-
 +
| lsof || <nowiki>sudo lsof -i -n | egrep '\<ssh\>'</nowiki>
 
|-
 
|-
 
| man <command> || Sowhs a command manual page
 
| man <command> || Sowhs a command manual page
 
|-
 
|-
 
| mc || Midnight commander. File system navigation
 
| mc || Midnight commander. File system navigation
 +
|-
 +
| mkdosfs -F32 /dev/mmcblk0 || Format SD card with FAT32
 
|-
 
|-
 
| more <filename> || Shows file content, screen by screen
 
| more <filename> || Shows file content, screen by screen
Line 55: Line 75:  
|-
 
|-
 
| rsync -a ruta1 ruta2 [--exclude=/{dir1, dir2..]/] || Copies files from ruta1 to ruta2 excluding dir1, dir2,...
 
| rsync -a ruta1 ruta2 [--exclude=/{dir1, dir2..]/] || Copies files from ruta1 to ruta2 excluding dir1, dir2,...
 +
|-
 +
| [[Linux command: rename|rename]] || Rename files allowing regex
 
|-
 
|-
 
| scp || Copy files to a remote machine over ssh protocol
 
| scp || Copy files to a remote machine over ssh protocol
 +
|-
 +
| [[Linux:_SSH|ssh]] || ssh (Secure Shell)
 
|-
 
|-
 
| [[Linux_command:_sed|sed]] || String replacement
 
| [[Linux_command:_sed|sed]] || String replacement
Line 66: Line 90:  
| sudo <command>|| Execute command as root
 
| sudo <command>|| Execute command as root
 
|-
 
|-
| tail || Shows file end (-n, -f, ...)
+
| [[Linux_command:_tar|tar]] || Compress/decompress tar files
 +
|-
 +
| [[Linux command: tail|tail]] || Shows file end (-n, -f, ...)
 
|-
 
|-
 
| touch <file_name> || Creates an empty file
 
| touch <file_name> || Creates an empty file
Line 73: Line 99:  
|-
 
|-
 
| [[Linux_command:_uname|uname]] || Shows system info
 
| [[Linux_command:_uname|uname]] || Shows system info
 +
|-
 +
| [[Linux_comand:_visudo|visudo]] || visudo is used to securely edit /etc/sudoers
 
|-
 
|-
 
| wc -l || Counts lines
 
| wc -l || Counts lines
Line 83: Line 111:  
|-
 
|-
 
| whoami || Who am i
 
| whoami || Who am i
 +
|-
 +
| [[Linux_command:_xargs|xargs]] || Send output of command to stdin
 
|-
 
|-
 
| <nowiki><cmd1> | <cmd2></nowiki> || Pipe: takes the output of command1 as input of command2. example: <nowiki>cat /etc/passwd | sort | more</nowiki>
 
| <nowiki><cmd1> | <cmd2></nowiki> || Pipe: takes the output of command1 as input of command2. example: <nowiki>cat /etc/passwd | sort | more</nowiki>
 
|}
 
|}
  −
  −
* Bulleted list item
      
== Users and File permissions ==
 
== Users and File permissions ==
Line 140: Line 167:  
|-
 
|-
 
|}
 
|}
  −
vnc:escritorio remoto
      
== Firewall ==
 
== Firewall ==
Line 159: Line 184:  
|-
 
|-
 
! Command !! Description
 
! Command !! Description
 +
|-
 +
| [[Linux command: netstat|netstat]] ||
 +
|-
 +
| nmap || Network mapping
 
|-
 
|-
 
| nm-tool || Network monitor tool
 
| nm-tool || Network monitor tool
Line 177: Line 206:  
== Linux key files/directories ==
 
== Linux key files/directories ==
 
See: [[Linux:_Key_files/folders|Linux key files/directories]]
 
See: [[Linux:_Key_files/folders|Linux key files/directories]]
 +
    
== Programs ==
 
== Programs ==
Line 184: Line 214:  
|-
 
|-
 
| [[Linux_command:_git|git]] || Software repository
 
| [[Linux_command:_git|git]] || Software repository
 +
|-
 +
| coursera-dl ||
 
|-
 
|-
 
| [[Jp2a|jp2a]] || Jpg to ASCII
 
| [[Jp2a|jp2a]] || Jpg to ASCII
 
|-
 
|-
 
| [[Linux:_John|john]] || John the ripper
 
| [[Linux:_John|john]] || John the ripper
 +
|-
 +
| [[Linux:_macchanger|macchanger]] || Change MAC address
 +
|-
 +
| openvpn || Connect to VPN
 
|-
 
|-
 
| [[Linux_command:_terminator|terminator]] || Advanced terminal
 
| [[Linux_command:_terminator|terminator]] || Advanced terminal
 +
|-
 +
| [[Virtualenv|virtualenv]] || Create virtual enviroments
 +
|-
 +
| [[Virtualenvwrapper|virtualenvwrapper]] || Simplify virtualenv ussage
 
|-
 
|-
 
| [[Linux:_youtube-dl|youtube-dl]] || YouTube video downloader
 
| [[Linux:_youtube-dl|youtube-dl]] || YouTube video downloader
 
|}
 
|}
 +
vnc:escritorio remoto
 +
== Save command without running to recover later ==
 +
ctrl+u --> saves
 +
ctrl+y --> recover

Navigation menu