| Terms |
Definitions |
|
what command formats a partition with a files system?
|
mkfsex: mkfs -t ext3 /dev/sdc1
|
|
what command lists the free memory?
|
free
|
|
in a directory, the 3 letters in the middle stand for what (ls -l)
|
Group
|
|
How do you open a new shell when you are already in a text shell ?
|
Alt F1-F7 (inside linux gnome/kde gui desktop)
|
|
To edit a users cron file, what do you type?
|
crontab -u root -e
|
|
What do you type to see who is currently logged in?
|
who
|
|
What does rmdir do?
|
removes a directory.
|
|
what file is responsible for dns configuration and how do you get it up?
|
named.conf and use bindconfig.
|
|
To find ports in linux, where do you look?
|
/etc/services
|
|
where are the variables and program environments stored when the bash shell is run?
|
/etc/profile
|
|
What does "less" do?
|
displays a text file on the screen, but gives you a pause on a long file.
|
|
what command will show you how much disk space is available on each partition?
|
df -h human readbledf -i inodedu - disk usage on dirs
|
|
how do you kill a job or kill more than 1 job?
|
kill and killall
|
|
what purpose does the "!" stand for in a script?
|
In scripts it will execute a command after the exclamation !.
|
|
How do you search for something in VI ?
|
press the "/"/search_term example: /learn
|
|
What is contained in /etc/group
|
Local group definitions
|
|
where is your printer capture program located?
|
/etc/printcap-capture what you have -show your queue and printer name.
|
|
What is contained in /etc/modules.conf
|
It contains configuration parameters for your kernal modules
|
|
What command displays the contents of the kernel ring buffer and is used for diagnosing certain types of hardware or kernel problems?
|
dmesg
|
|
What do you press in VI to delete the word that comes after the cursor but NOT the space?
|
press "DE"
|
|
what's the difference between find and locate?
|
locate finds it faster through a database.
|
|
What directory contains your Linux system's configuration files?
|
/etc
|
|
What's linux's version of DEL?
|
rm
|
|
what describes configuration files?
|
they are frequently named after the server or its protocol.
|
|
how do you redirect a directory into a text file using tail?
|
tail /var/log/messages 1>lastmessagescreates a text file called "lastmessages" using the tail end of the log file messages
|
|
Wht's the general rule of thumb for swap spaces?
|
they should be atleast 1.5 to 2 x's your ram.
|
|
What command returns the results of the IP you enter?
|
nslookup
|
|
When you are inside linux windows and you want to switch to a shell you press "ctrl alt f1-f6." Once inside, you have to press what to go to a different login shell?
|
F1-F6
|
|
what is contained in /etc/hosts
|
It contains a list of hostname to IP address mappings the system can use to resolve hostnames
|
|
what too can you use to measure a hard disk's speed under linux?
|
hdparm
|
|
What is contained in /etc/init.d/
|
It's a subdirectory that contains startup scripts for services installed on the system. On Fedora or Red hat, these are located in the /etc/rc.d/init.d
|
|
how do you place a background job in the foreground?
|
fg ex: fg 1 ([1]+ 7527 stopped vi
|
|
how do you view the processes - or mainly - search for a certain process?
|
ps -el | grep
ex: ps -el | grep vi
|
|
What are the permission levels of Write
|
2
|
|
How can you display your current route configuration?
|
ifconfigand to see the default gate route you can also type "cat ./routes" in your /etc/sysconfig/network/ directory.
|
|
Why should you avoid using telent for remote admin procedures?
|
because the passwords are unencrypted.
|
|
What is contained in /etc/passwd
|
It contains your system user accounts
|
|
what does the lpc command do?
|
lpc starts, stops, reorders jobs within print queues.
|
|
what does the cmd "man" do and how do you use it? (ex)
|
Man opens up a manual page for the command utility specified.Example: man dir
|
|
what switches/commands do you enter to update your debian linux?
|
apt-get updateorapt-get dist-upgrade
|
|
what is the purpse of the inittab and where is it located?
|
to change the run level/etc/rc.d/rc1 rc2 etc.
|
|
How can you paste the information deleted in the last deletion operation after the current cursor location?
|
type "p" (paste)
|
|
The var directory command holds what 3 things?
|
mail, print spools, system log files.
|
|
What is init 6
|
shutsdown and reboots the computer as a root
|
|
how do you change the group on a user?
|
chgrp
|
|
How do you find out what modules are loaded at any given time?
|
lsmod
|
|
what can you edit to start and stop a process?
|
/etc/rc.d/init.d./daemon start or stop
|
|
what command sends a job to a printer?
|
lpr -Samsung -m jones report.txtsends to the samsung printer and emails jones after printing.
|
|
What are the permission levels of Execute?
|
1
|
|
After reconfiguring your print queries, what do you type to restart your printer daemon?
|
/etc/rc.d/init.d/lpd restart
|
|
How do you view your own default shell?
|
type "echo $SHELL"
|
|
what shows you the last time a user logged on?
|
/var/log/lastlog
|
|
in a directory, the 3 letters from right to left on ls -l stand for what?
|
others
|
|
command to ping and trace a route?
|
ping and traceroute
|
|
What does /etc/shadow contain?
|
Encrypted passwords.
|
|
how do you change the users group?
|
chown
|
|
how do you remove unused modules?
|
rmmod -a removes all unused modules-r removes a stack of modules-s outputs all msgs to users
|
|
What's the difference between insmod and modprobe?
|
modprobe loads all the dependencies and insmod loads one module at a time.
|
|
what command will allow you create a group called "managers"
|
groupadd managers
|
|
what does "cat" do?
|
displays the current txt file on screen. ex: cat test.txt
|
|
How do you shut down the system using a command?
|
You can type "Halt" orType "Reboot"orType "init 0" as a root.
|
|
What does netstat do?
|
displays statistical information for the network:netstat -r displays the routing tables
|
|
What do you press in VI to undo the last action?
|
U
|
|
Where are the login shells configuration parameters stored for system wide?
|
/etc/profile
|
|
where does linux distrubtions look for during authentication?
|
/etc/passwd/etc/shadow
|
|
what does rpm -F do?
|
upgrades a package only if an earlier version already exists (freshens it).
|
|
how do you change a file so that it can be executed?
|
chmod u+x ./test (filename)
|
|
/srv/sys/tmp/usr//var
|
/srv - services running on the sys like http and ftpd/sys - info about the hardware on your sys/tmp - directory contains temp files/usr/ application files/var - variable data - log files etc
|
|
Which configuration file is used when a user opens a non-login bash shell?
|
~/.bashrc file is used.
|
|
What does Samba allow you to do?
|
It allos you to communicate with windows based networks.
|
|
How do you view the date in your shell?
|
type "date"
|
|
What does the command "grep" do?
|
It searchs a large file, like a log file, for a particular string:example: grep search_text
|
|
What is unique about Grub (grand unified boot loader)?
|
1st boot loader that could directly boot liux from above the 1024 cylinder.
|
|
What does ls -r do?
|
It displays the directory recursively ; that is, it dislays the contents of the directory as well as the contents of all subdirectories.
|
|
Which device points to a IDE CD-ROM drive connected to the primary IDE channel?
|
/dev/hdb
|
|
What does FIFO stand for?
|
First In First Out.-special files used to move data from one running process on the system to another.
|
|
What does ls -l do?
|
displays a long listing of the directory contents.
|
|
What does "info" do?
|
The info utility also displays a help page for the indicated command or utility.
|
|
what does the lpr -r switch do?
|
deletes the original file after printing it.
|
|
how do you see what's in the printer queue?
|
lpq -
|
|
What does "tail" do?
|
It displays the last couple of lines of a text file on screen.
|
|
Ctrl-alt Fx (2-6) will do what?
|
Switch to a shell based prompt
|
|
what does "bash" stand for?
|
Bourne Again Shell
|
|
In VI, what can you type to delete from the insertion point to the end of the line?
|
d$
|
|
how do you run a program in the background while currently in a shell?
|
place an & after the program.ex: oofromtemplate &
|
|
What does "whoami" display?
|
User currently logged on.
|
|
how do you start a process that will allow it to run and ignore any hang-up signals like logging out from a shell prompt?
|
start it with "no hup"
|
|
What does /etc/X11/ contain?
|
Configuration files for X Windows
|
|
what does the ps -A command do?
|
it shows you all the commands running, not just the ones u started.
|
|
How do you check your hd?
|
fsck -f dev (device)
|
|
What is contained in your /sbin directory?
|
This directory contains important system management and administration files, such as fdisk, fsck, ifconfig, init, mkfs, shutdown and halt.
|
|
What gui tool will allow you to configure your print queue with a smart filter for non-specific post script printers?
|
printtool
|
|
What does "head" do?
|
It displays the first couple of lines of a text file on the screen.
|
|
What do you type in VI to delete the entire line?
|
DD
|
|
what is the purpose of lprm?
|
it removes 1 or more jobs from the print queue.
|
|
how do you Print the Working Directory in linux? You know, where you can see what directory you're currently inside?
|
pwd
|
|
How do you create a symbolic link?What is the command?
|
type ln -s /etc etc2 (example)
|
|
Can Swap spaces reside on NFS mounts?
|
NO.
|
|
to view groups, what command?
|
groups
|
|
how do you view your bash history?
|
cat, less, more ~/.bash_history
|
|
What's the difference between dos' fdisk and linux's Fdisk
|
Linux is more flexible
|
|
How do you switch back from a shell based prompt?
|
Alt F7
|
|
what can you use to query the system hardware to generate an xf86config file?
|
Xfree86
|
|
how do you sort a file?
|
sort (words is a created text file)
|
|
What do you press in VI to delete a word after the cursor including the space following the word?
|
press "dw"
|
|
What's the difference between kill and killall?
|
kill stops processes by PID # and killall stops processes by process name.
|
|
what command do you type to get a word count in a file?
|
wc filename
|
|
What is df?
|
it lists the current mounted file systems.
|
|
what is tar's syntax for backing up files?
|
tar -cvf
|
|
how do you modify a user?
|
usermodusermod -c edits the full nameusermod -g sets the default groupusermod -l changes usernameusermod -p changes passwdusermod -u sets the UID
|
|
where is lilo.conf ?
|
/etc
|
|
what do you press while in a shell to pause a program?
|
ctrl f2
|
|
what are the permission values of Read?
|
4
|
|
How do you list the applications running?
|
type "top"Then if "mplayer" is running with a process of 23933, to kill it, type "kill 23933"
|
|
how do you place a fg job in the background?
|
bg
|
|
how do you add a group?How do you modify a group?How do you delete a group?
|
groupaddgroupmodgroupdel
|
|
What does ls -a do?
|
it displays all files, including hidden files.
|
|
how do you create a user?
|
useradd
|
|
what is the name of the log file created during a linux installation?
|
/tmp/install.log
|
|
what does the command "zsh" do?
|
Opens a diffferent editor like "bash" terminal
|
|
What are Links?
|
They are file pointers that point to other files in the file system.
|
|
what are the init levels?
|
0 halt1 single user3 multi-user6 reboot
|
|
how do you create an alias command?
|
alias ls2="ls -al" example -alias =""
|
|
What does the term initrd stand for?
|
It's the initial ramdisk that is created at startup.
|
|
which device file points to the floppy disk in a linux system?
|
/dev/fd0
|
|
How do you display the current kernel release and distribution release inside a shell?
|
cat /etc/issueuname -a
|
|
What is the purpose of lpq?
|
it displays info on the printqueue. How many files it contains and who their owners are.
|
|
how do you change the priority level of a running process?
|
renice 4 5662changes priority to level 4 of process 5662
|
|
what does the cmd "route" do?
|
This command is used to view or manipulate the system’s routing table.
|
|
how do you view a user's UID, GID, Group # ?
|
id
|
|
What does "su" do?
|
It switches the current user to a new user account. SU by itself will automatically switch to a super user (root) account. ex: su darkmantis or su tracy
|
|
in a directory, the second three letters from left to right stand for what?
|
Owner
|
|
If you need to check your users and verify that they are configured properly, what command could you use to do this?
|
pwck
|
|
How do you see what kind of shell variables there are?
|
type "env"
|
|
what is located in /etc/fstab
|
It lists the partitions and files systems that will be automatically mounted when the system boots.
|
|
what rpm switch allows you to remove an installed package from your system?
|
rpm -e rpm -i installrpm -u upgraderpm -v verifyrpm -q query
|
|
What does mv do?
|
moves a file.
|
|
What does the command "which" do?
|
Displays the path of the cmd you are trying to find:which ls/bin/ls
|
|
What does the lpr -h switch do?
|
Suppresses the banner for a single print job
|
|
What is contained in /usr/bin/usr/lib/usr/sbin/usr/share
|
/usr/bin Most of your exe programs/usr/lib Library files/usr/sbin System admin programs/usr/share Doc and man pages
|
|
what is contained in /etc/inittab
|
It contains configuration parameters for the init process.
|
|
how do you resolve host names to their IP addresses?
|
dig www.google.com
|
|
In Linux, you can press what to have the system try to guess the rest of the long line you are typing for you?
|
press the tab key.example: mplayer "DJ-Greg-Fluxoutputs "mplayer "DJ-Greg-Flux-2011.mp3"
|
|
what port is nfs?
|
2049
|
|
What are the most common fdisk switches?
|
-d delete a partition-n create a new partition-D display partition layout-q quit without saving-t change a partitions type code-w write savings and quit
|
|
how do you list all of the current processes?
|
ps -A
|
|
What is id?
|
shows your id info.
|
|
how do you extract a file using tar?
|
tar -xvf filename
|
|
how do you list your current network statistics?
|
netstat
|
|
how do you list background jobs?
|
with the "jobs" command.
|
|
What two types of errors can occur when logged in as a normal user?
|
file acces error and tape drive error.
|
|
how do you delete a user?
|
userdel
|
|
What 2 cmds will display all storage devices that are currently mounted?
|
cat /etc/mtabcat /proc/mounts
|
|
How do you exit and save in VI
|
wqw! or q! writes (forced) and q! (quits forced without saving)
|
|
where does bash store individual user's shell preferences?
|
~/.bashrc
|
|
in a directory, the first letter stand for what? (ls -l)
|
directory
|
|
What's linux version of Copy?
|
cp
|
|
What does LDAP stand for and what does it do?
|
Leightweight Directory Authentication Protocol.Connects to servers using hierarchical authentication like Novell or Windows Active Directory
|
|
What does "ifconfig" do?
|
This command is used to manage network boards installed in thesystem.
|
|
What must a linux computer have running in order to access windows networking environments?
|
Samba.
|
|
how do you view a process?
|
ps aux | grep httpd
|