operating_systems:linux
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| operating_systems:linux [2025/02/07 12:01] – created jmbargallo | operating_systems:linux [2025/02/19 09:15] (current) – [Linux Versions] 195.53.121.100 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux Commands ====== | ====== Linux Commands ====== | ||
| - | This namespace contains | + | Welcome to the Linux Commands documentation. |
| - | ===== Navigation Commands | + | * - [[linux_commands: |
| + | * - [[linux_commands: | ||
| + | * - [[linux_commands: | ||
| + | * - [[linux_commands: | ||
| - | * **pwd**: Displays the current working directory. | + | ==== Sources ==== |
| - | - Example: `pwd` | + | |
| - | + | ||
| - | * **cd**: Changes the current directory. | + | |
| - | - Example: `cd / | + | |
| - | + | ||
| - | * **ls**: Lists files and directories. | + | |
| - | - Example: `ls -l` (detailed view) | + | |
| - | - Example: `ls -a` (includes hidden files) | + | |
| - | + | ||
| - | * **tree**: Displays the directory structure as a tree. | + | |
| - | - Example: `tree / | + | |
| - | ===== File Manipulation Commands ===== | + | * - [Linux Documentation](https:// |
| + | * - [Man Pages](https:// | ||
| - | * **cp**: Copies files or directories. | + | ====== Linux Versions ====== |
| - | - Example: `cp file.txt / | + | |
| - | + | ||
| - | * **mv**: Moves or renames files and directories. | + | |
| - | - Example: `mv file.txt new_file.txt` | + | |
| - | + | ||
| - | * **rm**: Removes files or directories. | + | |
| - | - Example: `rm file.txt` | + | |
| - | - For directories: | + | |
| - | + | ||
| - | * **touch**: Creates empty files or updates the access time. | + | |
| - | - Example: `touch new_file.txt` | + | |
| - | + | ||
| - | * **cat**: Displays the content of a file. | + | |
| - | - Example: `cat file.txt` | + | |
| - | + | ||
| - | * **more**: Displays file content one page at a time. | + | |
| - | - Example: `more file.txt` | + | |
| - | + | ||
| - | * **less**: Similar to more, but allows more flexible navigation. | + | |
| - | - Example: `less file.txt` | + | |
| - | + | ||
| - | * **head**: Displays the first few lines of a file. | + | |
| - | - Example: `head file.txt` | + | |
| - | + | ||
| - | * **tail**: Displays the last few lines of a file. | + | |
| - | - Example: `tail file.txt` | + | |
| - | + | ||
| - | * **chmod**: Changes file or directory permissions. | + | |
| - | - Example: `chmod 755 file.txt` | + | |
| - | + | ||
| - | * **chown**: Changes the ownership of a file or directory. | + | |
| - | - Example: `chown user:group file.txt` | + | |
| - | + | ||
| - | ===== System Management Commands | + | |
| - | * **ps**: Displays running processes. | + | * - [[linux_versions: |
| - | - Example: `ps aux` | + | |
| + | | ||
| | | ||
| - | * **top**: Displays running processes in real-time. | ||
| - | | ||
| - | * **kill**: Terminates a process. | ||
| - | - Example: `kill 1234` (where 1234 is the PID of the process) | ||
| - | | ||
| - | * **df**: Displays disk space usage. | ||
| - | - Example: `df -h` (with human-readable units) | ||
| - | | ||
| - | * **du**: Displays disk usage of files and directories. | ||
| - | - Example: `du -sh /directory` | ||
| - | | ||
| - | * **free**: Displays free and used memory. | ||
| - | - Example: `free -h` | ||
| - | | ||
| - | * **uptime**: Displays how long the system has been running. | ||
| - | | ||
| - | * **reboot**: Reboots the system. | ||
| - | | ||
| - | * **shutdown**: | ||
| - | - Example: `shutdown -h now` | ||
| - | |||
| - | ===== Network Commands ===== | ||
| - | |||
| - | * **ping**: Checks connectivity to another host. | ||
| - | - Example: `ping google.com` | ||
| - | | ||
| - | * **ifconfig**: | ||
| - | - Example: `ifconfig` | ||
| - | | ||
| - | * **ip**: Configures and displays network interfaces. | ||
| - | - Example: `ip a` | ||
| - | | ||
| - | * **netstat**: | ||
| - | - Example: `netstat -tuln` | ||
| - | | ||
| - | * **wget**: Downloads files from the web. | ||
| - | - Example: `wget http:// | ||
| - | | ||
| - | * **curl**: Makes HTTP requests. | ||
| - | - Example: `curl http:// | ||
| - | |||
| - | ===== Compression Commands ===== | ||
| - | |||
| - | * **tar**: Archives and extracts files. | ||
| - | - Example to compress: `tar -czvf archive.tar.gz / | ||
| - | - Example to extract: `tar -xzvf archive.tar.gz` | ||
| - | | ||
| - | * **zip**: Compresses files. | ||
| - | - Example: `zip archive.zip file1.txt file2.txt` | ||
| - | | ||
| - | * **unzip**: Extracts zip files. | ||
| - | - Example: `unzip archive.zip` | ||
| - | | ||
| - | * **gzip**: Compresses files into .gz format. | ||
| - | - Example: `gzip file.txt` | ||
| - | | ||
| - | * **gunzip**: Extracts .gz files. | ||
| - | - Example: `gunzip file.txt.gz` | ||
| - | |||
| - | ===== User Commands ===== | ||
| - | |||
| - | * **useradd**: | ||
| - | - Example: `useradd new_user` | ||
| - | | ||
| - | * **usermod**: | ||
| - | - Example: `usermod -aG sudo user` | ||
| - | | ||
| - | * **passwd**: Changes a user's password. | ||
| - | - Example: `passwd user` | ||
| - | | ||
| - | * **whoami**: Displays the current user name. | ||
| - | | ||
| - | * **id**: Displays user and group information. | ||
| - | | ||
| - | * **groups**: Displays the groups a user belongs to. | ||
| - | - Example: `groups user` | ||
| - | |||
| - | ===== Search Commands ===== | ||
| - | |||
| - | * **find**: Searches for files and directories. | ||
| - | - Example: `find /path -name " | ||
| - | | ||
| - | * **locate**: Locates files quickly using a database. | ||
| - | - Example: `locate file.txt` | ||
| - | | ||
| - | * **grep**: Searches for text within files. | ||
| - | - Example: `grep " | ||
| - | |||
| - | ===== Other Useful Commands ===== | ||
| - | |||
| - | * **man**: Displays the manual page for a command. | ||
| - | - Example: `man ls` | ||
| - | | ||
| - | * **history**: | ||
| - | | ||
| - | * **alias**: Creates an alias for a command. | ||
| - | - Example: `alias ll='ls -l'` | ||
| - | | ||
| - | * **clear**: Clears the terminal screen. | ||
| - | |||
| - | ==== Sources ==== | ||
| - | - [Linux Documentation](https:// | ||
| - | - [Man Pages](https:// | ||
| - | |||
operating_systems/linux.1738929695.txt.gz · Last modified: 2025/02/07 12:01 by jmbargallo
