Linux commands Flashcards

1
Q

ls

A

displays information about files and directories contained within the current working directory,

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

ls-la

A

gives you a list of all files and folders in that directory

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

.

A

directory you are currently in

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

..

A

going back a directory

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

pwd

A

present working directory, displays an absolute path (full filename) to current working directory , prints the current directory

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

cd

A

change directory

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

mkdir

A

make a new directory

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

rmdir

A

removes/deletes a empty directory

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

rm-rf

A

force delete directory

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

mv

A

tranfers files/directories to a different directory, can also be used to rename files and directories

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

cp

A

copy files from one location to another

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

rm

A

can be used to delete complete files and directories

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

df

A

display the amount of free/available disk space
shows free space, file system, total size, space used, % used,mount point

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

du

A

used to estimate the file space usage, summarize disk usage for a set of files or recursively for directories

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

nano

A

easy to use command line text editor, can text what you want just like in microsoft word or any other word processing program

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

pico

A

text editor that works alot like nano, looks almost identical, originally designed to read and write emails

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

vi

A

text editor, supports modal editing, mo menu, have to know commands yourself to use them, insert mode-press i, commandline mode which is case sensitive, visual mode

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

vim

A

supports normal, visual, insert, and command line mode, improvement on vi, spell checking, autocompletion, merging, scripting languages, plugins, not installed by default

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

cat

A

used to create, view, and concatenate files, displaying contents of a file to the screen

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

find

A

search for a file, search file system of directory, does not bring you to location, must go to location yourself

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

grep

A

search for content within a file, search for characters within the specified file using regular expressions, use as a system admin to go through log files

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

su

A

switch user

23
Q

sudo

A

switch to root user or system admin for one command

24
Q

usermod

A

used to modify the users account

25
Q

userdel

A

used to delete a users account

26
Q

passwd

A

used to change or reset the password of the users account, will ask for the current password in order to change password

27
Q

groupadd

A

used to add a new group

28
Q

groupmod

A

modify a group

29
Q

groupdel

A

delete a group

30
Q

chmod

A

used to change file access permissions

31
Q

Read

A

4

32
Q

write

A

2

33
Q

X(execute)

A

1

34
Q

chown

A

change the file owner and group permissions

35
Q

apt-get

A

install and remove software on debian

36
Q

apt-get upgrade

A

see if anything on the system that is out of date needs to be upgraded

37
Q

yum

A

used to install and remove software on redhat

38
Q

yum update

A

used to update one or all packages

39
Q

yum upgrade

A

upgrades package

40
Q

dnf

A

updated version of yum, install or remove software on red hat

41
Q

rpm

A

low level tool, installed and remove software on redhat , more difficult than using apt-get

42
Q

ps

A

used to diplay list of currently running processes on a system

43
Q

top

A

task manager, displays information about CPU and memory

44
Q

ifconfig

A

similar to ipconfig in windows, no longer used

45
Q

ip addr

A

shows ip address

46
Q

ip link

A

shows basic info about address and not statistics

47
Q

ip -s link

A

show statistics for adapter such as how much data has been transmitted and received

48
Q

ip

A

used for configuring network interfaces, and getting info about network connections, can add and set network adapter up or down

49
Q

ping

A

used to tests host reachability on a IP based network, will keep going until stopped

50
Q

traceroute

A

display route and transmit time across ip based network

51
Q

dig

A

works like nslookup, used to query DNS to get info about different DNS records

52
Q

man

A

used for accessing and searching online reference manuals

53
Q

–help

A

written after the name of a command to give info about how to use a specific command

54
Q

utilities for making backups

A

dd
cpio
rsync
tar
dump