Unit 4 - Linux Flashcards
Examples of pen testing tools.
Packet generators, port scanners, and proof-of-concept exploits are examples of PenTesting tools.
What are some popular terminal emulators in Linux?
In Linux, popular terminal emulators are Terminator, eterm, xterm, konsole, and gnome-terminal.
Describe the following linux commands.
mv
chmod
chown
mv
Moves or renames files and directories
chmod
Modifies file permissions
chown
Changes the ownership of a file
Describe the following linux commands.
dd
pwd
ps
dd
Copies data from an input to an output
pwd
Displays the name of the current directory
ps
Lists the processes that are currently running in the system
Describe the following linux commands.
su
sudo
grep
su
Simulates a login as another user or to become a superuser
sudo
Runs a command as a super user, by default, or another named user
grep
Used to search for specific strings of characters within a file or other command outputs. To search through the output of a previous command, grep must be piped at the end of the previous command.
Describe the following linux commands.
ifconfig
apt-get
iwconfig
ifconfig
Used to display or configure network card related information. If issued without parameters, ifconfig will display the current network card(s) configuration. Note: While still widely in use, this command is deprecated. Use ip address instead.
apt-get
Used to install, configure and remove packages on Debian and its derivatives. Note: apt-get is a user-friendly command line front-end for dpkg, Debian’s package manager. The combo dpkg and apt-get is the default package manager system in all Debian Linux derivatives, including Raspbian.
iwconfig
Used to display or configure wireless network card related information. Similar to ifconfig, iwconfig will display wireless information when issued without parameters.
Describe the following linux commands.
shutdown
passwd
cat
man
shutdown
Shuts down the system, shutdown can be instructed to perform a number of shut down related tasks, including restart, halt, put to sleep or kick out all currently connected users.
passwd
Used to change the password. If no parameters are provided, passwd changes the password for the current user.
cat
Used to list the contents of a file and expects the file name as the parameter. The cat command is usually used on text files.
man
Used to display the documentation for a specific command.
Describe the following linux commands.
ls
cd
mkdir
Is
Displays the files inside a directory
cd
Changes the current directory
mkdir
Creates a directory under the current directory
Describe the following linux commands.
cp
mv
rm
cp
Copies files from source to destination
mv
Moves files to a different directory
rm
Removes files
Describe the following linux commands.
grep
cat
grep
Searches for specific strings of characters within a file or other commands outputs
cat
Lists the contents of a file and expects the file name as the parameter
what is a benefit of command line-based text editors over graphical text editors?
While graphical text editors are convenient and easy to use, command line-based text editors are very important for Linux users. The main benefit of command-line-based text editors is that they allow for text file editing from a remote computer.
What does the & and # at the end of a prompt symbolize?
Note: $ (dollar sign) indicates regular user privilege. If a ‘#’ (hashtag or pound sign) is displayed at the
prompt, it indicates elevated privilege (root user).
What are absolute and relative paths?
Absolute path is the term used when referring
to paths that always start at the root (/) directory. It is also possible to work with relative paths. Relative
paths reduce the amount of text to be typed. To understand relative paths, we must understand the . and.. (dot and double dot) directories.
What does the - a option tell ls to show in the command ls -la /home/analyst/cyops_folder3
The -a option tells ls to show all files. Notice the . and .. listings shown by ls. These listings are used by
the operating system to track the current directory (.) and the parent directory (..) You can see the use of
the . and .. when using the cd command to change directories. Using the cd command to change the
directory to the . directory incurs no visible directory change as the . points to the current directory itself.
What directory does the / represent?
/ – The Root
Everything begins in your system from this directory. All your folders, hard drives, USB drivers, everything is located in this root folder. You cannot go above this directory.
Also, the root directory is designated by the slash sign.
The concept of the root directory may be difficult to understand for Windows users who are used to see something like disk C, disk D and disk E. In Linux, every disk is a represented as a folder that is mounted under this root directory.