CompTIA A+ 1102 Linux Features and Commands Flashcards
1
Q
- Terminal
- XTerm
- (etc.)
A
Linux Command Line Options (list)
2
Q
- similar to Mac OS commands
A
Linux Commands
3
Q
“man” (command)
A
shows the manual for a Linux command
4
Q
- lists directory contents
- similar to “dir” in Windows
- may support color coding
- blue indicates a directory
- red indicates an archive file
- add “-l” at the end to view a longer output
- adding “-l | more” will present a page by page view
- use “q” or key in ctrl-c to exit this view
A
“ls” (command)
5
Q
- prints the working directory’s name (path)
A
“pwd” (command)
6
Q
- move or rename a file
- “mv [source] [destination]
- for example, “mv first.txt second.txt”
A
“mv”
7
Q
- copies a file
- “cp [source] [destination]”
A
“cp” (command)
8
Q
- removes a file or directory
- a directory must be empty to be removed, or must be removed with “-r”
A
“rm” (command)
9
Q
- 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
A
“chmod” (command)
10
Q
- r (read)
- w (write)
- x (execute)
A
Linux File System Modes (list)
11
Q
- changes a file’s owner and/or group
- requires root permissions and credentials
- “sudo chown [owner]:[group] [file]”
- “[group]” is optional
A
“chown” (command)
12
Q
- become the super user
- grants administrative (root) privileges
A
“su” (command)
13
Q
- execute a command as the super user
- grants administrative (root) privileges, but only when using “sudo” in front of a command
A
“sudo” (command)
14
Q
- advanced packaging tool
- handles the management of application packages
- “sudo apt-get [install/update/remove] [application]”
A
“apt-get” (command)
15
Q
manages RPM (Red Hat) packages
A
“yum” (command)
16
Q
manage the network interface
A
“ip” (command)
17
Q
- “ip address”
- “ip route”
A
Commonly Used “ip” Commands (list)
18
Q
- 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
A
“ip address” (command)
19
Q
- view the IP routing table
A
“ip route” (command)
20
Q
- view file systems and free space
- presented in blocks
- use “df -h” to view in human-readable sizes
A
“df” (command)
21
Q
- used to find text in a file or files
- “grep [text pattern] [file]”
A
“grep” (command)
22
Q
- view the current processes
- use “ps -e” to view all processes, including those for other users
A
“ps” (command)
23
Q
- view resource utilization
- includes a summary of the overall load
- presented in one, five, and fifteen minute intervals
A
“top” (command)
24
Q
- 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)
A
“find” (command)
25
- lookup information from DNS servers
- provides detailed domain information
"dig" (command)
26
- concatenate files
- "cat [first file and extension] [second file and extension]"
- copies a file or files to another file
"cat" (command)
27
provides a full-screen text editor
"nano" (command)
28
- used to create and manage tape drive archives and backups
- can be used for any type of file
- easy to script into a backup schedule
"tar" (command)
29
- provides a utility for syncing files between storage devices
- can be instant or scheduled
"rsync" (command)
30
Software Center
Linux's version of the Mac OS App Store
31
- no built-in options
- Clam is the recommended third-party anti-virus
- open-source
Anti-Virus and Anti-Malware on Linux
32
- 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
"samba"