Solutionwheels Asked: March 02, 2022 In: ALX 0x00. Shell, basics 1k running an executable tasks shell tasks Share Facebook You must be logged in to Answer this question! kindly login here or sign up here 2 Answers Voted Solutionwheels 2022-03-02T23:16:15+00:00 Added an answer on March 2, 2022 at 11:16 pm V Task 0: Where am I? - using Sandbox go to github.com create a repository: alx-system_engineering-devops then navigate to sandbox clone your repository then do the following 1. cd alx-system_engineering-devops 2. echo 'i am working now'>README.md 3. mkdir 0x00-shell_basics 4. cd 0x00-shell_basics 5. echo 'where am i'>README.md 6. emacs 0-current_working_directory this will take you to the emacs editor input the details below #!/bin/bash pwd press control x and contro s (to save) then type 0-current_working_directory press control x and control c (to exit emacs) 7. ls -a 8. chmod u+x 0-current_working_directory 8. you may need to introduce yourself git config user.email "your email" (enter) git config user.name "your name" (enter) 9. git add . (enter) 10. git commit -m 'working directory' (enter) 11. git push (enter) Check your code Deleted Solutionwheels 2022-03-03T01:06:50+00:00 Added an answer on March 3, 2022 at 1:06 am V Task 1: What’s in there? make sure you are in the directory 0x00-shell_basics 1. emacs 1-listit input #!/bin/bash ls press ctrl x, ctrl s (to save) ctrl x, ctrl c (to quit emacs) 2. chmod u+x 1-listit (enter) 3. ls -a (enter) 4. wc -l 1-listit (enter) 5. ./1-listit (enter) 6. git add . (enter) 7. git commit -m '1-listit' 8. git push (enter) Check your code Deleted
Task 0: Where am I? - using Sandbox
go to github.com
create a repository: alx-system_engineering-devops
then navigate to sandbox
clone your repository
then do the following
1. cd alx-system_engineering-devops
2. echo 'i am working now'>README.md
3. mkdir 0x00-shell_basics
4. cd 0x00-shell_basics
5. echo 'where am i'>README.md
6. emacs 0-current_working_directory
this will take you to the emacs editor
input the details below
#!/bin/bash
pwd
press
control x and contro s (to save)
then type 0-current_working_directory
press
control x and control c (to exit emacs)
7. ls -a
8. chmod u+x 0-current_working_directory
8. you may need to introduce yourself
git config user.email "your email" (enter)
git config user.name "your name" (enter)
9. git add . (enter)
10. git commit -m 'working directory' (enter)
11. git push (enter)
Check your code
Task 1: What’s in there?
make sure you are in the directory 0x00-shell_basics
1. emacs 1-listit
input
#!/bin/bash
ls
press
ctrl x, ctrl s (to save)
ctrl x, ctrl c (to quit emacs)
2. chmod u+x 1-listit (enter)
3. ls -a (enter)
4. wc -l 1-listit (enter)
5. ./1-listit (enter)
6. git add . (enter)
7. git commit -m '1-listit'
8. git push (enter)
Check your code