Bash Commands / Programs Flashcards

1
Q

Clear

A

Clears the terminal

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

Cal

A

Shows date and time

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

Df

A

To see current amount of free space on our disks

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

Free

A

Display the amount of free memory

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

Pdw

A

Print a name of current work directory, tells you what directory you are in.

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

Cd

A

Change work directory

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

-a

A

–all

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

-A

A

–almost-all

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

-h

A

–human-readable

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

-r

A

–reverse

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

-rw-r–r–

A

Access rights to the file. The first character indicates the type of file. Among the different types, a leading dash means a regular file, while a d indicates a directory. The next three characters are the access rights for the file’s owner, the next three are for members of the file1’s group, and the final three are for everyone else.

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

Rm

A

Remove files and directories

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

Ln

A

Create hard and symbolic links

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

Mkdir

A

Make directory

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

Cp

A

Copy files and directories

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

Mv

A

Move and rename files

17
Q

Wc

A

Word Count

18
Q

-l

A

Show lines

19
Q

Tree

A

Shows you files in a tree format

20
Q

> >

A

Add content into an existing file

21
Q

>

A

Add content into a NEW file

22
Q

Head/Tail

A

Show the x lines in that start or end of a file

23
Q

Echo

A

Echo is a shell-builtin that performs a very simple task. It prints its text arguments on standard output.

echo “this is a test”
this is a test

24
Q

~ tilde

A

When used at the beginning of a word, it expands into the name of the home directory of the named user or, if no user is named, the home directory of the current user.

25
Q

What is a Parameter?

A

It’s a feature that is more useful in shell scripts than directly on the command line. Many of its capabilities have to do with the system’s ability to store small chunks of data and to give each chunk a name.

echo $USER
Me

26
Q

What is an Escaping Character?

A

Sometimes we want to quote only a single character. To do this, we can precede a character with a backslash, which in this context is called the escape character. Often this is done inside double quotes to selectively prevent an expansion.

echo “The balance’ for user $USER is: $5.00”
The balance for user me is: $5.00

27
Q

Chmod

A

To change the mode (permissions) of a file or directory, use the chmod command. Be aware that only the file’s owner or the superuser can change the mode of a file or directory.

28
Q

Sed

A

Stream editor. Doesn’t change words, it changes regular expressions.

29
Q

Less

A

Looks at a file in a list

30
Q

Ping

A

A successful “ping” will indicate that the elements of the network (its interface cards, cabling, routing, and gateways) are in generally good working order.

31
Q

Traceroute

A

The traceroute program lists all the “hops” network traffic takes to get from the local system to a specified host. For routers that provided identifying information, we see their hostnames, IP addresses, and performance data, which includes three samples of round-trip time from the local system to the router.

32
Q

Ftp

A

Move files over network