UNIX Commands Flashcards

Day 4 UNIX Commands

1
Q

man

A

Displays on-line manual pages about command.

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

clear

A

Clears the current screen providing an empty terminal window.

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

pwd

A

Print working directory, displays the current working directory.

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

date

A

Prints or sets the system date and/or time

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

tree

A

Lists directory contents in a tree-like format

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

exit

A

Exit the current shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
ls
ls -l
ls -i
ls -s
ls -a
A

Lists contents of a directory
long list - shows ownership, permission, and links
-i Displays inode number in the first field
-s Displays number of file system blocks used by file
-a List all files including invisible files

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

less
less b
less /
less q

A
Displays text files one screen at a time
Allows backwards movement, one page at a time
/ Initiates a search for a string (word)
q Exits from less
SPACE BAR Advances one screen at a time
ENTER Key Advances one line at a time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

more

A

Displays text files one screen at a time

Works like the less command but with fewer options

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

head

A

Automatically prints the first 10 lines of a file to standard output

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

tail

A

command automatically displays the last 10 line

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

cat

A

Displays file(s) contents to the screen and can concatenate (combine) files

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

echo

A

will print to the screen anything following it

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