Skip to content
Snippets Groups Projects
Commit 5d7cc398 authored by Holger Dinkel's avatar Holger Dinkel
Browse files

BUGFIX: solutions_beginner

parent 13148e4a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
.. Do not edit this file directly! .. Do not edit this file directly!
ALways copy over the solutions file and remove the solutions Always copy over the solutions file and remove the solutions
This way it is assured that exercises and solutions are in sync This way it is assured that exercises and solutions are in sync
Exercises Exercises
......
...@@ -5,7 +5,7 @@ Solutions to the Exercises ...@@ -5,7 +5,7 @@ Solutions to the Exercises
Misc. file tools Misc. file tools
---------------- ----------------
#. Which tool can be used to determine the type of a index:`file`? :: #. Which tool can be used to determine the type of a :index:`file`? ::
$ file $ file
...@@ -53,6 +53,8 @@ Misc. terminal ...@@ -53,6 +53,8 @@ Misc. terminal
$ clear $ clear
or::
$ reset $ reset
...@@ -80,8 +82,8 @@ Permissions ...@@ -80,8 +82,8 @@ Permissions
$ cp /bin/date adir/mydate $ cp /bin/date adir/mydate
#. :index:`Check <ls>` the permissions of the copied program 'mydate':: #. :index:`Check <ls>` the permissions of the copied program 'mydate' ::
$ ls -lh adir/mydate $ ls -lh adir/mydate
-r-xr-xr-x 1 dinkel staff 79K 9 Dec 13:47 mydate* -r-xr-xr-x 1 dinkel staff 79K 9 Dec 13:47 mydate*
...@@ -119,7 +121,8 @@ Permissions ...@@ -119,7 +121,8 @@ Permissions
#. Change your working directory to testpermissions, and then try changing the permissions on the directory adir to non-executable. :: #. Change your working directory to testpermissions, and then try changing the permissions on the directory adir to non-executable. ::
$ # no need to change directory, as we still are in the directory testpermissions $ # no need to change directory,
$ # as we still are in the directory testpermissions
$ chmod a-x adir $ chmod a-x adir
#. What are the minimum permissions (on the directory) necessary for you to be able to execute ``adir/mydate``? :: #. What are the minimum permissions (on the directory) necessary for you to be able to execute ``adir/mydate``? ::
...@@ -172,7 +175,7 @@ IO and Redirections ...@@ -172,7 +175,7 @@ IO and Redirections
$ date > ~/current_date $ date > ~/current_date
#. :index:`Inspect <cat>` the file to make sure it contains (only a single line with) the date.:: #. :index:`Inspect <cat>` the file to make sure it contains (only a single line with) the date. ::
$ cat ~/current_date $ cat ~/current_date
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment