Commands Flashcards

(48 cards)

1
Q

“dir” command

A

Windows command-Used to list files and directories
○ Mkdir, chdir, rmdir
§ Md- make directory (will be made in current file path)
§ Rm- remove directory (the one in the file path)
§ Cd- change directory
§ Use backslash to further specify folder paths
§ Cd ..- used to go back in the directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

“hostname”

A

○ This command will identify the computer name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

“format”

A

○ Can be used to format new partitions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

“copy”

A

○ windows command- Can copy files in a path
○ Can use /v to verify the files are written correctly
○ Can use /y to skip verification prompts
○ “xcopy”- can be used to copy all the contents in every folder under current directory you’re working from

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

“robocopy” (robust copy)

A

○ windows command- Recommended to use “robocopy /?” To get a look at all the command possibilities, it’s called robust for a reason
- will do/have more copying capabilities
- often used for backing up and syncing files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

“shutdown”

A

○windows command “shutdown /s”- shutdown
§ Add “/t”- shuts down after “nn” seconds
○ “shutdown /r”- restart
-/h= hibernation/sleep mode
-/l= lock

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

“Diskpart”

A

○ windows command- Manage disk configurations
○ “listdisk”
○ “listvolume”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

“winver”

A

Current windows version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

“gpupdate”

A

-Windows command “gpupdate”- can use /force
○ Can also use “target:____ /force” to make it happen on certain machine
○ “gpresult /rqq”- shows GPO polices and setups
○ Can log out and back in to apply there as well

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

“ipconfig”

A

-windows command
shows networked configuration details for the machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

“ping”

A

can see if you machine can communicate with other hosts or servers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

“netstat”

A

shows many network statistics
○ “netstat -a, -b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

“net”

A

common network resource commands
○ “net view”
-Typing “net” will show you available commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

“tracert”

A

determine the route a packet takes to a destination
-can be used to find hiccups in network communication path

	○ Maps the whole path
	○ Takes advantage of ICMP Time to Live Exceeded error messages
		§ The time in TTL refers to hops, not seconds or minutes
		§ TTL exceeded error will have an IP address where the error was savedp Each hop sends these messages back to the host to show how many routers/hops a tracert goes through to get to the target
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

“pathping”

A

combines ping and tracert
○ First phase runs a trace route
○ Second phase measures round trip time and packet loss at each hop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

“defrag ‘volume’”

A

○ Runs disk defrag on that volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

“df” command

A

Linux command for viewing disc and it’s used and free space
-“df -h” to view in human readable sizes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

“ls” command

A

Linux command for listing directory contents
-May be color coded, blue for directory, red for file
-add “-l” to see more, and “-l | more” for page by page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

“tar” command

A

Linux command for creating and managing archive files for tape drives and backups, for any file
-easy to script into backup schedule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

“sdelete” (command)

A
  • file level overwriting command on Windows
  • full delete, unrecoverable
21
Q

“ip route” (command)

A
  • Linux command for viewing and manipulating the IP routing table
22
Q

“nano” (command)

A

Linux command that provides a full-screen text editor, can be used to edit files in the command line
-Syntax= “nano ‘filename’”

23
Q

“ps” (command)

A
  • Linux command for viewing the current processes
  • use “ps -e” to view all processes, including those for other users
  • Like viewing Task Manager but in the command line, but on Linux
24
Q

“rm” (command)

A
  • Linux command- removes a file or directory
  • a directory must be empty to be removed, or must be removed with “-r”
25
"dig" (command)
- lookup information from DNS servers - provides detailed domain information - “dig [server] [name] [type]
26
"apt-get" (command)
- Linux command- advanced packaging tool - handles the management of application packages - "sudo apt-get [install/update/remove] [application]"
27
"find" (command)
- Linux command used to find a file by the name or file extension - "find . -[name] [file and extension]" - finds files with that specific extension - the "." indicates that the search will begin at the current folder (the working folder)
28
"sfc" (command)
System file checker - verifies the integrity of the OS - "sfc /scannow"
29
"cp" (command)
- copies a file in Linux - "cp [source] [destination]"
30
"top" (command)
- “table of processes” - view resource utilization in Linux - includes a summary of the overall load - presented in one, five, and fifteen minute intervals
31
"yum" (command)
Linux command manages RPM (Red Hat) software packages
32
"ip" (command)
manage the network interface on Linux
33
"chown" (command)
- changes a file's owner and/or group on Linux - requires root permissions and credentials - "sudo chown [owner]:[group] [file]" - "[group]" is optional
34
"mv" (command)
- move or rename a file on Linux - "mv [source] [destination] - for example, "mv first.txt second.txt"
35
"ip address" (command)
- view the interface address - for example, "sudo ip address add [ip address and subnet mask] dev [adapter name]" - configures the IP address of an interface
36
"cat" (command)
- concatenate files - "cat [first file and extension] [second file and extension]" - copies a file or files to another file - can also be used to view the full contents of a file.
37
"sudo" (command)
- execute a command as the super user - grants administrative (root) privileges, but only when using "sudo" in front of a command
38
"man" (command)
shows the manual for a Linux command - "man [command name]"
39
"grep" (command)
- used to find text in a file or files - "grep [text pattern] [file]"
40
"samba"
- file server utility - often used to add SMB (Server Message Block) to Linux systems - implement file and printer sharing - integrate with Active Directory - integrates Linux into a Windows environment
41
"rsync" (command)
- provides a utility for syncing files between storage devices - can be instant or scheduled
42
"pwd" (command)
- prints the working directory's name (path)
43
"su" (command)
- become the super user - grants administrative (root) privileges - keep super user privileges
44
"chmod" (command)
- changes the mode (permissions) of a file system object - "chmod [mode] [file]" - for example, "chmod 744 script.sh" - this would grant the user rwx, group r--, and others r-- - can also use letters to specify the mode
45
“Net use” command
Windows command for mapping a network drive -“net use [drive letter] \\ [server name] \ [share name]”
46
“dd” (command)
Linux command for copying and converting data files
47
“Net user” (command)
Lists all local user accounts
48
“ipconfig /release | ipconfig /renew”
Do both back to back to get a new DHCP assigned IP address on Windows