viernes, 19 de abril de 2013

Tips & Tricks. Comandos linux para no caer en la ventanas...

Si eres como yo, que estás constantemente iniciandote en el mundo de Linux xD seguro que te vendrá bien tener a mano la millonesíma "Cheat Sheet" de comandos habituales, incluso imprimirla !!!

DPKGinstall - dpkg -i package.debremove/uninstall - dpkg -r package
List files asscoiated with package -dpkg -L package
Version - dpkg -l package
Unpack A deb - dpkg -unpack package.deb
install - apt-get install <package>
search - apt-cache search <package>
remove - apt-get remove <package>
(When using apt-get to download off the Internet, the .deb files are placed in /var/cache/apt/archives)

Arrow Up: scrolls and edits the command history, press enter to activate.
Shift+pgup: scrolls terminal output up
Shift+pgdown: scrolls terminal output down
CTRL-ALT+DEL reboots the system
Shutdown -h now turns the system off
CTRL C kills the current process
CTRL S Stops the tranfer to the terminal
CTRL Q Resumes the transfer to the terminal
CTRL Z Puts the current process in the background.

Read more:
Moving around in the file system
pwd"Print working directory" - show what dir you're in.
lsList the contents of a dir.
ls -lList the contents of a dir and show additional info of the files.
ls -aList all files, including hidden files.
cdChange directory.
cd ..Go to the parent directory.
Examining files
fileDetermine the type of a file.
catConcatenate a file.
lessView text files and paginate them if needed.
Manipulating files and directories
cpCopy a file.
cp -iCopy a file and ask before overwriting.
cp -rCopy a directory with its contents.
mvMove or rename a file.
mv -iMove or rename a file and ask before overwriting.
rmRemove a file.
rm -rRemove a directory with its contents.
rm -iAsk before removing a file. Good to use with the -r option.
mkdirMake a directory.
rmdirRemove an empty directory.

No hay comentarios:

Publicar un comentario

Gracias por comentar !!