1.11 Flashcards

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
Q

What options are there to add SMB to Linux ?

A

Samba

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

Cd

A

Changes the current directory.

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

chmod

A

Changes(modifies) file perissions

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

Chown

A

Changes file ownership and group

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

CP

A

Copies files

30
Q

Ls

A

Lists files in a directory

31
Q

Mkdir

A

Makes directory/folder

32
Q

Mv

A

Move or rename single file.

33
Q

Rm

A

Remove a file.

34
Q

pwd

A

Displays current directory

35
Q

Cat

A

Displays the content of a file

36
Q

Df

A

Disk free space

37
Q

dd

A

Copies blocks of data from one file to another

38
Q

Find

A

Searches for text in a file hierachy

39
Q

Grep

A

Searches for regular expressions in a text file

40
Q

Nano

A

Text based editor for files

41
Q

Apt-get

A

Downloads files from a repository site

42
Q

Yum

A

The YellowdogUpdater, Modified (YUM) is a free and open-source command-line package-management utility for computers running RedHat-based distributions.

43
Q

Shutdown

A

Ronseal

44
Q

Vi

A

Starts the visual editor

45
Q

Man

A

displays hel for commands

46
Q

Passwd

A

Change password

47
Q

Sudo

A

Runs the command as another user

48
Q

What type of user is set when using the Sudo command ?

A

Usually switch to the root user

49
Q

Dig

A

DNS query

50
Q

Ip

A

NIC info

51
Q

ifconfig

A

NIC info

52
Q

iwconfig

A

Wireless config info

53
Q

Ps

A

Displays current running proccesses

54
Q

Kill

A

Terminates a process

55
Q

Top

A

Displays runngins proccess like task manager

56
Q

What does rwx stand for wrt file permissions ?

A

read, write, execute.

57
Q

What will the follwing command do ?
ls -la

A

list all the files in a long format

58
Q

fsck

A

Linux utility is used to check and repair disks

59
Q

What Linux command can be used to run a single command as another user ?

A

Sudo

60
Q

What Linux command allows you to change user logins at the command line ?

A

Su

61
Q

A user has issued the following command:

Cat aplus.txt

What will his command do?

A

Display data within the file.

62
Q

What are the benefits of Samba ?

A

Unix-like OSes can interoperate with Windows and provided file and print services to Windows clients.

63
Q

APT

A

Advanced Packaging Tool

64
Q

What does the Advanced Packaging Tool (APT) command do?

A

used to install, uninstall, and upgrade applications in Debian-based distributions like Ubuntu.

65
Q

What structure will Chmod work on ?

A

Owner/Group/Everyone

66
Q

What permissions are granted for different groups of users ?

A

Read/Write/execute

67
Q

What numerical values are associated with Read/Write/Execute ?

A

4/2/1

68
Q

Du command ?

A

Used to estimate the file space usage

69
Q

What command is Used to estimate the file space usage ?

A

Du

70
Q

Which command allows you to edit a file in the terminal ?

A

Vi