Unix Commands - Beginning Flashcards

1
Q

kernel

A

manages processes, devices, and memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

shell

A

interface between kernel and user. interpreter of commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

file system

A

hierarchy of directories, subdirectories and files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

standard input

A

what user types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

standard output

A

resulting text from the process of a command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

passwd

A

command for password. password is not visible in shell. login is lowercase. commands are case sensitive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

logout

A

ends session

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

pwd

A

print working directory. shows pathway of current directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

cd

A

change directory. can accept argument.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

flags

A

single letter abbreviations that modify commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

arguments

A

typically file names input after a command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ls

A

lists directories and all files. -a lists all entries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

-l (lowercase L)

A

prints list in long format. gives mode, links. owner, size and time of last mod.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

-F

A

visualization of contents being linked. these are / after names of directories. * is executable file. @ is link.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

-1 (number one)

A

prints each file name on separate line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

-d

A

lists directory names without contents

17
Q

-h

A

human readable. prints sizes in easy formats. flags do not require arguments and can be input together.

18
Q

mkdir

A

make directory. argument is required. needs to know name of directory to create.

19
Q

-p

A

parent. creates all files in directory that do not yet exist.

20
Q

-cat

A

concatenate - writes the specified file as argument to standard output.

21
Q

more [file]

A

writes the specified file as an argument to std output one screen at a time.

22
Q

head [count] [file]

A

prints a certain number of lines from the specified output file. if not specified then standard number is ten.

23
Q

tail [-f] [-c number] [-n number]

A

prints the lines of a specified file beginning at a certain place. if no flags are indicated, then default is ten lines.

24
Q

sort

A

sorts files based on sorting criteria. ordered in ascending order as default. -r for reverse sorting. -n sorts lines numerically.

25
Q

move file1 [file2] target

A

moves the file to the location specified at target.

26
Q

copy file1 [file2]

A

copies the files to one target.

27
Q

grep [c] [-n] [file]

A

searches titles for a pattern. and prints lines containing the pattern.

  • c is number of lines containing pattern.
  • n prints out line number where the file is found.
28
Q

alias [alias_namestring}

A

defines aliases which are set when a command is used often or is very long. alias_name sets new name for the command. the original name must be entered in quotation marks.

29
Q

unalias

A

alias-name removes alias definition. -a will remove all aliases assigned in the session.

30
Q

echo [n] [arg]

A

writes arguments separated by blanks and terminated by a new line. a single echo command prints the line to standard output.

31
Q

wc

A

word count.

[-c | m] [-lw] will count the number of words, lines, characters in a file. -1 counts lines in a file.

32
Q

ln [-sif] file1 [file2] target

A

links files together. if user wants to access a file in another directory that may be too large to copy, the files may be linked.

33
Q

rm

A

removes files. YOU CANNOT RETRIEVE FILES ONCE REMOVED.

34
Q

man

A

prints out description of a commands, its uses, and syntax.

35
Q

apropos [keyword]

A

prints out list of commands containing the keyword in their description. this is used when you don’t know what command to use for a particular job.