Linux Quiz 1: Linux Questions

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

yes

Are the file names case sensitive?

no

Can you include metacharacters in file names?

ls -l

Displays all directories alphabetically using a long listing format

256

File names can be up to ____ characters

[A-Z]

Matches an uppercase letter

[abC1]

Matches any character in the set

[a-zA-Z0-9]

Matches any letter (upper or lower case) and single digit

[a-z]

Matches any lowercase letter

?

Matches any single character

[0-9]

Matches any single digit

*

Matches anything with characters except file names that start with .

dir

Returns all directories

ls *

Returns all directory names and all files in those directories (EXCEPT files that start with .)

ls *.*

Returns all directory names and all files in those directories that have a . in the middle

ls .*

Returns all directory names and all files in those directories that start with a . and all files that start with a .

ls a*z

Returns all directory names and all files in those directories that start with an "a" and end with a "z"

ls [abA-Z]*

Returns all directory names and all files in those directories that start with an "a", "b", uppercase letter, and then have at least one character after

locate *.htm?

Returns all files that have at least one character, then .htm and an additional character

man [system command]

Returns the manual for that command

gpasswd

administer the /etc/groupfile

single

all files have ____ directory trees

user ID (UID) and group ID (GID)

all users have unique _______

hosts.allow

allow hosts

|

allows you to run multiple commands at one time

cd

change directory

chmod

change permissions

chage

change user password expiry information

groups (user id)

check group membership of user

finger

check information of a user

free -g

check memory size in GB

free

check memory size in KB

free -m

check memory size in MB

route -n

check route information

who

check who is currently logged on

w

check who is currently logged on with additional information

ping (IP address)

checking the connection of that host

/usr

contains all commands, libraries, documentation, and other files that don't change during normal operation (ex. netscape)

/ (Root)

contains basic operating system and maintenance tools. content can start up system and perform emergency maintenance and repairs

/var

contains files that change during normal operation: spool directories, log files, temporary files, and formatted manual pages

/proc

contains images and data about currently executing processes on the system do not actually exist. you are accessing information stored in memory used to access information about the system

/home

contains user files (settings, customization, data, mail, caches, etc.) contents should be preserved on operating system upgrade

groupadd

create a new group

useradd

create new user or update default new user info

groupdel

delete a group

userdel

delete a user account and related files

rm -r (directory)

delete the directory and all subdirectories

chmod o-r (filename)

deny file read access to everyone but yourself

hosts.deny

deny hosts

/dev

device files devices appear as files so hardware is abstracted and easy to write to them or read from them

pwd

display current path

top

display tasks info

ls -i (filename)

display the file ID

ls -inum (filename)

display the file ID (longer word)

(system command) --help

display the manual for a command (not man)

ls -a

do not ignore entries start with .

ls -al

do not ignore entries starting with . and use a long listing format

/bin

executables (binaries) needed during boot-up might be used by normal users

/sbin

executables (system binaries) not intended for use by general users users may still use them but directory is not on their PATH

/lost+found

files recovered during file system repair

chmod ugo+rx (directory name)

grant directory read permissions so everyone may read it

chmod 660 (filename)

grant file modify permissions to everyone in group

chmod ugo+r (filename)

grant file read permissions so everyone may read it

tar zxvf [file name].tgz

gzip a file

/root

home directory of the system administrator

.plan

if you want to edit your information, which file do you edit in your home directory

history

list history of command

mkdir

makes a directory

groupmod

modify a group

usermod

modify a user account

/mnt

mount points for removable media (flash drive), portions of other systems (MS windows), network shares, and anything else mounted on file system

mount (what) (where)

mounts a file system

mv (file name) (new location path)

move a file or directory

/opt

optional large applications kde under RedHat 5.2

(system command) > (file name)

output result of a command to a file

more

pages through text one screen full at a time

..

parent directory

-r

recursive

rm -rf

remove a file or directory without confirmation of removal

rm

removes a file or directory

rmdir

removes empty directories

mv (file name) (new file name)

renames a file

grep

search

/lib

shared libraries for programs that reside on root file system and kernel modules

ip addr show

show IP address and network configuration

/sbin/ifconfig

show network configuration (code looks like a path)

ls --help |more

show the help manual for ls page by page

hostname

shows host name of the system

/etc

system-wide configuration files for your operating system accounts and passwords, network addresses and names, system start-up settings

/tmp

temporary files may clean up automatically

nano

text editor for file (n)

vi

text editor for file (v)

bzip2 -d [file name].bz2

un-bzip2 a file

gunzip [file name].gz

un-g(un)zip a file

gzip -d [file name].gz

un-gzip a file

tar xvf [file name].tar

un-tar a file

tar zxvf [file name].tar.gz

un-tar a file (with a z)

/boot

used by bootstrap loader (LILO or GRUB) and contains linux kernel (compressed, file vmlinuz) but not always

cat

view content of a file (c)

more

view content of a file (m)

ls -l [filename]

view permissions

/ (root)

what directory should you not tamper with?

/etc

where are the system settings

/home/user_login_name

where do users save files to?


Ensembles d'études connexes

Ch. 04: Consumer Surplus, Producer Surplus, and Economic Efficiency

View Set

Chapter 16 - Financial Leverage and Capital Structure Policy

View Set

The crusades discovery education

View Set

Chapter 30: Nursing Management: Diabetes Mellitus

View Set

California Real Estate Principles Unit 7: Contracts

View Set

Chemistry Test 1- Final Exam Study Guide

View Set

The History test study guide 10-11

View Set