-
Create a directory named task-4.
-
Inside the
task-4
directory, create a file namedsolution.txt
. -
In
solution.txt
, write the commands used to solve each step. Do not include the output of the command. -
Do not leave blank lines between commands.
-
Upload the
task-4
directory to your tasks GitHub repository using Git on the CLI, Tasks submitted through GitHub, using GUI will be rejected. -
Paste only the command used, don't paste the prompt alongside it
[osc@osc ~]$ touch newFile # This is not accepted
touch newFile # This is correct
-
Don't paste output of commands unless specified in the task
Note:
- Ensure that the directory and file names are in lowercase. Names such as TASK-4, Task-4, task_4, Solution.txt, SOLUTION.TXT, or SoluTION.txt are not acceptable.
-
Create a new user named
newuser
. -
Create a new group named
newgroup
. -
Add
newuser
to thenewgroup
. -
Check the groups that
newuser
belongs to. -
Create directory named
task_dir
in your home directory. -
Change directory to
task_dir
and create a new file namedsample.txt
. -
Change the permissions of a file named
sample.txt
:The
owner
: hasread
andwrite
permissions.The
group
: hasread
permissions.Others
: have no permissions.Do this using one command.
-
Change the ownership of
sample.txt
tonewuser
. -
Change the group ownership of
sample.txt
tonewgroup
. -
Delete the
newgroup
group. -
Delete the
newuser
account and its home directory. -
Update the package list on your system.
-
Install the
lolcat
package. -
Print
I Love OSC
by piping the output tololcat
. -
Remove the
lolcat
package.