-
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
homeworkdirectory -
Create an empty file named
empty.txt -
Make
empty.txta hidden file -
Create a folder called
privateand change permissions so that only you can access it -
Read the man page for the command
seq -
Use the command
seqto generate a file with numbers from 1 to 1000 -
Bonus... use command
seqto generate a file containing a list of ips from10.2.8.1to10.2.8.254. Hintseq -f -
Bonus 2: use command
seqto generate a file namedapples.txtcontaining 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
sedto create apears.txtfile from theapples.txtfile it should contains pears instead of apples -
Create a
pairs_5.txtfile using eithersedorgrepto 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
~/level1directory with all the subdirectories to a folder calledlevel1_copyHint: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
gitpackage -
Use apt-get to remove all unnecessary files