今天玩了下Hacknet和VM虚拟机,对Windows和Linux的命令有了更深的理解。接下来,我会分享这些命令的中英版本,希望对大家有用。有什么好推荐,欢迎留言交流(^U^)ノ~YO!
Windows 命令行命令
基础命令
cmd
: 打开命令提示符窗口 1cd
: 改变当前目录dir
: 列出目录内容copy
: 复制文件del
或erase
: 删除文件md
或mkdir
: 创建目录rd
或rmdir
: 删除目录type
: 显示文件内容more
: 分页显示文件内容
系统命令
ipconfig
: 显示所有网络适配器的配置信息systeminfo
: 显示系统信息tasklist
: 显示当前运行的进程列表taskkill
: 结束一个或多个正在运行的进程
网络命令
netstat
: 显示活动的网络连接和开放的端口ping
: 测试网络连接nslookup
: 查询DNS信息
文件操作
assoc
: 显示或修改文件扩展名关联chdir
或cd
: 更改当前目录color
: 设置命令提示符的颜色del
或erase
: 删除一个或多个文件echo
: 在屏幕上显示文本find
: 在文件中搜索字符串mkdir
或md
: 创建目录move
: 移动或重命名文件net
: 执行网络相关的操作pause
: 暂停批处理程序的执行print
: 打印文本文件prompt
: 更改命令提示符的文本rd
或rmdir
: 删除目录ren
或rename
: 重命名文件
Linux 命令行命令
文件和目录命令
ls
: 列出目录内容cd
: 改变当前目录pwd
: 显示当前工作目录mkdir
: 创建新目录rmdir
: 删除空目录touch
: 创建新文件或更新现有文件的时间戳cp
: 复制文件或目录mv
: 移动或重命名文件
文本处理命令
cat
: 查看或连接文件more
: 分页显示文本文件less
: 与more相似,但提供向前和向后浏览的能力head
: 显示文件的开头部分tail
: 显示文件的结尾部分,常用于查看日志文件
系统信息命令
uname
: 显示系统信息top
: 显示运行中的进程ps
: 显示当前进程的状态df
: 报告文件系统的磁盘空间使用情况du
: 估计文件或目录的磁盘使用量
网络命令
ifconfig
: 配置或显示系统网络接口的网络参数ping
: 发送ICMP ECHO请求以测试网络连接netstat
: 打印网络连接、路由表、接口统计数据等
包管理命令
apt-get
: Debian和Ubuntu系统的包管理工具yum
: Red Hat系列的包管理工具dpkg
: Debian软件包管理器
其他命令
grep
: 在文件中搜索文本模式find
: 在目录树中查找文件chmod
: 更改文件或目录的权限chown
: 更改文件或目录的所有者和组tar
: 打包、压缩或解压文件
Today, I had a great time experimenting with Hacknet game and virtual machine, which significantly enhanced my understanding of both the Windows and Linux command systems.
I'm excited to share the commands in English versions with everyone. I hope you find them helpful. Now, let's get it!! ;p
Windows Command Prompt Commands
Basic Commands
cmd
: Open the command prompt window.cd
: Change the current directory.dir
: List directory contents.copy
: Copy files.del
orerase
: Delete files.md
ormkdir
: Create directories.rd
orrmdir
: Remove directories.type
: Display the contents of a file.more
: Display file contents page by page.
System Commands
ipconfig
: Display configuration information for all network adapters.systeminfo
: Display system information.tasklist
: Show the list of currently running processes.taskkill
: End one or more running processes.
Network Commands
netstat
: Show active network connections and open ports.ping
: Test network connectivity.nslookup
: Query DNS information.
File Operations
assoc
: Display or modify file extension associations.chdir
orcd
: Change the current directory.color
: Set the color of the command prompt.del
orerase
: Delete one or more files.echo
: Display text on the screen.find
: Search for a string within a file.mkdir
ormd
: Create a directory.move
: Move or rename files.net
: Execute network-related operations.pause
: Pause the execution of a batch program.print
: Print a text file.prompt
: Change the text of the command prompt.rd
orrmdir
: Remove a directory.ren
orrename
: Rename a file.
Linux Command Line Commands
File and Directory Commands
ls
: List directory contents.cd
: Change the current directory.pwd
: Print the current working directory.mkdir
: Create a new directory.rmdir
: Remove an empty directory.touch
: Create a new file or update the timestamp of an existing file.cp
: Copy files or directories.mv
: Move or rename files.
Text Processing Commands
cat
: View or concatenate files.more
: Page through a text file.less
: Similar tomore
, but with the ability to scroll both forward and backward.head
: Show the beginning of a file.tail
: Show the end of a file, often used for viewing log files.
System Information Commands
uname
: Display system information.top
: Show running processes.ps
: Show the status of current processes.df
: Report disk space usage of file systems.du
: Estimate the disk usage of files or directories.
Network Commands
ifconfig
: Configure or display network parameters of system network interfaces.ping
: Send ICMP ECHO requests to test network connectivity.netstat
: Print network connections, routing tables, interface statistics, etc.
Package Management Commands
apt-get
: Package management tool for Debian and Ubuntu systems.yum
: Package management tool for Red Hat series.dpkg
: Debian package manager.
Other Commands
grep
: Search for text patterns in files.find
: Find files in a directory tree.chmod
: Change the permissions of files or directories.chown
: Change the owner and group of files or directories.tar
: Package, compress, or decompress files.