1.11 Flashcards

(70 cards)

1
Q

What does the ‘Man’ command do ?

A

Offers a manual or help

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

In Linux What’s the command for online help ?

A

Man grep

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

What Linux command lists the directory ?

A

Ls

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

In Linux What command Displays the current working directory path ?

A

Pwd Or Print working directory.

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

In Linux what command renames a file ?

A

Mv
“move or rename”

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

What Linux command coppies or duplicates directories ?

A

CP

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

Will the Rm command remove directories ?

A

No. All files must be deleted or a ‘-r’ wildcard must be added to delete

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

In Linux How do you elevate priviliges in the shell ?

A

Sudo command

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

How would you modify file settings in Linux ?

A

Use the Chown command
Change-ownership

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

In Linux How do you change the mode of a file system ?

A

Chmod

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

What does the apt-get command do ?

A

Manages app packages i.e. install, delete, update.

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

What command manages app packages on the Yellowdog distro ?

A

Yellowdowg Update Manager or Yum command

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

What Linux command allows you to Manage the network interfaces ?

A

IP

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

What Linux command allows you to View interface addresses ?

A

IP address

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

What command allows you to view the routing table ?

A

IP routing table

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

What does the following command do ?
sudo ip address add 192.168.121.241/24 dev eth0

A

Elevates permissions to allow you to add an IP address to a interface called ‘eth0’ i.e. an ethernet port.

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

In Linux What command allows you to view the file system and the amount of free space ?

A

df

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

What linux command allows you to open a process similar to windows task manager ?

A

The ‘Ps’ command will allow you to view the current proccesses.

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

What will the following command show ?
ps -e | more

A

It’ll show all proccesses

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

In Linux What command allows you to View CPU, RAM, and resource utilizations ?

A

Top command

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

How would you locate a file by name or extension ?

A

Use the ‘find’ command

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

What does the following command do ?
find . -name “*.txt”

A

It’ll locate any file with the extension .txt

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

What does the nano command do ?

A

Opens a full text graphical based editor

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

What m Linux command Syncs files between storage devices ?

A

Rsync

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What options are there to add SMB to Linux ?
Samba
26
Cd
Changes the current directory.
27
chmod
Changes(modifies) file perissions
28
Chown
Changes file ownership and group
29
CP
Copies files
30
Ls
Lists files in a directory
31
Mkdir
Makes directory/folder
32
Mv
Move or rename single file.
33
Rm
Remove a file.
34
pwd
Displays current directory
35
Cat
Displays the content of a file
36
Df
Disk free space
37
dd
Copies blocks of data from one file to another
38
Find
Searches for text in a file hierachy
39
Grep
Searches for regular expressions in a text file
40
Nano
Text based editor for files
41
Apt-get
Downloads files from a repository site
42
Yum
The YellowdogUpdater, Modified (YUM) is a free and open-source command-line package-management utility for computers running RedHat-based distributions.
43
Shutdown
Ronseal
44
Vi
Starts the visual editor
45
Man
displays hel for commands
46
Passwd
Change password
47
Sudo
Runs the command as another user
48
What type of user is set when using the Sudo command ?
Usually switch to the root user
49
Dig
DNS query
50
Ip
NIC info
51
ifconfig
NIC info
52
iwconfig
Wireless config info
53
Ps
Displays current running proccesses
54
Kill
Terminates a process
55
Top
Displays runngins proccess like task manager
56
What does rwx stand for wrt file permissions ?
read, write, execute.
57
What will the follwing command do ? ls -la
list all the files in a long format
58
fsck
Linux utility is used to check and repair disks
59
What Linux command can be used to run a single command as another user ?
Sudo
60
What Linux command allows you to change user logins at the command line ?
Su
61
A user has issued the following command: Cat aplus.txt What will his command do?
Display data within the file.
62
What are the benefits of Samba ?
Unix-like OSes can interoperate with Windows and provided file and print services to Windows clients.
63
APT
Advanced Packaging Tool
64
What does the Advanced Packaging Tool (APT) command do?
used to install, uninstall, and upgrade applications in Debian-based distributions like Ubuntu.
65
What structure will Chmod work on ?
Owner/Group/Everyone
66
What permissions are granted for different groups of users ?
Read/Write/execute
67
What numerical values are associated with Read/Write/Execute ?
4/2/1
68
Du command ?
Used to estimate the file space usage
69
What command is Used to estimate the file space usage ?
Du
70
Which command allows you to edit a file in the terminal ?
Vi