Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
120 Cards in this Set
- Front
- Back
Ctrl-Alt Fx (2-6) will do what?
|
Switch to a shell based prompt |
|
How do you switch back from a shell based prompt?
|
Alt F7 |
|
What does the "zsh" command do?
|
Switches to a zsh terminal
|
|
How do you get your default shell info?
|
echo $SHELL |
|
Key Combo to switch terminal when already in text shell
|
ALT F1-F7
|
|
CMD to see Shell Variables
|
env
|
|
Determine if ntp is running.
|
chkconfig ntp
systemctl status ntp ntpstat |
|
how to shut down system
|
reboot init 0 (as root) |
|
CMD to shutdown and reboot a server as root
|
init 6 |
|
CMD to get information about commands.
|
man |
|
CMD like "man" that explains commands.
|
info
|
|
CMD to change privileges being used.
|
By default the cmd by itself will switch to root. |
|
CMD to list running applications
|
top
|
|
Displays the path of the cmd
|
which |
|
Display currently logged in user
|
whoami |
|
displays statistical information for netwoks
|
netstat most common Linux netstat -antp |
|
CMD to view or add pathways to routing tables.
|
"route" and or "route add"
|
|
CMD to display kernel and distro release info.
|
uname -a
|
|
vi cmd to delete word and space after the cursor |
dw |
|
vi cmd to delete word but not the space after the cursor |
de
|
|
vi cmd to delete from cursor to end of document |
d$
|
|
vi cmd to delete from cursor to end of line
|
dd
|
|
vi cmd to paste last deleted info to current cursor location. |
p
|
|
cmd to denote current directory location
|
pwd
|
|
File that list drives, partitions, and filesystems
|
/etc/fstab
|
|
File that defines local groups on a system
|
/etc/group
|
|
File that list hostnames to IP Address for the resolution of hostnames. |
/etc/hosts
|
|
File that contains configurations parameters for the init process |
/etc/inittab
|
|
File that contain the configurations parameters for you kernel modules. |
/etc/modules.conf
|
|
Location of file that a user must be listed in or added to in order to use the sudo cmd.
|
/etc/sudoers
|
|
file that contains configuration parameters for the init process. |
/etc/inittab
|
|
A subdirectory that contains startup scripts for installed services.
|
/etc/init.d/ /etc/rc.d/init.d ( for RedHat) |
|
File that contains configuration parameters for kernel modules.
|
/etc/modules.conf
|
|
Location of system user account info...
|
/etc/passwd |
|
Location of Encrypted passwords
|
/etc/shadow |
|
Location of config files for X Windows
|
/etc/X11 |
|
What dir contains important system management and admin files. ie: fdisk, fsck, ifconfig, init, mkfs, shutdown, and halt.
|
/sbin
|
|
Contents of /usr folder exe programs library files system admin folder docs and man pages |
/usr/bin /usr/lib /usr/sbin /usr/share |
|
Name these Directories -Running services on sys like http and ftpd. -Info about the hardware on system. -Contains temp files -Applications Files -Log Files |
/srv /sys /tmp /usr /var |
|
Device File for Linux floppy disk.
|
/dev/fd0
|
|
Device id for IDE CD-ROM drive connected to Primary IDE channel.
|
/dev/hdb
|
|
The directory that contains Linux system config files |
/etc
|
|
What doe FIFO stand for
|
Used to move data from one running process to another in a specific order. |
|
File pointers that point to other files in the file systems.
|
the link cmd by default it creates hard links -s creates soft links links can not be create across file volumes. |
|
CMD used to copy files
|
cp cp (file pathway) (new location pathway) |
|
delete file delete dir |
rm (filename pathway) rmdir (dir pathway) *dir must be empty, if dir is not empty use the -r to force delete |
|
ls switches -a -l -s -r |
display all files including hidden files gives a long listing of the dir size of the file in dir displays contents of the dir and sub dir |
|
shorter cmd for cat /var/log/dmesg |
dmesg |
|
option prevents you from overwriting existing files with the > operator. |
noclobber
sudo set -o noclobber (turns on) sudo set +o noclobber (turns off) In some cases you may really want to overwrite the file. In this case, instead of turning noclobber off, you can use >! to force the file to be written. |
|
3 phases of boot |
bios boot loader kernel |
|
cmds for restart |
init 6 shutdown -r now reboot |
|
Files that linux reads during authentications |
/etc/passwd /etc/shadow |
|
how do you modify a user?
|
usermod
usermod -c edits the full name usermod -g sets the default group usermod -l changes username usermod -p changes passwd usermod -u sets the UID |
|
how do you change the users group?
|
chgrp
|
|
where does bash store individualuser's shell preferences?
|
~/.bashrc
|
|
Where are the login shellsconfiguration parameters stored forsystem wide?
|
/etc/profile
|
|
Which configuration file is used when a user opens a non-login bash shell?
|
~/.bashrc file is used.
|
|
how do you view your bash history?
|
history cat, less, more ~/.bash_history |
|
how do you create an alias cmd? |
alias new_cmd = "old_cmd_w/switdch" ex: alias ls2="ls -al" |
|
how do you redirect a directory into a text file using tail?
|
tail /var/log/messages 1> lastmessages creates a text file called"lastmessages" using the tail end ofthe log file messages |
|
Command to check runlevel |
runlevel 0 - Halt 1 - Single User Mode (Sorta like safe mode) 2 - Local Multi w/Networking 3 - Full Multi w/ Networking 4 - Not Used 5 - Full Multi w/ Networking and X Windows |
|
removes prog package and config files on Debian machines. |
dpkg -P program |
|
A command can be used to automate the making and breaking of symbolic links, which determine what to run in which runlevel
|
insserv |
|
cmd used to load or remove kernel module from or to Linux kernel |
modprobe udev relies on modprobe to load drives for auto detecting hardware. |
|
You need to know what partitions exist on local hard drives.
|
fdisk -l |
|
Cmd that eliminates all cached packages from the system. |
yum clean packages (for packages) yum clean headers (for headers) yum clean all (for both headers and packages) |
|
key combo that lets you access to command line during install |
ALT + F2 |
|
env variable that determines the primary prompted displayed at the bash command line. |
PS1 |
|
Convert tabs in each FILE to spaces |
Expand |
|
Is a program that converts between
Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. |
alien |
|
The bash shell does what for the user |
Interprets input |
|
Files are not executed during login. What happens to them |
They are sourced. |
|
VI command, from Command mode, that will reload the file from disk and leave you in the editor. |
e! |
|
describes the first logical partition on the first hard disk in a GRUB configuration
|
hd0,4 |
|
The command that allows you to make changes to parameters for a configured GRUB menu choice. |
e |
|
location that you are most likely to find the boot loader code on a Linux system? |
Master Boot Record First Sector of Partition |
|
Which file system does not use journaling |
Ext2 |
|
What switch enable tail to monitor a file? |
-f |
|
Define these Man Page Sections 1 2 3 4 5 6 7 8 |
Man Page SectionsUser CommandsSystem CallsC Lib FunctionsDevice and Special FilesFile Formats and ConventionsGamesMiscSystem Admin Tools ans Daemons |
|
A component in the Linux boot process is a small ramdisk in memory to which a temporary root file system is copied
|
initrd image With later Linux kernels, the bootloader creates a temporary ramdisk in memory during the boot process called an initrd image. This image contains a basic file system that can be used to complete a variety of startup tasks. |
|
While installing a new Linux workstation you decide you want to use POSIX users and permissions. Which file systems can you use during the installation? |
ReiserFS Ext4 |
|
env variable that specifies the location of the man pages on a linux system |
MANPATH |
|
When installing a Linux system which directory must have its own partition? |
/ |
|
when using the ln command which option is first target or source? |
target fist, source second |
|
globbing |
? * {} [] ie - "touch {a..c}.1" Will let you create files a.1, b.2, c.1 |
|
print the exit value of a cmd that was just run. |
echo $? |
|
Enables you specify env variables in a shell. |
export set allows the management of shell variables. |
|
In /etc/passwd what do the followning characters mean in the password field mean? * ! x |
* - no logon or no password set ! - password set account disabled x - password set |
|
vipw vigr |
The vipw and vigr commands edits the files /etc/passwd and /etc/group, respectively. With the -s flag, they will edit the shadow versions of those files, /etc/shadow and /etc/gshadow, respectively.
|
|
what command do you us to change your password? |
passwd -d = delete -e = expires account -i = disable account |
|
getent |
The getent command displays entries from databases supported by the Name Service Switch libraries, which are configured in /etc/nsswitch.conf. |
|
If you are not in ________ or you are in ________ you can not used crontab -e |
cron.allow cron.deny |
|
diff between cron and at |
at is a one time cron can be scheduled |
|
if a cron job is missed because of shutdown the job will be run... |
at next scheduled time. anacron will ensure job goes off at next start up. |
|
to see what "at" jobs are scheduled use |
atq |
|
to remove at job use |
atrm |
|
cron job time scheduled |
min hr dM M dW min = 0 - 59 hr = 0 - 23 dM = 1 - 31 dW = 1 - 7 |
|
simulate a shutdown using what switch |
shutdown -k |
|
What database is the timezone pulled from? |
/usr/share/zoneinfo |
|
How do time zones get converted in Linux |
through the use of Libraries |
|
What is the name of the grub2 configuration file. |
grub.cfg |
|
Mail Transfer Agents (MTA) |
XM qmail - secure sendmail postfx |
|
.forword file in your home directory lets you do what? |
enables you to send to multiple users. |
|
if you configure aliases they will not work until you run what cmd |
newaliases |
|
what replaced LPD, but is backward compatible. |
CUPS cups enable - allow jobs. cups reject - pause jobs |
|
lpr lprm lpq |
LPD commands. |
|
cmd to run after updating your list of Debian repository files. |
apt-get update |
|
nsswtich question |
/etc/nswitch.conf |
|
env variable used to provide additional library support and is considered a security risk. |
LD_LIBRARY_PATH |
|
A CMD to limit access to resouces like memory, #of files, etc |
ulimit |
|
lsof |
List open files. |
|
/etc/nologon means what?
|
no one but root are able to login |
|
gpg --keyserver |
|
|
UID of root Account |
0 |
|
cmd that lets you view the processes in a treelike hiearchy |
pstree |
|
cmd used to classify the kind of information a file is |
file |
|
to see if you have installed a package use |
apt-cache search |
|
utility on your system can display the number of free and used inodes as a total and percentage |
df -i |
|
using the "at" cmd find a job delete the job |
at -l (locate) atrm (remove) |
|
umask |
Command lets you alter the default permissions in a shell
|