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
userdel
used to delete a users account
26
passwd
used to change or reset the password of the users account, will ask for the current password in order to change password
27
groupadd
used to add a new group
28
groupmod
modify a group
29
groupdel
delete a group
30
chmod
used to change file access permissions
31
Read
4
32
write
2
33
X(execute)
1
34
chown
change the file owner and group permissions
35
apt-get
install and remove software on debian
36
apt-get upgrade
see if anything on the system that is out of date needs to be upgraded
37
yum
used to install and remove software on redhat
38
yum update
used to update one or all packages
39
yum upgrade
upgrades package
40
dnf
updated version of yum, install or remove software on red hat
41
rpm
low level tool, installed and remove software on redhat , more difficult than using apt-get
42
ps
used to diplay list of currently running processes on a system
43
top
task manager, displays information about CPU and memory
44
ifconfig
similar to ipconfig in windows, no longer used
45
ip addr
shows ip address
46
ip link
shows basic info about address and not statistics
47
ip -s link
show statistics for adapter such as how much data has been transmitted and received
48
ip
used for configuring network interfaces, and getting info about network connections, can add and set network adapter up or down
49
ping
used to tests host reachability on a IP based network, will keep going until stopped
50
traceroute
display route and transmit time across ip based network
51
dig
works like nslookup, used to query DNS to get info about different DNS records
52
man
used for accessing and searching online reference manuals
53
--help
written after the name of a command to give info about how to use a specific command
54
utilities for making backups
dd cpio rsync tar dump