Last active
September 15, 2021 14:19
-
-
Save Hullaballo2001/ddb0bb180e7d78539bffa071f86ec7fe to your computer and use it in GitHub Desktop.
Linux - Terminal 2 - fichiers et dossiers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**find | |
$ find | |
. | |
./fictional | |
./fictional/arrakis.jpeg | |
./fictional/coruscant.jpeg | |
./fictional/cybertron.jpeg | |
./inhabited | |
./inhabited/arrakis.jpeg | |
./inhabited/coruscant.jpeg | |
./inhabited/cybertron.jpeg | |
./inhabited/earth.jpeg | |
./real | |
./real/gas-giants | |
./real/gas-giants/jupiter.jpeg | |
./real/gas-giants/neptune.jpeg | |
./real/gas-giants/saturn.jpeg | |
./real/gas-giants/uranus.jpeg | |
./real/terrestrial | |
./real/terrestrial/earth.jpeg | |
./real/terrestrial/mars.jpeg | |
./real/terrestrial/mercury.jpeg | |
./real/terrestrial/venus.jpeg | |
Bon, je sais, c'est pas dans quests/shell mais c'est tout comme ^^ | |
** History | |
curl -L -o planets.zip "https://github.com/WildCodeSchool/quests-resources/blob/master/terminal/planets.zip?raw=true" | |
unzip planets.zip | |
cd planets | |
mkdir real fictional inhabited | |
ls | |
mkdir real/terrestrial gas-giants dwarf-planets | |
find | |
mv dwarf-planets real | |
find | |
mv gas-giants real | |
find | |
mv earth.jpeg mars.jpeg mercury.jpeg venus.jpeg real/terrestrial | |
find | |
mv uranus.jpeg saturne.jpeg neptune.jpeg jupiter.jpeg real/gas-giants | |
mv uranus.jpeg saturn.jpeg neptune.jpeg jupiter.jpeg real/gas-giants | |
find | |
mv pluto.jpeg real/dwarf-planets | |
find | |
mv arrakis.jpeg coruscant.jpeg cybertron.jpeg fictional | |
find | |
cd fictional | |
cp arrakis.jpeg coruscant.jpeg cybertron.jpeg ~/planets/inhabited | |
find | |
cp -u ~/planets/real/terrstrial/earth.jpeg ~/planets/inhabited | |
cp -u ~/planets/real/terrestrial/earth.jpeg ~/planets/inhabited | |
find | |
cd .. | |
find | |
rm -r ~/planets/real/dwarf-planets | |
find | |
history | |
Et cette fois ci j'attends la validation avant de nettoyer ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment