33 lines
No EOL
1.1 KiB
Markdown
33 lines
No EOL
1.1 KiB
Markdown
## Linux compilation
|
|
|
|
> mkdir build
|
|
> cd build
|
|
> cmake -DCMAKE_BUILD_TYPE=Debug ..
|
|
> make
|
|
|
|
## Exercise
|
|
|
|
Open project `files`. Write a program which modify files under `project` directory:
|
|
|
|
- Change permision for all .exe files to `rwxrw-rw-`.
|
|
- Change permision for all .cpp and .hpp files to `rw-r--r--`.
|
|
|
|
You should get output like this:
|
|
|
|
```Bash
|
|
File: "fileA.cpp" | Permissions: rw-------
|
|
File: "fileA.hpp" | Permissions: rw-------
|
|
File: "fileB.cpp" | Permissions: rw-------
|
|
File: "fileB.hpp" | Permissions: rw-------
|
|
File: "fileC.cpp" | Permissions: rw-------
|
|
File: "fileC.hpp" | Permissions: rw-------
|
|
File: "project.exe" | Permissions: rw-------
|
|
|
|
File: "fileA.cpp" | Permissions: rw-r--r--
|
|
File: "fileA.hpp" | Permissions: rw-r--r--
|
|
File: "fileB.cpp" | Permissions: rw-r--r--
|
|
File: "fileB.hpp" | Permissions: rw-r--r--
|
|
File: "fileC.cpp" | Permissions: rw-r--r--
|
|
File: "fileC.hpp" | Permissions: rw-r--r--
|
|
File: "project.exe" | Permissions: rwxrw-rw-
|
|
``` |