General Commands Flashcards

(50 cards)

1
Q

cp

A

Copy file or directory

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

pwd

A

Print working directory

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

ls

A

list

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

ls -l

A

list with details

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

ls -a

A

list with hidden files

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

cd + return

A

back to user’s directory

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

cd

A

change directory

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

cd..

A

change directory, up one level

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

cd /

A

change directory, root level of startup disk

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

cd -

A

change directory, go back to the directory you were in before the last time you issued the cd command

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

mkdir

A

make directory

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

echo “txt”

A

creates file, use filename.extension

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

hostname

A

my computer’s network name

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

rmdir

A

remove directory

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

pushd

A

push directory, store current directory then go to specified directory

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

popd

A

go back to pushd directory

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

mv

A

move a file or directory, also renames

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

cp -r

A

copy directory

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

less

A

page through a file, spacebar, w, q

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

cat

A

print the whole file

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

xargs

A

execute arguments

22
Q

find

23
Q

grep

A

find things inside files

24
Q

man

A

read a manual page

25
apropos
find what man page is appropriate
26
env
look at your environment
27
echo
print some arguments
28
export
export / set a new environment variable
29
exit
exit the shell
30
sudo
become super user root \>\> danger
31
touch
make new empty file
32
rm
removes files, directories
33
rm -rf
recursive delete \>\> danger
34
cal
display calendar
35
chmod
change access permissions
36
chown
change file owner and group
37
chkconfig
System services (runlevel)
38
date
display or change date & time
39
clear
clear screen
40
cmp
compare two files
41
dc
desk calculator
42
eval
evaluate several commands / arguments
43
exec
execute a command
44
netstat
network information
45
vi
text editor
46
who
print all usernames currently logged in
47
whoami
print the current user id and name
48
write
send a message to another user
49
!!
run the last command again
50
uptime
show uptime and statistics