p2 jc

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

31 Terms

1
New cards

how do you assign a value to a variable in Bash?

variable=value

2
New cards

which command

searches the directories in the ‘$PATH’ variable and displays the location of an executable file

3
New cards

t or f. you can use the rpm command to manage packages on both Debian and Red Hat systems

false. the rpm command is specific to Red Hat based systems for managing individual package files, whereas Debian-based systems use dpkg. the apt and dnf/yum commands are high level tools that manage packages and dependencies more comprehensively

4
New cards

touch command

used to create an empty file in the current directory. if the file exists, it updates the file’s timestamp

5
New cards

if you want to install a new application from your distribution’s repository, which command would you likely use on a Red Hat system?

dnf install. on RedHat based systems, the dnf command is used to manage packages, including installing new software from the distribution’s repositories. for older RedHat based systems, you would use the ‘yum’ command

6
New cards

what is the default directory represented by the ‘~’ symbol in the command prompt?

home directory. this symbol in the command prompt is a shortcut that allows users to quickly navigate to their home directory from any location in the file system

7
New cards

what is the primary use of PHP in web development?

server side scripting. PHP is widely used for server side scripting in web development. it is a powerful tool for creating dynamic web pages, processing form data, interacting with databases, and more. PHP scripts are executed on the server before the resulting HTML is sent to the client’s browser

8
New cards

echo command

specifically designed to display text on the terminal. it is commonly used to print messages, variables, or any other text content to the screen for the user to see

9
New cards

which tool would you use to manage packages and dependencies on a Debian based linux distribution?

apt. the apt tool is used in debian based distributions like Ubuntu for managing packages, allowing users to install, update, and remove software packages efficiently.

10
New cards

what is the effect of using single quotes around a string in bash?

it treats the string literally, without interpreting special characters. the content within the single quotes is taken as-is without any special processing

11
New cards

which license is known for being permissive and allowing proprietary use of the software?

BSD license is known for being a permissive open source license that allows for proprietary use of the software. it imposes minimal restrictions on how the software can beused and distributed, making it a popular choice

12
New cards

GPL (general public license)

known for its copyleft nature, which means it requires derivative works to be licensed under the same terms. it does not allow for proprietary use of the software, making it less permissive compared to other licenses

13
New cards

AGPL

copyleft license similar to the GPL, but with additional provisions for software used over a network. it does not allow for proprietary use of the software and imposes more restrictions compared to permissive licenses like the BSD

14
New cards

FDL free documentation license

license specifically designed for documentation rather than software. it focuses on ensuring that documentation remains free and open, but it does not address the permissiveor proprietary use of software

15
New cards

FLOSS

free/libre open source software, emphasizing both the freedom(libre) and open source nature of the software

16
New cards

FSF free software foundation

advocates for four software freedoms, which include the ability to use, study, modify, and distribute software

17
New cards

Which command deletes the file named 'testing_in_production.txt' in the current directory

rm testing_in_production.txt

rm command is used to delete files

18
New cards

which environment variable contains the list of directories to search for commands?

$PATH environment variable contains a list of directories to search for executable commands

19
New cards

what is the purpose of package management tools like apt and yum?

package management tools like apt (for debian based systems)and yum or dnf (for red hat based systems) are designed to handle the installation, updating, and removal of software packages, along with managing their dependencies

20
New cards

which wildcard character represents any string of zero or more characters?

*

the * wildcard character represents any string of zero or more characters

21
New cards

dual licensing

allows the software to be available under an open source license while also offering a proprietary license for those who require additional services or fewer restrictions

22
New cards

which creative commons license is most similar to a copyleft license in its requirements?

CC BY-SA license requires that derivative works be licensed under identical terms, similar to copyleft principles

23
New cards

what is the result of using the ‘ls -l’ command?

lists files in long format

24
New cards

what is the purpose of the -R option when used with chmod?

to change permissions recursively on all files and directories. the -R option to chmod changes the permissions of all files and directories within a specified directory recursively, which means it applies the changes to all subdirectories and files within that directory

25
New cards

what command would you use to extract the contents of a tarball named “backup.tar” in the current directory?

tar xvf backup.tar. the command “tar xvf backup.tar” is used to extract the contents of a tarball named “backup.tar” in the current directory. the “x” flag stands for extract

26
New cards

what command will search for the word “error” in all files in the current directory and its subdirectories?

grep -r error . the grep command searches for patterns within files. the ‘-r’ (recursive) option tells ‘grep’ to search through all files in the current directory and its subdirectories

27
New cards

/dev directory

contains info qbout every device installed on a linux system

28
New cards

FHS filesystem hierarchy standard

a set of guidelines that define the directory structure and contents on linux and other unix like operating systems

29
New cards

what directory is intended for short term temporary files that may be deleted upon system reboot?

/tmp. the /tmp directory is intended for short term temporary files that may be deleted upon system reboot. applications using this directory should not assume that data willl be preserved between reboots

30
New cards

which command is used to display the current network interfaces and their IP addresses on a linux system?

ip addr show provides detailed information about network interfaces, including their IP addresses

31
New cards

what prompt would you most likely see if you log in as the root user on a linux system named “web?”

root@web:~#.

When logged in as the root user, the prompt typically appears as root@web:~#. The root part indicates that you are logged in as the root user. The web part is the hostname of the computer. The ~ symbol represents the home directory of the user, which, for the root user, is usually /root. The # symbol signifies that you are operating as the root user, in contrast to the $ symbol, which is used for regular users.