Exam 42 Rank 02 Install
Open a terminal and type:
examshell
The first time, it may ask for your intra login and password. Then it will ask for the exam key (displayed on the intranet page).
To verify the installation was successful: exam 42 rank 02 install
Before you submit, you must verify three things in the exam's mock terminal:
| Edge case | Required behavior |
|-----------|-------------------|
| Source does not exist | Error, do not create destination |
| Destination is a symlink | Overwrite symlink itself, not its target (use unlink first) |
| Destination is directory (without trailing slash) | Copy into it only if -d not set and multiple sources |
| No write permission to destination dir | Fail with errno |
| -m 000 | Creates file with no permissions — still readable by root |
| -d on existing file | Error (ENOTDIR) |
| Interrupted copy (signal) | Temp file removed, no partial destination | Open a terminal and type:
examshell
echo $SHELL
If the project uses a DB:
# Example for a Django-like project
python manage.py migrate
python manage.py loaddata initial_data.json
Or for SQL:
psql -U user -d dbname -f schema.sql