Como dice uno de los comentarios del post estaba trasteando con la consola y he metido por error ~$ cd - por ~$ cd .. y me ha llevado al último directorio...digo, ¡cogno!
1. Method 1: Windows Built-in Self Crasher
This method produces the 'awesome' BSOD (Blue Screen Of Death) that you are no doubt familiar with. The PC gets locked up and the only way to recover is to reboot it. Just follow these steps:
* Run Regedit (Start -> Run -> regedit)
* Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesi8042prtParameters
* Create a new DWORD value with name CrashOnCtrlScroll and give it a value 1
* Reboot the PC
Now whenever you want to see the cute blue screen (and crash your system), press and hold the Ctrl key on the right side of the keyboard and hit the Scroll Lock key twice. Ahh, the joy of ecstasy!
2. Method 2: Using a Windows Fork Bomb
Just copy the following lines into a new text file and name it as crashme.bat. Double click on that file.
& está muy bien para hacer cosas como apt-get dist-upgrade &
El problema es que, si estás en las X y se caen, o estás ejecutando en otro equipo y se cae la conexión, o haces un exit, el apt-get falla.
¿Solución? nohup apt-get dist-upgrade &
Si por algún motivo la sesión se cae (excepto, obviamente, corte eléctrico en el equipo que está ejecutándo los comandos), el comando seguirá corriendo hasta su finalización normal.
En ambos casos, no estaría de más redireccionar la salida.
Comentarios
Sí, jaja, yo el otro día hice un %-a en lugar de $ceel-cd y ¡buf! que risas.
¿Otra de comandos de linux? Frikis...
$ man woman
Yo he vacilado con el "!" con algunos compañeros de curro![:roll: roll](https://cdn.mnmstatic.net/v_149/img/menemojis/36/roll.gif)
pd: sí, se puede vacilar con los comandos de linux
El mejor chiste sobre comandos de Linux: http://xkcd.com/149/
Muy util el de sudo !!! (y valga la redundancia).
Linux parece incombustible, siempre hay mas.
Como dice uno de los comentarios del post estaba trasteando con la consola y he metido por error ~$ cd - por ~$ cd .. y me ha llevado al último directorio...digo, ¡cogno!
#9 nopes, pero existe:
1. Method 1: Windows Built-in Self Crasher
This method produces the 'awesome' BSOD (Blue Screen Of Death) that you are no doubt familiar with. The PC gets locked up and the only way to recover is to reboot it. Just follow these steps:
* Run Regedit (Start -> Run -> regedit)
* Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesi8042prtParameters
* Create a new DWORD value with name CrashOnCtrlScroll and give it a value 1
* Reboot the PC
Now whenever you want to see the cute blue screen (and crash your system), press and hold the Ctrl key on the right side of the keyboard and hit the Scroll Lock key twice. Ahh, the joy of ecstasy!
2. Method 2: Using a Windows Fork Bomb
Just copy the following lines into a new text file and name it as crashme.bat. Double click on that file.
:sstart %0%0|%0goto :s
Lo de olvidarse de "sudo" esta a la orden del dia para los que no llevamos mucho tiempo. Ahora el problema sera acordarse del "!!"
Al & le falta su media naranja: nohup
& está muy bien para hacer cosas como apt-get dist-upgrade &
El problema es que, si estás en las X y se caen, o estás ejecutando en otro equipo y se cae la conexión, o haces un exit, el apt-get falla.
¿Solución? nohup apt-get dist-upgrade &
Si por algún motivo la sesión se cae (excepto, obviamente, corte eléctrico en el equipo que está ejecutándo los comandos), el comando seguirá corriendo hasta su finalización normal.
En ambos casos, no estaría de más redireccionar la salida.
Encontrar rápidamente el PID con pgrep
Sabra este que existe la orden pid en si misma ??
Guardar archivos rápidamente en VI/VIM
Puedes usar :wp y más fácil aun
La forma mas rapida de salir de vim guardando es ctrl+zz
¿existe esto "format linux"?