Introduction to the operating system and commonly used commands in Windows

 

 

OS Category: divided into Windows NT, like Unix, MAC three, this is mainly for Windows and Unix detailed description

      Windows:

      Personal operating systems: XP, win7, win8, win10       

      Services like operating systems: server03, server08 (r2), server12, server16

      Class unix:

      Redhat series: Redhat, centos

      系列Debian: Debian, Ubuntu, times, BactTrack (BT)

      MAC OS

windows under common commands
open dos command window
win + r type cmd
hold down the shift + right mouse button and select Open Command Window Here
select the title bar of a folder in the disk input box enter cmd + Enter
command:
systeminfo get system information patch NIC
path environment variable
set system variables
whoami current user who
hostname current host name
mkdir folder name to create a folder
rmdir folder name delete folder
cd folder path
path:
absolute path: write letter from the current position from the path
relative path : relative path to a location
. represents the current path
.. representation on a path
dir to see what files or folders in the current path
to the beginning of the file .. is hidden by default.
echo> bistu "the Hello!" .txt will hello! The new files are written in bistu.txt
echo TTT> ./zh.txt
echo TTT> /zh.txt

read the contents of the file type
del delete files

User Management (Administrator)

net user view the current system in which users
net user 25390 view user information 25390 of the
net user 25390 123456 to 25390 password user modify the 123456
net user username password / add Add an account
is added by default accounts belonging to users group
net user 123 / active: no 123 users disable the
net user 123 / active: yes enable 123 user
net share default view local shared resources
net share source = C: / test manually add the name of the source shared
net share source / del manually delete the shared
/ forward slash bar
\ backslash
net user 25390 / del delete user
net localgroup view local user group
net localgroup users to view the information specified group
net localgroup bp / add Add a group
net localgroup administrators 123 / add ordinary user will add 123 to the administrators group
net localgroup administrators 123 / del remove a user from the administrators group

Create a hidden account
net user 123 $ 123 / add
can be deleted in the control panel, you can also delete the dos command line (you must know the user name)


Other commands

the ping
ipconfig
ipconfig / All
ipconfig / flushdns refresh dns cache
ipconfig / release to release the current ip, suitable for DHCP to obtain the ip
ipconfig / Renew to obtain a new ip
arp -a arp cache table view
route print Print system routing table

   

 

Guess you like

Origin www.cnblogs.com/wasabiblog/p/11574870.html
Recommended