Porque nunca están demás...
Mostrar el espacio disponible en el disco rígido:
df –h
Ubicar el directorio de instalación de un programa:
whereis [programa]
Montar una imágen ISO:
mount /path/to/file.iso /mnt/cdrom –oloop
Capturar un video con tu escritorio:
ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg
Mostrar el Universally Unique Identifier (UUID) de tus particiones:
ls /dev/disk/by-uuid/ -alh
Mostrar los 10 primeros procesos ordenados por la memoria que consumen:
ps aux | sort -nrk 4 | head
Sonar una alarma cuando una dirección IP apareza online:
ping -i 60 -a IP_address
Ejecutar el último comando como superusuario:
sudo !!
Crear una estructura de directorios con un solo comando:
mkdir -p tmp/a/b/c
Crear una imagen iso de un CD o un DVD
mkisofs -r -o xxxxxx.iso /cdrom/
Fuente
http://www.vivalinux.com.ar/articulos/10-comandos-utiles
http://120linux.com/20-comandos-imprescindibles/
El futuro tiene muchos nombres. Para los débiles es lo inalcanzable. Para los temerosos, lo desconocido. Para los valientes es la oportunidad.
12/09/2011
12/05/2011
Error ServerName apache en Ubuntu
usuario@server:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName...
waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Para corregir el error "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" al reiniciar apache en Ubuntu tenemos que editar el fichero httpd.conf
sudo vim /etc/apache2/httpd.conf
Por lo general está vacío entonces agregamos "ServerName localhost" en la primera línea, guardamos y reiniciamos apache
sudo /etc/init.d/apache2 restart
Fuente
http://blog.miasoftware.net/?p=171
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName...
waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Para corregir el error "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" al reiniciar apache en Ubuntu tenemos que editar el fichero httpd.conf
sudo vim /etc/apache2/httpd.conf
Por lo general está vacío entonces agregamos "ServerName localhost" en la primera línea, guardamos y reiniciamos apache
sudo /etc/init.d/apache2 restart
Fuente
http://blog.miasoftware.net/?p=171
Suscribirse a:
Entradas (Atom)