test1 Flashcards

1
Q

o uname

A

system type

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

o hostname

A

host name

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

o whoami

A

current login

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

o date

A

shows current date AND time. The time function does not show time. You use date

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

o chfn

A

used to change system details

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

o passwd

A

used to change your password

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

o man

A

used to get help with Linux commands. Format usage: man {command_name}

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

o ls

A

lists the directory of files. (All commands are case sensitive!!)

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

 ls – l

A

gives expanded information about files, including security

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

 ls -F

A

provides hints about the type of file

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

 ls -lF

A

provides expanded information about files and directories, as well as info on the types of files

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

o cd

A

command used to move around

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

 .

A

is current directory

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

..

A

is the directory above the current

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

 ~

A

represents the user’s home directory

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

o mkdir

A

creates a directory

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

o rmdir

A

removes directory (has to be empty first)

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

o cp

A

to copy files

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

o rm

A

to remove files

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

o mv

A

to move files (combines the cp and rm commands)

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

 r

A

read

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

 w

A

write

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

 x

A

execute

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

o chmod

A

to change file rights

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

 chmod g=u

A

groups get same rights as user

26
Q

o find

A

used to fine a file on the system

27
Q

 locate

A

an alternate command to find. Faster than the find command.

28
Q

o cat

A

displays content of a file

29
Q

o pipline command (vertical bar) pipe character

A

redirects the output of one command into the input of another command

30
Q

o less and more

A

used to displays output by screen. “Less” has more capabilities then “More”.
cat (file name) | more
cat (file name) | less

31
Q

o grep

A

used to find a specific word

32
Q

o write

A

sends message to user

33
Q

o wall

A

sends message to everyone

34
Q

o sudo

A

– runs a program once. Allows a user with proper permissions to execute a command as another user.

35
Q

o su

A

to become root or switch to another user

36
Q

o who

A

displays the users that are currently logged into your Unix computer system

37
Q

o w

A

provides a quick summary of every user logged into a computer, what each user is currently doing, and what load all the activity is imposing on the computer itself.

38
Q

o Uptime

A

The current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.

39
Q

o last

A

prints the entries of successful login attempts made by the users in the past.

40
Q

o ps

A

(Process Status) provides information about the currently running processes, including their process identification numbers

41
Q

o kill

A

terminates processes based on Process ID numbers PID

42
Q

o killall

A

kill commands to stop all processes

43
Q

o df

A

used to display the amount of available disk space

44
Q

o ifconfig

A

displays the configuration of all active interfaces. Same as ipconfig in windows. Stands for interface configuration. Will provide info on each interface, such as the inet (IP address), subnet mask, etc.

45
Q

o netstat

A

displays network connections for the Transmission Control Protocol, routing tables, and a number of network interface and network protocol statistics. Used for monitoring incoming and outgoing network connections.

46
Q

ARP Cache

A

: Essentially a database of IP addresses and their related MAC addresses for devices on the LAN. This is used to send packets between devices on the LAN. You must send an ARP request to computer you want to communicate with and it looks for the IP address for the desired device in the cache and then sends over the MAC address, so you can communicate, this is then added to the ARP cache.

47
Q

Netstat

A

Displays active TCP connections. This also includes IPv4 and IPv6 addresses, as well as local and foreign address. Lastly it shows the state of each connection.

48
Q

Netstat -na

A

It displays all active TCP connections and the TCP and UDP ports on which the computer is listening. The addresses and port numbers are expressed numnerically, without the names, due to using the “-n” command, which displays things numerically

49
Q

Ipconfig

A

– Provides information on all adapters and their media state. It also provides IP address, Subnet mask, and default gateway for each adapter. IP addresses listed in both IPV4 and IPV6.

50
Q

Ipconfig /all

A

Displays the full TCP/IP configuration for all adapters. Adapters can represent physical interfaces or logical interfaces. Provides host name, physical MAC address, IP, Subnet Mask, whether or not DHCP is enabled, and if autoconfiguration is enabled for devices and adapters.

51
Q

Tracert

A

traceroute sends ICMP echo requests instead of UDP packets. The time-to-live (TTL) value, also known as hop limit, is used in determining the intermediate routers being traversed towards the destination.

52
Q

Ping

A

sends out an echo request to specific IP address and receives echo replies in return. The replies show that a destination is reachable. You can ping a certain address with a certain amount of data and it will show the number of packets sent, received, and lost. This also shows the RTT or round trip time to do this. It also shows the number of packets sent, received, and lost.

53
Q

What is the format of general Linux commands

A

Command {-options}{Parameters}

54
Q

What does an option start with?

A

options start with dashes (-)

55
Q

Can there be multiple parameters and options?

A

Yes there can be

56
Q

>

A

Creates a file. Ex. cat >passwords. Creates a file called “passwords”. Can also be used to redirect current files into new files. Ex. cat (current file) > (new file)

57
Q

> >

A

Using the standard output with a redirection operator. This would append a current file to the END of another existing file. EX. cat file1&raquo_space; file2 . This appended the data from file1 to the end of file2.

58
Q

pwd

A

Stands for “print working directory”. Reports the full path to the current directory. The full path for any directory always begins with a forward slash (/). Almost always used by itself but can also have options. pwd [option]

59
Q

netstat -a

A

lists all the listening ports of TCP and UDP connections. Shows the state of the port (listening, etc.)

60
Q

-v

A

version number

61
Q

-h

A

help