Linux 常用命令总结

Linux Common Commands

Navigation

CommandDescription
cdChange Directory, moves the current working directory to the specified directory.
pwdPrint Working Directory, displays the current working directory.
lsList Files and Directories, lists files and directories in the specified directory.
mkdirMake Directory, creates a new directory with the specified name.
rmRemove Files or Directories, deletes files or directories.
mvMove or Rename Files/Directories, moves or renames files or directories.
cpCopy Files or Directories, copies files or directories.
lnLink Files or Directories, creates a symbolic link to the specified file or directory.

File Editing

CommandDescription
viVisual Editor, opens a file for editing using the vi editor.
emacsEmacs Editor, opens a file for editing using the emacs editor.
nanoNano Editor, opens a file for editing using the nano editor.
geditGnome Text Editor, opens a file for editing using the gedit editor.
catConcatenate Files, displays the contents of one or more files.

System Management

CommandDescription
whoamiWho Am I?, displays the current user’s name.
uptimeUptime, displays how long the system has been running.
rebootReboot, reboots the system.
shutdownShutdown, shuts down the system.
haltHalt, halts the system.
poweroffPower Off, powers off the system.

Networking

CommandDescription
pingPacket Internet Groper, sends ICMP echo requests to the specified host and displays the response.
sshSecure Shell, establishes a secure connection to the specified host.
scpSecure Copy, securely copies files or directories between hosts.
sftpSecure File Transfer Protocol, securely transfers files or directories between hosts.
telnetTelnet, establishes a remote terminal connection to the specified host.

Package Management

CommandDescription
apt-getAdvanced Package Tool, installs, removes, or updates packages using the apt package manager.
yumYellowdog Updater, Modified, installs, removes, or updates packages using the yum package manager.
pipPython Package Installer, installs or upgrades Python packages.
gemGem Package Manager, installs or upgrades Ruby packages.

Shell

CommandDescription
echoEcho, displays the specified string.
exitExit, exits the shell and terminates the current session.
cdChange Directory, moves the current working directory to the specified directory.
pwdPrint Working Directory, displays the current working directory.
lsList Files and Directories, lists files and directories in the specified directory.

Note: This is not an exhaustive list of Linux commands.

  • 20
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值