Comandos de Linux útiles para todos
Tabla de contenidos
ToggleEste artículo es para principiantes que están comenzando su viaje con los sistemas Unix / Linux. Para mantener el set para principiantes, he mantenido la lista limitada
Comandos para archivos
- ls : directory listing
- ls -al formatted listing with hidden files
- cd dir change to dir
- pwd – show current dir.
- mkdir dir : creates a dir
- rm -r dir : deletes directory dir
- rm -rf dir : force remove directory dir
- cp file1 file2 : copy file1 to file2
- cp -r dir1 dir2 : copy dir1 to dir2 if dir2 doesn’t exists creates dir2
- mv file1 file2 : renames file1 to file2 if both the files are in same dir, or
- moves file1 to the directory
- ln -s file link :creates a symbolic link to file meaning file can be found using the link option, think shortcut to the path
touch file: creates/updates a file - cat > files: places standard inputs in file
- more file : output the contents of the file
- head file : see first 10 lines
- tail file: see last 10 lines
Comandos para la gestión de procesos
- ps display active processes
- kill x: kill process whose id is x
- killall proc : kill all processes with name as proc*
Comandos para permisos de archivos
- chmod rwx
- Sets read write and execute permissions on a file or a dir
- exercise: check man chmod
Comandos para redes e instalación
- ./file :Execute a file
- wget file : Downloads a file
ps -ef : Find all the running - processes with ps, use ps
