003Window约等效Linux列表
2021/5/5 7:29:09
本文主要是介绍003Window约等效Linux列表,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Windows command | Unix command | Notes |
---|---|---|
arp |
arp |
|
assign |
ln |
Create a file link |
assign |
ln -s |
On Unix, a directory may not have multiple links, so instead a symbolic link must be created with ln -s . |
assoc |
file |
|
at |
at |
|
attrib |
chown |
Sets ownership on files and directories |
cd |
cd |
On Windows, cd alone prints the current directory, but on Unix cd alone returns the user to his home directory. |
cd |
pwd |
On Windows, cd alone prints the current directory. |
chkdsk |
fsck |
Checks filesystem and repairs filesystem corruption on hard drives. |
cls |
clear |
Clear the terminal screen |
copy |
cp |
|
date |
date |
Date on Unix prints the current date and time. Date and time on Windows print the date and time respectively, and prompt for a new date or time. |
del |
rm |
|
deltree |
rm -r |
Recursively deletes entire directory tree |
dir |
ls |
“dir” also works on some versions of Unix. |
doskey /h |
history |
The Unix history is part of the Bash shell. |
edit |
vi |
edit brings up a simple text editor in Windows. On Unix, the environment variable EDITOR should be set to the user’s preferred editor. |
exit |
exit |
On Unix, pressing the control key and D simultaneously logs the user out of the shell. |
explorer |
nautilus |
The command explorer brings up the file browser on Windows. |
fc |
diff |
|
find |
grep |
|
ftp |
ftp |
|
help |
man |
“help” by itself prints all the commands |
hostname |
hostname |
|
ipconfig /all |
ifconfig -a |
The /all option lets you get the MAC address of the Windows PC |
mem |
top |
Shows system status |
mkdir |
mkdir |
|
more |
more |
|
move |
mv |
|
net session |
w |
|
net statistics |
uptime |
|
nslookup |
nslookup |
|
ping |
ping |
|
print |
lpr |
Send a file to a printer. |
reboot |
shutdown -r |
|
regedit |
edit /etc/* |
The Unix equivalent of the Windows registry are the files under /etc and /usr/local/etc . These are edited with a text editor rather than with a special-purpose editing program. |
rmdir |
rmdir |
|
rmdir /s |
rm -r |
Windows has a y/n prompt. To get the prompt with Unix, use rm -i . The i means “interactive”. |
set |
env |
Set on Windows prints a list of all environment variables. For individual environment variables, set <variable> is the same as echo $<variable> on Unix. |
set Path |
echo $PATH |
Print the value of the environment variable using set in Windows. |
shutdown |
shutdown |
Without an option, the Windows version produces a help message |
shutdown -s |
shutdown -h |
Also need -f option to Windows if logged in remotely |
sort |
sort |
|
start |
& |
On Unix, to start a job in the background, use command & . On Windows, the equivalent is start command . See How to run a Windows command as a background job like Unix ?. |
systeminfo |
uname -a |
|
tasklist |
ps |
“tasklist” is not available on some versions of Windows. See also this article on getting a list of processes in Windows using Perl |
title |
? |
In Unix, changing the title of the terminal window is possible but complicated. Search for “change title xterm”. |
tracert |
traceroute |
|
tree |
find |
On Windows, use tree | find “string” |
type |
cat |
|
ver |
uname -a |
|
xcopy |
cp -R |
Recursively copy a directory tree |
这篇关于003Window约等效Linux列表的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-07-04Linux系统上离线升级SSH服务的具体操作步骤-icode9专业技术文章分享
- 2024-06-0600-macOS和Linux安装和管理多个Python版本
- 2024-03-30[译]漫画SELinux概念
- 2024-03-29linux 移动文件
- 2024-03-28linux .so file
- 2024-03-28Linux 磁盘管理
- 2024-03-28Linux学习笔记(十三)磁盘管理(一):磁盘分区
- 2024-03-26linux 创建 文件
- 2024-03-25使用SecureCRT对Linux vim进行颜色设置
- 2024-03-202019-2020-12 20199317 《Linux内核原理与分析》 第十二周作业