linux命令英文示意
-
1. cd – Change directory
2. ls – List files and directories
3. pwd – Print working directory
4. mkdir – Make directory
5. rmdir – Remove directory
6. touch – Create a new file
7. cp – Copy files and directories
8. mv – Move or rename files and directories
9. rm – Remove files and directories
10. cat – Display or combine files
11. tac – Display file in reverse order
12. less – View files page by page
13. head – Display first lines of a file
14. tail – Display last lines of a file
15. grep – Search for a pattern in a file
16. find – Search for files and directories
17. chmod – Change file permissions
18. chown – Change file ownership
19. chgrp – Change group ownership
20. ln – Create a link to a file
21. ssh – Secure Shell, remotely login to another system
22. scp – Securely copy files between local and remote system
23. rsync – Synchronize files and directories
24. tar – Create or extract files from an archive
25. gzip – Compress files
26. gunzip – Uncompress files
27. wget – Download files from the internet
28. curl – Transfer URL data
29. ping – Test connectivity to another host
30. ifconfig – Configure network interfaces
以上是一些常用的Linux命令及其英文示意,希望对您有帮助。
2年前 -
1. ls – List files and directories: This command is used to display a list of files and directories in the current directory.
2. cd – Change directory: This command is used to change the current working directory. For example, “cd Documents” will change the current directory to “Documents”.
3. mkdir – Make directory: This command is used to create a new directory. For example, “mkdir new_directory” will create a new directory called “new_directory”.
4. rm – Remove files or directories: This command is used to delete files or directories. For example, “rm file.txt” will delete a file called “file.txt”.
5. cp – Copy files and directories: This command is used to copy files or directories. For example, “cp file.txt new_file.txt” will create a copy of “file.txt” called “new_file.txt”.
6. mv – Move or rename files and directories: This command is used to move or rename files and directories. For example, “mv file.txt Documents” will move the file “file.txt” to the “Documents” directory.
7. touch – Create empty files: This command is used to create an empty file. For example, “touch myfile.txt” will create a file called “myfile.txt”.
8. cat – View file content: This command is used to display the content of a file. For example, “cat myfile.txt” will display the content of the file “myfile.txt”.
9. grep – Search for a specific pattern in files: This command is used to search for a specific pattern in one or more files. For example, “grep ‘hello’ file.txt” will search for the word “hello” in the file “file.txt”.
10. chmod – Change file permissions: This command is used to change the permissions of a file or directory. For example, “chmod 755 myfile.txt” will set the permissions of “myfile.txt” to read, write, and execute for the owner, and read and execute for others.
11. find – Search for files or directories: This command is used to search for files or directories based on different criteria. For example, “find . -name ‘*.txt'” will search for all files with the extension “.txt” in the current directory and its subdirectories.
12. sudo – Run command with administrative privileges: This command is used to run a command with administrative privileges. For example, “sudo apt-get update” will update the system packages using the apt-get package manager.
13. ssh – Secure shell: This command is used to establish a secure remote connection to another computer. For example, “ssh username@hostname” will establish a secure connection to a remote computer using the username and hostname.
14. tar – Archive and compress files: This command is used to create an archive file and compress it. For example, “tar -cvf archive.tar file1 file2” will create an archive file called “archive.tar” containing “file1” and “file2”.
15. man – Display the manual page of a command: This command is used to display the manual page of a command. For example, “man ls” will display the manual page for the “ls” command, with detailed information on its usage and options.
These are just a few examples of common Linux commands. There are many more commands available, each with its own specific purpose and usage.
2年前 -
1. Introduction to Linux Commands
Linux commands are the core tools used in the Linux operating system to perform various tasks and operations. These commands are entered in the terminal or command-line interface to interact with and control the system, execute programs, manipulate files and directories, manage processes, network configuration, and much more.
In this article, we will provide a comprehensive list of commonly used Linux commands along with their English translations and a brief description of their functionality.
2. Basic System Commands
2.1. pwd (print working directory)
– Description: Displays the current working directory.2.2. ls (list)
– Description: Lists files and directories in the current directory.
– ls -l: Displays detailed information about files and directories.
– ls -a: Includes hidden files and directories in the listing.2.3. cd (change directory)
– Description: Changes the current directory.
– cd /path/to/directory: Changes the current directory to the specified directory.
– cd ..: Moves one directory up.2.4. mkdir (make directory)
– Description: Creates a new directory.
– mkdir directory_name: Creates a directory with the specified name.2.5. rm (remove)
– Description: Removes files and directories.
– rm file_name: Removes the specified file.
– rm -r directory_name: Removes the specified directory and its contents recursively.2.6. cp (copy)
– Description: Copies files and directories.
– cp file_name destination_directory: Copies the specified file to the destination directory.
– cp -r directory_name destination_directory: Copies the specified directory and its contents recursively to the destination directory.2.7. mv (move)
– Description: Moves or renames files and directories.
– mv file_name destination_directory: Moves the specified file to the destination directory.
– mv file_name new_file_name: Renames the specified file.2.8. touch (create a file)
– Description: Creates an empty file.
– touch file_name: Creates a file with the specified name.2.9. cat (concatenate and display files)
– Description: Displays the content of a file.
– cat file_name: Displays the specified file’s content.2.10. less (view file content)
– Description: Allows scrolling through the content of a file.
– less file_name: Opens the specified file for viewing.2.11. man (manual pages)
– Description: Displays the manual of a command.
– man command_name: Displays the manual page of the specified command.3. File and Directory Operations
3.1. find (search files and directories)
– Description: Searches for files and directories matching certain criteria.
– find directory_path -name file_name: Searches for files with the specified name in the specified directory.3.2. grep (search for patterns in files)
– Description: Searches for a specified text pattern in one or more files.
– grep pattern file_name: Searches for the specified pattern in the specified file.3.3. chmod (change file permissions)
– Description: Modifies the permissions of a file or directory.
– chmod permissions file_name: Changes the permissions of the specified file.3.4. chown (change file ownership)
– Description: Changes the ownership of a file or directory.
– chown user_name file_name: Changes the ownership of the specified file to the specified user.3.5. chgrp (change group ownership)
– Description: Changes the group ownership of a file or directory.
– chgrp group_name file_name: Changes the group ownership of the specified file to the specified group.3.6. tar (archive files)
– Description: Creates or extracts archive files.
– tar -cvf archive.tar file1 file2: Creates a new archive file with the specified files.
– tar -xvf archive.tar: Extracts the files from the specified archive file.4. Process and System Management
4.1. ps (process status)
– Description: Displays information about running processes.
– ps: Displays a list of the current user’s processes.4.2. top (monitor system resources)
– Description: Displays real-time information about system resources and running processes.
– top: Displays a continuously updated list of processes and resource usage.4.3. kill (terminate processes)
– Description: Terminates a process by sending a signal.
– kill process_id: Sends the default termination signal to the specified process.4.4. shutdown (shutdown or restart system)
– Description: Shuts down or restarts the system.
– shutdown now: Shuts down the system immediately.
– shutdown -r now: Restarts the system immediately.4.5. df (disk space usage)
– Description: Displays disk usage information.
– df: Displays disk space usage for all mounted file systems.4.6. du (estimate file and directory space usage)
– Description: Displays the disk space used by files and directories.
– du file_path: Displays the disk space used by the specified file or directory.4.7. free (display memory usage)
– Description: Displays information about available and used memory.
– free: Displays memory usage information.5. Networking
5.1. ifconfig (configure network interfaces)
– Description: Displays and configures network interface settings.
– ifconfig: Displays network interface information.5.2. ping (test network connectivity)
– Description: Sends ICMP echo requests to a remote host to test network connectivity.
– ping host: Sends ICMP echo requests to the specified host.5.3. nslookup (query DNS servers)
– Description: Queries DNS servers to obtain IP address information.
– nslookup domain_name: Queries DNS servers for information about the specified domain name.5.4. ssh (secure shell)
– Description: Securely connects to a remote system using the SSH protocol.
– ssh remote_user@host: Connects to the specified host with the specified user.5.5. scp (secure copy)
– Description: Securely copies files between hosts using the SSH protocol.
– scp file_name remote_user@host:destination_path: Copies the specified file from the local system to the remote system.5.6. ftp (file transfer protocol)
– Description: Transfers files between hosts using the FTP protocol.
– ftp host: Connects to the specified FTP server.5.7. wget (download files)
– Description: Downloads files from the web using HTTP, HTTPS, or FTP protocols.
– wget file_url: Downloads the file from the specified URL.6. Conclusion
This article provided a comprehensive list of commonly used Linux commands along with their English translations. These commands are essential for anyone working with Linux as they enable users to perform various tasks, manipulate files and directories, manage processes, and configure network settings. By familiarizing yourself with these commands, you will gain a solid foundation in Linux command-line operations.
2年前