adds and apt section to sudomateo's exercises
This commit is contained in:
parent
a6d3001853
commit
94bd29ca31
|
@ -28,6 +28,7 @@
|
||||||
5. `chmod 4664 file06`
|
5. `chmod 4664 file06`
|
||||||
6. `chmod 1444 file06`
|
6. `chmod 1444 file06`
|
||||||
5. Run the command `ls -l`. You should see output similar to the following.
|
5. Run the command `ls -l`. You should see output similar to the following.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ls -l
|
$ ls -l
|
||||||
total 0
|
total 0
|
||||||
|
@ -42,6 +43,7 @@ total 0
|
||||||
7. Run the command `rm -f file0*` to remove all six files that were created earlier. Verify the files were removed using the command `ls -l`.
|
7. Run the command `rm -f file0*` to remove all six files that were created earlier. Verify the files were removed using the command `ls -l`.
|
||||||
8. Run the command `tar -zxvf /tmp/managing-files.tgz -C /tmp/managing-files` to extract the contents of your archive back into the `/tmp/managing-files` directory.
|
8. Run the command `tar -zxvf /tmp/managing-files.tgz -C /tmp/managing-files` to extract the contents of your archive back into the `/tmp/managing-files` directory.
|
||||||
9. Verify the files were restored correctly using the command `ls -l`. You should see output similar to the following. **NOTE: `tar` does not restore special permissions (SUID, SGID, sticky bit) so you will only see the read, write, and execute permissions.**
|
9. Verify the files were restored correctly using the command `ls -l`. You should see output similar to the following. **NOTE: `tar` does not restore special permissions (SUID, SGID, sticky bit) so you will only see the read, write, and execute permissions.**
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ls -l
|
$ ls -l
|
||||||
total 0
|
total 0
|
||||||
|
@ -57,10 +59,41 @@ total 0
|
||||||
|
|
||||||
# Managing software [source](https://lsa-i.sudomateo.com/managing-software/)
|
# Managing software [source](https://lsa-i.sudomateo.com/managing-software/)
|
||||||
|
|
||||||
|
## Apt
|
||||||
|
|
||||||
|
1. Install the `screen` package using the command `sudo apt install screen`. Press ++y++ if prompted.
|
||||||
|
2. Verify the screen package is installed using the command `sudo apt list screen`. You should see the matching output.
|
||||||
|
3. Remove the `screen` package using the command `sudo apt remove screen`.
|
||||||
|
4. Verify the screen package is removed using the command `sudo apt list screen | grep installed`. You should see no matching output.
|
||||||
|
12. Run the command `sudo apt install nginx` to install the nginx webserver. Press ++y++ if prompted.
|
||||||
|
13. Run the command `sudo systemctl status nginx` to see the status of the nginx webserver. It should show inactive or dead.
|
||||||
|
14. Run the command `sudo systemctl start nginx` to start the nginx webserver.
|
||||||
|
15. On your local workstation, open a web browser and navigate to `http://127.0.0.1:8080`. You should see an nginx test page.
|
||||||
|
16. Run the command `sudo systemctl stop nginx` to stop the nginx webserver.
|
||||||
|
17. Try to reload the web page on your local workstation. It should not load this time.
|
||||||
|
18. Verify the nginx service is not running using the command `sudo systemctl status nginx`.
|
||||||
|
19. Practice these and other commands until you feel comfortable with them.
|
||||||
|
20. When finished, use the `exit` command to exit the shell and logout.
|
||||||
|
|
||||||
|
## Yum
|
||||||
|
|
||||||
1. Install the `screen` package using the command `sudo yum install screen`. Press ++y++ if prompted.
|
1. Install the `screen` package using the command `sudo yum install screen`. Press ++y++ if prompted.
|
||||||
2. Verify the screen package is installed using the command `sudo yum list installed | grep -i screen`. You should see the matching output.
|
2. Verify the screen package is installed using the command `sudo yum list installed | grep -i screen`. You should see the matching output.
|
||||||
3. Remove the `screen` package using the command `sudo yum remove screen`.
|
3. Remove the `screen` package using the command `sudo yum remove screen`.
|
||||||
4. Verify the screen package is removed using the command `sudo yum list installed | grep -i screen`. You should see no matching output.
|
4. Verify the screen package is removed using the command `sudo yum list installed | grep -i screen`. You should see no matching output.
|
||||||
|
11. Run the command `sudo yum install epel-release` to install the EPEL repository.
|
||||||
|
12. Run the command `sudo yum install nginx` to install the nginx webserver. Press ++y++ if prompted.
|
||||||
|
13. Run the command `sudo systemctl status nginx` to see the status of the nginx webserver. It should show inactive or dead.
|
||||||
|
14. Run the command `sudo systemctl start nginx` to start the nginx webserver.
|
||||||
|
15. On your local workstation, open a web browser and navigate to `http://127.0.0.1:8080`. You should see an nginx test page.
|
||||||
|
16. Run the command `sudo systemctl stop nginx` to stop the nginx webserver.
|
||||||
|
17. Try to reload the web page on your local workstation. It should not load this time.
|
||||||
|
18. Verify the nginx service is not running using the command `sudo systemctl status nginx`.
|
||||||
|
19. Practice these and other commands until you feel comfortable with them.
|
||||||
|
20. When finished, use the `exit` command to exit the shell and logout.
|
||||||
|
|
||||||
|
## General
|
||||||
|
|
||||||
5. Run the command `ps aux` to view all of the processes currently executing on the system.
|
5. Run the command `ps aux` to view all of the processes currently executing on the system.
|
||||||
6. Run the command `top` to view all of the processes and their resource usage. Notice how the output refreshed every 2 seconds. Press ++q++ to quit when done looking around.
|
6. Run the command `top` to view all of the processes and their resource usage. Notice how the output refreshed every 2 seconds. Press ++q++ to quit when done looking around.
|
||||||
7. Run the command `sleep 60`. Press ++ctrl+c++ to quit the command early.
|
7. Run the command `sleep 60`. Press ++ctrl+c++ to quit the command early.
|
||||||
|
@ -73,16 +106,6 @@ total 0
|
||||||
1. Verify the PID exists using the command `ps aux | grep PID` where `PID` is the PID from earlier.
|
1. Verify the PID exists using the command `ps aux | grep PID` where `PID` is the PID from earlier.
|
||||||
2. Use the `kill -9 PID` command where `PID` is the PID from earlier to send a `SIGKILL` command to that process.
|
2. Use the `kill -9 PID` command where `PID` is the PID from earlier to send a `SIGKILL` command to that process.
|
||||||
3. Run the `jobs` command to verify your background process was killed.
|
3. Run the `jobs` command to verify your background process was killed.
|
||||||
11. Run the command `sudo yum install epel-release` to install the EPEL repository.
|
|
||||||
12. Run the command `sudo yum install nginx` to install the nginx webserver. Press ++y++ if prompted.
|
|
||||||
13. Run the command `sudo systemctl status nginx` to see the status of the nginx webserver. It should show inactive or dead.
|
|
||||||
14. Run the command `sudo systemctl start nginx` to start the nginx webserver.
|
|
||||||
15. On your local workstation, open a web browser and navigate to `http://127.0.0.1:8080`. You should see an nginx test page.
|
|
||||||
16. Run the command `sudo systemctl stop nginx` to stop the nginx webserver.
|
|
||||||
17. Try to reload the web page on your local workstation. It should not load this time.
|
|
||||||
18. Verify the nginx service is not running using the command `sudo systemctl status nginx`.
|
|
||||||
19. Practice these and other commands until you feel comfortable with them.
|
|
||||||
20. When finished, use the `exit` command to exit the shell and logout.
|
|
||||||
|
|
||||||
# Configuring hardware [source](https://lsa-i.sudomateo.com/configuring-hardware/)
|
# Configuring hardware [source](https://lsa-i.sudomateo.com/configuring-hardware/)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue