[EN-ES] 20 usefull terminal commands in linux / 20 comandos básicos en linux

in HiveDevs3 years ago


descarga.jpeg

Today i you show 20 usefull terminal commands can You use un linux.

  1. pwd: show the actuall directory

  2. ls: list the files and directories where You are.

  3. ls -al: documents details

  4. ls -a: show the hidden files and directories.

  5. clear: clear the terminal (You can use control+L)

  6. cd folder/: change directory.

  7. cd -: previus directory.

  8. cd : home directory.

  9. mkdir: create folder.

  10. touch: create file. Example: touch file.txt

  11. cp: copy file . Example: cp new-file.txt new-folder/ new-file-2.txt

  12. mv: move file . Example: mv new-file.txt ../new-file-copy.txt

  13. mv: file rename . Example: mv file.txt file-2.txt

  14. rm: remove file

  15. rm -r : remove folders and files inside

  16. nano: file edit

  17. cat : view file. Example: cat file.txt
    You can cat diferents files in one
    Example: cat file.txt file2.txt > file3.txt

  18. echo: print in terminal the content inside a file. Example: echo file.txt

echo file.txt >> file3.txt

This >> add to the end of the file3.txt

  1. man: commands details. Example: man ls

  2. apt-get: install-update-delete programa.
    Example: sudo apt-get install filezilla
    sudo apt-get upgrade filezilla
    sudo apt-get remove filezilla

Spanish

Hoy te muestro 20 útiles comandos de terminal que puedes usar en linux.

  1. pwd: muestra el directorio actuall

  2. ls: lista los archivos y directorios donde se encuentra.

  3. ls -al: detalles de los documentos

  4. ls -a: muestra los archivos y directorios ocultos.

  5. clear: borra el terminal (puedes usar control + L)

  6. cd /: cambiar directorio.

  7. cd -: directorio anterior.

  8. cd: directorio de inicio.

  9. mkdir: crear carpeta.

  10. touch: crear archivo. Ejemplo: toque archivo.txt

  11. cp: copiar archivo. Ejemplo: cp nuevo-archivo.txt nueva-carpeta / nuevo-archivo-2.txt

  12. mv: mover archivo. Ejemplo: mv new-file.txt ../new-file-copy.txt

  13. mv: cambio de nombre del archivo. Ejemplo: mv file.txt file-2.txt

  14. rm: eliminar archivo

  15. rm -r: elimina carpetas y archivos dentro

  16. nano: edición de archivos

  17. cat: ver archivo. Ejemplo: cat file.txt
    Puedes concatenar diferentes archivos en uno
    Ejemplo: cat file.txt file2.txt> file3.txt

  18. echo: imprime en terminal el contenido dentro de un archivo. Ejemplo: echo file.txt

echo archivo.txt >> archivo3.txt

Este comando >> agregar al final del archivo3.txt

  1. man: ordena detalles. Ejemplo: man ls

  2. apt-get: instalar-actualizar-eliminar programa.
    Ejemplo: sudo apt-get install filezilla
    sudo apt-get upgrade filezilla
    sudo apt-get eliminar filezilla