Cheat Sheet about Linux commands
commands for navigation
Command | Description | Example of use |
---|
pwd | Displays the current directory. | pwd |
ls | List files and directories. | ls -l |
cd | Change directory. | cd /home/usuario/Documentos |
Commands for Files and Directories
Command | Description | Example of use |
---|
mkdir | Create a new directory. | mkdir nuevo_directorio |
rmdir | Removes an empty directory. | rmdir directorio_vacio |
rm | Delete files or directories. | rm archivo.txt |
cp | Copy files or directories. | cp archivo1.txt archivo2.txt |
mv | Move or rename files or directories. | mv archivo.txt /home/usuario/ |
touch | Create an empty file or update the modification date. | touch archivo.txt |
Commands for Visualization
Command | Description | Example of use |
---|
cat | Displays the contents of a file. | cat archivo.txt |
echo | Displays a message in the terminal. | echo "Hola Mundo" |
man | Displays the manual for a command. | man ls |
top | Displays running processes. | top |
ps | Displays running processes. | ps aux |
Network Commands
Command | Description | Example of use |
---|
ping | Send ICMP packets to an IP address to check connectivity. | ping 8.8.8.8 |
ifconfig | Displays the network settings. | ifconfig |
netstat | Displays information about network connections. | netstat -tuln |
wget | Download files from the web. | wget http://example.com/file.txt |
Infographics of Linux Operating Systems
Per veure la tasca que no he fet jo dona click al titol
Moodle’s guide (quizzes)
Per veure la tasca que no he fet jo dona click al titol