Linux Fundamentals Part 1

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

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.

20 Terms

1
New cards

Where is Linux used?

In websites, control panels, traffic light controllers and more

2
New cards

Is Linux one entity?

No, Linux is actually an umbrella term uses for multiple OS’s that are based on UNIX.

3
New cards

What is the benefit of Linux being open-sourced?

It allows variants of Linux to come in all shapes and sizes, complimenting it for what the system is being used for.

4
New cards

What are commonplace distributions of Linux?

Ubuntu & Debian

5
New cards

What command is used to output any text provided?

echo

6
New cards

what command is used to find out what user we’re currently logged in as?

whoami

7
New cards

what command is used to find the contents of any files or folders?

ls

8
New cards

what command is used to change to a directory

cd

9
New cards

What command is used to output the contents of a file?

cat

10
New cards

What command is used to find out the full path to our current working dictionary

pwd (Print Working Directory)

11
New cards

what does the term “find” do in linux?

To search for a file in one command instead of looking through different folders.

12
New cards

How does you use a wildcard in Linux?

Wildcard(*) is used to search for anything that has the following suffix. Example:

find -name *.txt will output all files that have .txt in it.

13
New cards

what is the command “wc” used for?

to count the number of entries in a log/file.

14
New cards

How to use grep command?

grep command is used to search contents of files for specific values

15
New cards

why use grep instead of cat?

Cat would output all entries whereas grep would search through the file and output the specific value provided.

16
New cards

what is an example of using grep

grep “SpecificValue“ acess.log

17
New cards

What does the Linux Operator “&” do?

Allows you to run commands in the background of your terminal. Example: if i wanted to copy a large file, this would take a long time and render us unusable to do anything else until it has been copied. “&” allows the execution of a command while we are able to do other things.

18
New cards

What does the Linux Operator “&&” do?

“&&” makes a list of commands to run. Example: command1 && command2 however command2 will only run if command1 was successful.

19
New cards

What does the operator > do?

“>” takes the output from a command ran and sends that output to somewhere else. Creating or overwriting a file as a result.

20
New cards

What does the operator » do>

It does the same as “>” BUT the difference is it adds the output at the bottom instead of overwriting.