Professional Documents
Culture Documents
Next type
cd alx-system_engineering-devops
touch README.md
mkdir 0x00-shell_basics
cd 0x00-shell_basics
touch README.md
1
git add .
git push
TASK 0
cd 0x00-shell_basics Enter
vi 0-current_working_directory Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
pwd
cd .. Enter
git add .
git push
TASK 1
cd 0x00-shell_basics Enter
2
touch 1-listit Enter
vi 1-listit Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
ls
cd .. Enter
git add .
git push
TASK 2
cd 0x00-shell_basics Enter
vi 2-bring_me_home Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
cd ~
cd .. Enter
3
git add .
git push
TASK 3
cd 0x00-shell_basics
touch 3-listfiles
vi 3-listfiles
(press i for insert mode then type the two lines below)
#!/bin/bash
ls -l
cd .. Enter
git add .
git push
Task 4
cd 0x00-shell_basics
4
touch 4-listmorefiles
vi 4-listmorefiles
(press i for insert mode then type the two lines below)
#!/bin/bash
ls -la
cd .. Enter
git add .
git push
TASK 5
cd 0x00-shell_basics
touch 5-listfilesdigitonly
vi 5-listfilesdigitonly
(press i for insert mode then type the two lines below)
#!/bin/bash
ls -na
cd .. Enter
5
git add .
git push
TASK 6
cd 0x00-shell_basics
touch 6-firstdirectory
vi 6-firstdirectory
(press i for insert mode then type the two lines below)
#!/bin/bash
mkdir /tmp/my_first_directory
cd .. Enter
git add .
git push
TASK 7
cd 0x00-shell_basics Enter
6
touch 7-move that file Enter
vi 7-movethatfile Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
mv /tmp/betty /tmp/my_first_directory
cd .. Enter
git add .
git push
TASK 8
cd 0x00-shell_basics. Enter
vi 8-firstdelete Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
rm /tmp/my_first_directory/betty
cd .. Enter
7
git add .
git push
TASK 9
cd 0x00-shell_basics Enter
vi 9-firstdirdeletion Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
rm -rf /tmp/my_first_directory/
cd .. Enter
git add .
git push
TASK 10
cd 0x00-shell_basics Enter
8
touch 10-back Enter
Vi 10-back Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
cd -
cd .. Enter
git add .
git push
TASK 11
cd 0x00-shell_basics Enter
vi 11-lists Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
ls-la . .. /boot
cd .. Enter
9
git add .
git push
TASK 12
cd 0x00-shell_basics Enter
vi 12-file_type Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
file /tmp/iamafile
cd .. Enter
git add .
git push
TASK 13
cd 0x00-shell_basics Enter
10
touch 13-symbolic_link Enter
vi 13-symbolic_link Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
ln -s /bin/ls __ls__
cd .. Enter
git add .
git push
TASK 14
cd 0x00-shell_basics Enter
vi 14-copy_html Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
cd .. Enter
11
git add .
git push
TASK 15
cd 0x00-shell_basics Enter
vi 100-lets_move Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
mv [[:upper:]]* /tmp/u
cd .. Enter
git add .
git push
TASK 16
12
cd 0x00-shell_basics Enter
vi 101-clean_emacs Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
rm *~
cd .. Enter
git add .
git push
TASK 17
cd 0x00-shell_basics Enter
vi 102-tree Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
mkdir -p welcome/to/school
13
cd .. Enter
git add .
git push
TASK 18
cd 0x00-shell_basics Enter
vi 103-commas Enter
(press i for insert mode then type the two lines below)
#!/bin/bash
ls -amp | sort -d
cd .. Enter
git add .
git push
Task 19
14
If you are not type cd alx-system_engineering-devops
cd 0x00-shell_basics Enter
vi school.mgc Enter
(press i for insert mode then type the three lines below)
#!/bin/bash
!:mime School
cd .. Enter
git add .
git push
19.
touch school
15
#!/bin/bash
!:mime School
Then type
Hit enter
file -C -m school
Hit enter
git add .
git push
16