Linux 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
The apropos command searches manual page names and descriptions for a user-supplied keyword.
33
What keyword is used to search the manual page names and descriptions?
apropos
34
env
Accesses all environment variables, as well as, the values associated with them, Used by executing the env command without any option.
35
What keyword is used to access all environmental variables and their values?
env
36
echo
Prints an argument. Use the echo command to write and overwrite data to a file. echo "hello you" test.txt will overwrite the existing test.txt data with "hello you".
37
Print some arguments. 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