Font size
WorksheetsOperating System Application
Total questions: 66
Worksheet time: 33mins
is a Unix-like, open source and community-developed operating system for computers, servers, mainframes, mobile devices and embedded devices.
Linux
Applications
Shell
Bash Shell
1. is open source software
2. provides easy access to a powerful and scriptable command-line interface (CLI)
3. is a modular operating system that allows you to easily replace or remove components
Role of the Kernel
Linux
File Systems
Linux Distribution
The three main components of an operating system they are the kernel, shell, and file system
Applications
Bash Shell
Brian Fox
Role of the Kernel
Make requests to the kernel and receive resources, such as memory, CPU, and disk, in return. The kernel also abstracts the complicated details away from the application
Role of Open Source
Linux command line
Applications
Command
is an interactive interface that allows users to execute other commands and utilities in Linux and other UNIX-based operating systems
External Commands
Functions
Shell
Basic Command Syntax
are a lot more powerful than the Windows command line, because they function as a scripting language as well, with a complete set of tools
Linux Shells
Linux Distributions
Types of Open Source Licenses
Bourne Shell (BASH)
is a type of interpreter that processes shell commands. It is a Unix shell and command language
clear
External Commands
ls
Bash Shell
Bash is a Unix shell and command language written by
Brian Fox
Bill Gates
Mark Zuckerberg
Brian May
is a hierarchy of directories and files with the root / directory at the top of the directory tree. It is a structure created on a disk partition consisting of tables defining the locations of directories and files.
Role of Open Source
File Systems
Linux
Linux Distributions
Is an operating system made from a software collection that is based upon the Linux kernel and, often, a package management system.
Linux Distributions
Internal Commands
Linux ShellsLinux command line
Linux Shells
takes a source-centric view of software. The open source philosophy is that you have a right to obtain the software and to modify it for your own use. Linux adopted this philosophy to great success
Aliases
Types of Open Source Licenses
Bourne Shell (BASH)
Role of Open Source
1. Copyleft licenses that are designed to encourage keeping code open source.
2. Permissive licenses that are designed to maximize code reusability.
External Commands
External Commands
Types of Open Source Licenses
External Commands
is a text interface to your computer. Also known as shell, terminal, console, command prompts and many others, is a computer program intended to interpret commands
Functions
Linux command line
Functions
External Commands
The default shell for users in Red Hat Enterprise Linux and CentOS
Bourne Shell (BASH)
Command
Aliases
External Commands
A software program that when executed on the command line, performs an action on the computer.
clear
Command
Functions
pwd
Also called built-in commands, these commands are built-in to the shell itself. A good example is the cd (change directory) command as it is part of the Bash shell.
External Commands
Sources of Commands
Internal Commands
Basic Command Syntax
These commands are stored in files that are searched by the shell. If you type the ls command, then the shell searches through a predetermined list of directories to try to find a file named ls that it can execute.
Internal Commands
Role of Open Source
Brian Fox
External Commands
can override a built-in command, function, or a command that is found in a file. can be useful for creating new commands built from existing functions and commands.
Aliases
rmdir
sudo
Functions
can also be built using existing commands to either create new commands, override commands built-in to the shell or commands stored in files.
locate
Functions
chown
Unix Name
What are the Sources of Commands?
Internal Commands
External Commands
Aliases
Functions
Linux command line
allows the user to view the contents of a directory. It lists the files and directories. This displays the contents of the current working directory by default
ls
pwd
clear
cd
clears the terminal screen
clear
touch
rmdir
locate
It allows users to find the path of the current working directory or folder they are in
cd
pwd
cp
mv
Used to navigate through the Linux files and directories. You will have to write the full path or the name of the directory to use this command
mv
sudo
tail
cd
Used to copy files from the current directory to a different directory
cp
man
cat
rm
Used to move a file from a given directory to a different directory. It helps programmers to organize data easily. You can also use this command to rename files. The file or directory that is moved is deleted from the working directory
rm
mv
choown
echo
deletes directories as well as the contents within them. This command needs to be used carefully as it deletes everything.
touch
locate
rm
df
allows users to delete a directory, provided that the directory is empty. You will need to ensure that there is no file or subdirectory under the directory that you want to delete
uname
rmdir
Unix name
history
set of characters can be enclosed that will be used to match exactly one character.
bracket
wildcard
history-c
interactive shell
can be used to match any string, including the empty string
asterisk
file globbing
initialization files
chmod
A _______ is essentially a symbol which may be used to substitute for one or more characters
nano
./welcome.sh
wildcard
log in shell
is a feature provided by the UNIX/Linux shell to represent multiple filenames by using special characters called wildcards with a single file name
PATH=$PATH:
/home/student/location/1/welcome.sh
Interactive shell
file globbing
clears entire content of the history file
history-c
log in shell
chmod
man
Log in shell & Interactive shell
/home/student/location/1/welcome.sh
Initialization files
.sh
nano
/etc/profile
~/.bash_profile
~/.bashrc
/etc/bashrc
Log in shell
chmod u+x
relative path
path
This command prints detailed information about your Linux system. The information includes machine name, kernel, operating system, and more. Different options tell about different pieces of information
unix name
uname
history
tail
Used to check your connection to a server. It checks the reachability of a host on an Internet Protocol (IP) network"
ping
argument
useradd
man
can be used to specify something for the command to act upon. Following a command, any desired _______ are allowed or are required depending on the command
argument
quoting
cat
ping
can be used to specify something for the command to act upon. Following a command, any desired _______ are allowed or are required depending on the command
local variable
global variable
variable
int
you can create a new blank file with the given name.
touch
sudo
df
new
enables users to locate a file. If you don't remember the exact file name, you can use the -i argument to make it case-insensitive
locator
du
df
locate
It enables users to run some commands as a super user or System Administrator that normal users cannot do. You can run such commands that need elevated rights on a Linux system
chow
echo
sudo
cat
users can get the information related to file systems about total space and available space. You can get a report on display the size, available space, and system's disk space usage, and more. This command shows the result in percentage and KBs
quotes
chown
prcnt
df
shows how much space a file or a directory takes.
show
du
dir
spcdir
you can change the ownership of a file or folder to the specified username
chown
chow
cow
echo
displays a text or a string to the standard output or a file
echo
show
disp
This command allows users to view the first lines of any text file. It shows the first ten lines by default.
head
first
showhead
def
This command shows the last ten lines of a text file
last
tail
bottom
show.last
This command prints detailed information about your Linux system. The information includes machine name, kernel, operating system, and more. Different options tell about different pieces of information
uname stands for
unix name
unique name
unname
unixxname
shows the previously used commands. It displays the information about the commands executed by a user
prev
previous
history
hist
This command is used to check the reference manual pages for commands or programs
man
cat
help
.help
It is used to add or remove a user on a Linux server
remove
add
useradd
userrem
is used to display the contents of a file
cont
cat
man cat
ping
Arguments that contain unusual characters like spaces or non-alphanumeric characters will usually need to be quoted, either by enclosing them within double quotes or single quotes
options
quoting
tab key
variable
can be used with commands to expand or modify the way a command behaves. They can be specified after the command name
variable
options
tab key
single quotes
can be used with commands to expand or modify the way a command behaves. They can be specified after the command name
PATH Variable
Absolute path
unset
environmental variable
A variable that can only be accessed from a specific portion of a program. Is only available to the shell in which it was created
variable
local variable
global variable
environmental variable
is your way of telling Linux to finish the current word you are typing
space key
enter key
tab key
shift key
prevent the shell from interpreting any special characters
' '
" "
/
//
will prevent the shell from interpreting some of these special characters
" "
//
' '
/
will prevent the shell from interpreting some of these special characters
chmod u+x
unset
unet
chmod
contains a list of directories that are used to search for commands entered by the user. When the user types a command and then presses the Enter key, the directories are searched for an executable file that matches the command name.
path variable
absolute path
relative path
nano
specifies the location of a file or directory from the top-level directory through all of the subdirectories to the file or directory. Always starts with the / character
relative path
absolute path
path
directory
specifies the location of a file or directory from the top-level directory through all of the subdirectories to the file or directory. Always starts with the / character
related path
path relative
relative path
relatve dir
Adds a directory to PATH
PATH=$PATH:
new.path
PATH=NEW.PATH
$newpath
