lpic Flashcards
Which bash configuration files are used for non-login bash shell sessions?
/etc/bashrc & ~/.bashrc
which bash config files are used for login shell sessions?
/etc/profile, ~/.profile, ~/.bash_profile
name two ways to get more info on a command
man & info
how to switch into insert mode in VI?
press I key or Insert button
how do you quit vi without without savings changes?
:q!
How do you create a directory in user’s home named MyFiles
mkdir ~/MyFiles
which command can bused to display information about your linux kernel such as version number and release number?
uname
which vi command line mode commands save changes to the current file being edited and close the vi editor
:wq & :exit
change widgets.odt so that the file owner can edit the file, but no other users on the system will be able to modify it.
chmod 600 widgets.odt
change permission on projectx.odt so that owner can edit the file and group members can view and edit
chmod 660 widgets.odt
which usermod command is used to add a secondary group to user account
-aG
which control structure processes over and over as long as a specified condition evaluates to false?
until
which control structure runs over and over until a specified condition is no longer true.
while
which services should be used for file sharing and print jobs?
samba for file CUPS for printing
logged in via GNOME graphical desktop env. You’ve opened a terminal session within GNOME to complete several command-line tasks. which bash config files were used to configure the bash env within the shell session
/etc/bashrc & ~/.bashrc
which file will be used by default for bash login shells?
~/.bash_profile, ~/.bash_login, ~/.profile.file in that order.
Which configuration files are used to store your X server configuration settings?
/etc/X11/XF86Config & /etc/X11/xorg.conf
When using local auth on a Linux system, which file contains the passwords for your user accounts
/etc/shadow
whats stored in /etc/passwd
user accounts
kmorgan:x:1001:100:Ken Morgan:/home/kmorgan:/bin/bash What is the user ID (UID)?
1001
kmorgan:$2a$05 $KL1DbTBqpSEMiL.2FoI3ue4bdyR.eL6GMKs7MU6.nZl5SCC7/ REUS:15043:1:60:7:5:: In how many days will this account be disabled after the users password has expired?
- the seventh field displays the number of days to wait after a password expired to disable the account.
kmorgan:$2a$05 $KL1DbTBqpSEMiL.2FoI3ue4bdyR.eL6GMKs7MU6.nZl5SCC7/ REUS:15043:1:60:7:5:: How many days prior to expiration will user be notified?
7.
Where is the UID number range that can be assigned to new user accounts defined
/etc/login.defs