Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
The term "Comando" is not a specific command in the Linux environment. However, "comando" is the Spanish word for "command," and in a Linux context, it refers to any command that you can execute in the terminal. This article will guide you through some essential Linux commands that are fundamental for any Linux user. We will cover file management, system monitoring, and network configuration commands that are commonly used in Linux.
Examples:
File Management:
ls
: Lists directory contents.
ls -l /home/user
This command will list all files and directories in the /home/user
directory in a detailed format.
cp
: Copies files or directories.
cp file1.txt /home/user/documents/
This command copies file1.txt
to the /home/user/documents/
directory.
mv
: Moves or renames files or directories.
mv oldname.txt newname.txt
This command renames oldname.txt
to newname.txt
.
rm
: Removes files or directories.
rm file1.txt
This command deletes file1.txt
. Use rm -r
to remove directories.
System Monitoring:
top
: Displays real-time system information.
top
This command shows the running processes and system resource usage.
df
: Reports file system disk space usage.
df -h
This command displays disk space usage in a human-readable format.
free
: Displays memory usage.
free -m
This command shows the amount of free and used memory in megabytes.
Network Configuration:
ifconfig
: Configures network interfaces.
ifconfig
This command displays all active network interfaces and their configurations.
ping
: Tests connectivity to another network host.
ping google.com
This command sends packets to google.com
to test connectivity.
netstat
: Displays network connections, routing tables, and interface statistics.
netstat -tuln
This command lists all listening ports and their respective services.