Command Lines Flashcards
1
Q
hostname
A
my computer’s network name
2
Q
mkdir
A
make directory
3
Q
ls
A
list directory
4
Q
cd
A
change directory
5
Q
rmdir
A
remove directory
6
Q
print working directory
A
pwd
7
Q
my computer’s network name
A
hostname
8
Q
Make directory
A
mkdir
9
Q
change directory
A
cd
10
Q
list directory
A
ls
11
Q
remove directory
A
rmdir
12
Q
pushd
A
push directory
13
Q
push directory
A
pushd
14
Q
popd
A
pop directory
15
Q
pop directory
A
popd
16
Q
cp
A
copy a file or directory
17
Q
copy a file or directory
A
cp
18
Q
mv
A
move a file or directory
19
Q
move a file or directory
A
mv
20
Q
less
A
page through a file
21
Q
page through a file
A
less
22
Q
cat
A
print the whole file
23
Q
print the whole file
A
cat
24
Q
xargs
A
execute argument
25
execute argument
xargs
26
find
find files
27
find files
find
28
grep
find things inside files
29
find things inside files
grep
30
man
read a manual page
31
read a manual page
man
32
apropos
find what man page is appropriately
33
find what man page is appropriate
apropos
34
env
look at your environment
35
look at your environment
env
36
echo
print some arguments
you can use echo command to write and overwrite data to a file using command line in terminal
echo "hello you" test.txt
this will overwrite any existing data in file test.txt with text hello you.
37
print some arguments
you can use this command to write and overwrite data to a file using command line in terminal
echo
echo "hello you" test.txt
this will overwrite any existing data in file test.txt with text hello you.
38
export
export/ set a new environment variable
39
export/ set a new environment variable
export
40
exit
exit the shell
41
exit the shell
exit
42
sudo
DANGER! become super user root DANGER!
43
chown
change file owner and group
44
chmod
Change access permissions of files
45
pwd
print work directory