1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Where is Linux used?
In websites, control panels, traffic light controllers and more
Is Linux one entity?
No, Linux is actually an umbrella term uses for multiple OS’s that are based on UNIX.
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.
What are commonplace distributions of Linux?
Ubuntu & Debian
What command is used to output any text provided?
echo
what command is used to find out what user we’re currently logged in as?
whoami
what command is used to find the contents of any files or folders?
ls
what command is used to change to a directory
cd
What command is used to output the contents of a file?
cat
What command is used to find out the full path to our current working dictionary
pwd (Print Working Directory)
what does the term “find” do in linux?
To search for a file in one command instead of looking through different folders.
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.
what is the command “wc” used for?
to count the number of entries in a log/file.
How to use grep command?
grep command is used to search contents of files for specific values
why use grep instead of cat?
Cat would output all entries whereas grep would search through the file and output the specific value provided.
what is an example of using grep
grep “SpecificValue“ acess.log
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.
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.
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.
What does the operator » do>
It does the same as “>” BUT the difference is it adds the output at the bottom instead of overwriting.