Last active
August 25, 2020 00:51
-
-
Save ederrafo/6a12a65e7aae7e0dfd25 to your computer and use it in GitHub Desktop.
commands unix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==== command TAR ==== | |
Unzip file .tar.bz2 | |
$ tar -xjf firefox-52.0a2.en-US.linux-x86_64.tar.bz2 | |
==== DF ==== | |
df [options] [devices] | |
Tamaño total del servidor, espacios en disco | |
$ df -H | |
=== Confira a versão do seu sistema, para isso, use o seguinte comando no terminal: === | |
$ lsb_release -rs | |
=== Comando cat == | |
Con -n se agrega el numero de linea | |
$ cat -n temp.txt | |
=== I find out my screen resolution from a shell script === | |
$ xdpyinfo | grep dimensions | |
=== Buscar archivos=== | |
$ find . -iname 'odbc*.ini' | |
=== Permisos en archivos y carpetas=== | |
=== Saber la resolución mínima, máxima y actual de tu pantalla === | |
$ xrandr -q | grep -w Screen | |
=== Ver que version linux tengo === | |
$ cat /etc/issue | |
> Ubuntu 14.04.3 LTS \n \l | |
=== Memoria del CPU == | |
$ free -m | |
$ free -h | |
$ cat /proc/meminfo | |
=== Revisando la arquitectura de sistema === | |
~$ file /sbin/init | |
> /sbin/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, stripped | |
== PACKAGES === | |
View files installed | |
$ dpkg -L udftools | |
=== HISTORY === | |
Has a list of all the packages that was installed along with that command. | |
$ /var/log/apt/history.log | |
REVIEWING YOUR PREVIOUS BASH HISTORY | |
$ history | |
$ history | less | |
See the last 5 commands typed: | |
$ history 5 | |
To find all of the history commands that involve a certain string, an easy way of getting an overview is to simply pipe it to grep : | |
$ history | grep cd | |
HOW DO I EXTRACT LOGIN HISTORY | |
command : LAST | |
The last command reads listing of last logged in users from the system file called /var/log/wtmp or the file designated by the -f options. | |
To find out when a particular user last logged in to the Linux or Unix server. | |
Syntax : | |
last | |
last [userNameHere] | |
last [tty] | |
last [options] [userNameHere] | |
Prints out the login/out history of user john, whereas running just | |
$ last eder | |
Prints out the login/out history of all users | |
$ last | |
http://www.cyberciti.biz/faq/linux-unix-last-command-examples/ | |
http://www.cyberciti.biz/faq/linux-unix-last-command-examples/ | |
https://es.wikipedia.org/wiki/Tty_(Unix) | |
http://www.thegeekstuff.com/2009/03/4-ways-to-identify-who-is-logged-in-on-your-linux-system/ | |
== Problema de sonidos en laptop ASUS == | |
http://www.ubuntu-es.org/node/56763 | |
http://ubuntuforums.org/showthread.php?t=2165910 | |
https://bbs.archlinux.org/viewtopic.php?id=176638 | |
http://www.unixmen.com/2012003-howto-resolve-nosound-problem-on-ubuntu/ | |
// Sublime error al identar XML solucion | |
https://github.com/alek-sys/sublimetext_indentxml/issues/16#issuecomment-78509626 | |
http://askubuntu.com/questions/1224/how-do-i-determine-the-total-size-of-a-directory-folder-from-the-command-line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment