-
Find out which shell you are using
-
Find out where you are in file system
-
Go to home directory
-
Create a folder named
homework
-
List the contents of home directory to a file named
~/homework/home_dir.txt
-
Same as previous but also showing hidden files and permissions. Name it
~/homework/home_dir_all.txt
-
Change to
homework
directory -
Create an empty file named
empty.txt
-
Make
empty.txt
a hidden file -
Create a folder called
private
and change permissions so that only you can access it -
Read the man page for the command
seq
-
Use the command
seq
to generate a file with numbers from 1 to 1000 -
Bonus... use command
seq
to generate a file containing a list of ips from10.2.8.1
to10.2.8.254
. Hintseq -f
-
Bonus 2: use command
seq
to generate a file namedapples.txt
containing the following:
10 apples
11 apples
12 apples
13 apples
14 apples
15 apples
16 apples
17 apples
18 apples
19 apples
20 apples
hints: seq -s
hint 2: new line needs to be escaped as \\n
-
If you cannot complete bonus 2 create the file manually using vi
-
Use
sed
to create apears.txt
file from theapples.txt
file it should contains pears instead of apples -
Create a
pairs_5.txt
file using eithersed
orgrep
to only contain the lines where the numbers end in 5 or zero. Hint: math will not be used. (string manipulation) -
Create the following file
~/level1/level2/level3/level4/level5/level6/linux.txt
-
Copy the
~/level1
directory with all the subdirectories to a folder calledlevel1_copy
Hint:cp -r
-
Create a bash script where the user places a path and the script lists all the files in that path. name it
myls.sh
-
Complete
vimtutor
-
Update and upgrade all packages on your pi
-
Install the
git
package -
Use apt-get to remove all unnecessary files