|
META TOPICPARENT |
name="CourseExercises" |
Exercises 1: Discovering Linux
Goal: |
| Finally remove runningNow.txt (using rm) and type ps ax| tee runningNow.txt . What is the difference to ps ax > runningNow.txt?
Exercise 5: File permissions |
|
> > | File permissions are given in the octal number system while very often we use the hexadecimal number system, e.g. when writing individual bits into chip registers. Here are a few exercises to get you acquainted with these system
What is the octal value of 101 001 110 ?
How much is 7+5 when calculated in octal?
Convert the octal value of 345 to decimal
Write down the binary representation of the hex value 0x83ab
How much is 7+5 in hexadecimal?
What is the decimal value of 0xa3?
Now on to permissions, which are given in octal: |
| Do an ls -l in your solutions/exercise_1 directory. Then do the same thing on /bin. Who can read, modify, write each file?
Now create a new file yesterday.sh in solutions/exercise_1/with: |
|
META FILEATTACHMENT |
attachment="yesterday.txt" attr="" comment="" date="1504691903" name="yesterday.txt" path="yesterday.txt" size="680" user="uli" version="1" |
|
|
< < |
META FILEATTACHMENT |
attachment="exercises_1.odt" attr="" comment="" date="1504693724" name="exercises_1.odt" path="exercises_1.odt" size="81558" user="uli" version="1" |
|
|
META FILEATTACHMENT |
attachment="bashrc.png" attr="" comment="" date="1504695772" name="bashrc.png" path="bashrc.png" size="35319" user="uli" version="1" |
|
|
> > |
META FILEATTACHMENT |
attachment="exercises_1.odt" attr="" comment="" date="1504787172" name="exercises_1.odt" path="exercises_1.odt" size="81800" user="uli" version="1" |
|