1.2 Flashcards
In what circumstances might you use the ipconfig/flushdns command ?
Clears the DNS cache to acces sites.
Or if you have security concerns
What does the hostname command do ?
Prints only the NetBios name of the PC
Try it on the command line now
What windows command should you use to find the name of a computer ?
Hostname
What command is used to see what ports are listening on the TCP/IP-based system ?
Netstat
-a shows all ports
/? shows other options
What can Netstat be useful for ?
Monitor traffic on ports for suspicious usage.
How do you exit from most command scenrios ?
ctrl + c
Open up Powershell and look at the different options for nslookup. Try quering and chaging around the Ipv4 to ipv6
Basically type nslookup and then help
https://www.youtube.com/watch?v=jf-x76XYY2o
What does CHKDSK do ?
Scans a disk in hopes of recovering corrupted files
What does the net user command do ?
Add, remove, and change user accounts.
What does the net use command do ?
Used to connect to a network share.
What does the tracert (traceroute) command do ?
Verify the path a network packet travels to its destination. I.e. returns a hop count.
https://www.youtube.com/watch?v=up3bcBLZS74
What is the difference between copy and xcopy ?
Xcopy is designed to copy directories as well as files.
https://www.youtube.com/watch?v=0q3rGK_IMZg
What are the benefits of ROBOCOPY
Keep NTFS permissions intact
Verifications and Speed
What does GPUpdate do?
Forces a device to update policies
What does the System File Checker command do ?
Verifies the versions of system files on your computer.
What does the diskpart command do ?
Partition management
Shows the partitions
https://www.youtube.com/watch?v=qH9PxrKMwCQ&t=14s
What does the winver command do ?
Shows which version of Windows is running.
Anything you put on the end of a command and a command line is known as…
A switch.
What Microsoft command will take you straight to the root directory ?
cd \
Whats the main subtle difference between the linux CLI and Winwdows CLI ?
Windows \
Linux /
What will this command do ?
Format e: /FS:NFTS
Format a drive calle ‘e’ and use the file system ‘fs’ type called NFTS
What does the chmod command do ?
Modifies linux permissions
What does the Chown command do ?
Enables root users to take control of any Linux file/folder
What does the tasklist command do ?
Lists all running proccesses
What does the task kill command do ?
Shuts down a task/programme
What does this command do ?
taskkill /PID 21104
It will kill the programme with a process ID (PID) 21104.
Open up the command prompt in admin mode and navigate your way to the user account associated with your PC
cd\users\jon_s
In Powershell spaces are important: cd \users\jon_s
Open up the cmd and make a directory called Temp1.
Verify then delete Temp 1.
Basically get into your users account then type the command: “md Temp1”. Verify with “dir”
To delete type “rd Temp1”. Verify with “dir”.
What windows command allows you to delete a file ?
Type “del filename”
How do wildcards work at the command prompt ?
You type a symbol in to account for multiple file names and will just refer to the file type extension at the end
Example “*.txt” will highlight all txt files regardles of the file name.
How would you go about deleting thousands of Jpeg files within a folder ?
“del *.jpeg”