Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/53

Click to flip

53 Cards in this Set

  • Front
  • Back
What vi command moves to the beginning of the next word?
e
How does Linux indicate the end of a line?
line feed
What option runs vi in binary mode?
-b
What command will reveal the purpose of a file?
man -f filename
Why do text files copied from Windows to Linux not work as scripts?
Linux and Windows indicate line ends in different ways?
How does Windows indicate a line return?
carriage feed, line return
How is a carriage return indicated?
^M
What command will search man pages for a keyword?
man -k keyword
What command will search man pages for a keyword?
man -k keyword
What command will search man pages for a keyword?
man -k keyword
In what three directories are most commands stored?
/bin, /usr/bin, and /usr/local/bin
What command will remove duplicate lines from a file?
uniq
What command will remove duplicate lines from a file?
uniq
What is process status R?
runnable (in run queue)
What command will tell you where another command is located?
which
Why are shell commands faster than other commands?
a new process does not have to be created
What command will list currently-running processes?
ps
What key combination is used to suspend a process?
CTRL-Z
What is process status D?
uninterruptible sleep (usually IO)
What is process status S?
sleeping
What is process status T?
traced or stopped
What is process status Z?
defunct ("zombie") process
What is the difference between kill and kill -9?
kill allows the program to shut itself down
What is the difference between kill and kill -9?
kill allows the program to shut itself down
What does a "sticky bit" on a directory do?
Restricts who can delete or rename a file in that directory
What character represents a "sticky bit"?
t
What character represents a "sticky bit"?
t
What three entities can delete/rename a file when the "sticky bit" is set on the directory?
the owner of the directory, the owner of the file, or the superuser
What three entities can delete/rename a file when the "sticky bit" is set on the directory?
the owner of the directory, the owner of the file, or the superuser
What command displays password aging information?
chage
What command will force a password change every x days with y days warning?
chage -M x -W y user
What command can be used to check library dependencies?
ldd
What utility is used to write messages to the system file?
logger
In the absence of either an at.allow or at.deny file, which users are allowed to create jobs to run at different times?
only superusers
Where are at.allow files stored?
/etc
By default, who can read entries in the messages file?
only superusers
What filesystem is used for CD-ROMs?
iso9660
Is the swap filesystem mountable?
no
What can be done if the root password is forgotten?
reboot into runlevel 1 and use "init=/bin/sh" as a boot option
What is the newgrp command used for?
changing a user's primary group
What pseudodirectory provides information about hardware devices?
/proc
Where are default settings for new users copied from?
/etc/skel
What are inodes?
file pointers
What command will show inode usage?
df -i
What command will show free space in kilobytes?
df -k
Can a disk become full even if it still has free space?
yes, if all inodes are used
What file contains information about IRQs?
/proc/interrupts
What command will return a list of active network controllers?
ifconfig
What character is used to separate commands?
;
What character is used to tell a command to run in the background?
&
What command is used to run a command a single time only?
at
Where is most locally-added software stored?
/usr/local
In vi, what does : do?
allows ex commands