Windows & Linux 操作系统命令集

今天玩了下Hacknet和VM虚拟机,对Windows和Linux的命令有了更深的理解。接下来,我会分享这些命令的中英版本,希望对大家有用。有什么好推荐,欢迎留言交流(^U^)ノ~YO!

Windows 命令行命令 

基础命令

  • cmd: 打开命令提示符窗口 1
  • cd: 改变当前目录
  • 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 or erase: Delete files.
  • md or mkdir: Create directories.
  • rd or rmdir: 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 or cd: Change the current directory.
  • color: Set the color of the command prompt.
  • del or erase: Delete one or more files.
  • echo: Display text on the screen.
  • find: Search for a string within a file.
  • mkdir or md: 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 or rmdir: Remove a directory.
  • ren or rename: 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 to more, 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Iam俪馨呀

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值