Microsoft Command-Line Tools Flashcards
What are the 2 command used for each of the following:
- Directory traversal
- LIsting ALL Directory files and sub directories
Traversal
- CD
- ChDir
Listing Dir
- DIR
- DIR * . *
What are the 2 command used for each of the following:
- Creating a new Directory
- Deleting a Directory
(Provide both names)
Creating
- md
- mkdir
Deleting
- rd
- rmdir
What are 2 reasons the command-line utility Netstat is used for
- Displaying TCP/IP Connections
- Displaying network protocol statistics
If you wanted to obtain an FQDN-to-IP address mapping, what command-line tool would you use?
nslookup
What Command Prompt utility allows you to verify the file system integrity and fix logical file system errors on a disk?
chkdsk
Describe what the commands below display:
- net use
- net share
- Current connections TO shared resources
- Shared Resources FROM the computer
Describe what the commands below display:
- net user
- net accounts
- Lists user accounts for the computer
- Lists Account Policies for the computer
A network command-line utility in MS Windows that tracks and displays the route taken by IP packets on their way to another host is known as:
tracert
For a newly added storage drive, this command-line command allows to configure it with a file system enabling Windows to store information on the drive
format
copy command
- What is it used for?
- What does the “/v” switch do?
- What does the “/y” switch do?
- Used to copy one or more files from one location to another
- Verifies that the new files are written correctly
- Suppresses the confirmation prompt about to overwrite existing file?
What are 2 commands that allows for copying multiple files and directories, including subdirectories?
(Which offers more options?)
- xcopy
- robocopy (more options)
What are the commands for the following:
- Updating multiple Group Policy settings in MS Windows
- Display Group Policy Information for machine/user
- gpupdate
- gpresult
shutdown command
What are the following switches used for?
* /s
* /r
* /s /t 30
* /a
shutdown
- shutdown machine
- restart machine
- shutdown machine in 30 seconds
- abort shutdown
sfc
- What does the Command Prompt utility do?
- What does the /scannow switch do?
- Scans the integrity of system files and replaces incorrect/old versions with correct versions
- Attempts to repair corrupted files
What is the name of the command utility that launches a text-based, partitioning utility?
diskpart
What is the name of the network command-line utility that combines the features of ping and tracert?
pathping
What are 2 commands used for resetting DHCP configuration settings for all adapters?
- ipconfig /release
- ipconfig /renew
netstat command
- What parameter allows to display all active TCP connections and the TCP/UDP ports on which the computer is listening?
- What parameter allows to display the name of the application involved in creating each connection or listening port?
- What parameter allows to display addresses and ports in numerical form?
- -a
- -b
- -n
chkdsk command
- What does the /f switch mean?
- What does the /r switch mean?
- Fixes errors on the disk
- Locates bad sectors and recovers readable information. It also fixes errors on the disk (Because /r also implies /f)
What are 2 commands that can be used to display help information related to a specific utility?
- [command] help
- [command] /?