Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Linux - terminal 2 - fichiers et répertoires
lionel@lionel:~/quetes/shell/planets$ tree
.
├── fictional
│   ├── arrakis.jpeg
│   ├── coruscant.jpeg
│   └── cybertron.jpeg
├── inhabited
│   ├── earth.jpeg
│   └── fictional
│   ├── arrakis.jpeg
│   ├── coruscant.jpeg
│   └── cybertron.jpeg
└── real
├── gas-giants
│   ├── jupiter.jpeg
│   ├── neptune.jpeg
│   ├── saturn.jpeg
│   └── uranus.jpeg
└── telluric
├── earth.jpeg
├── mars.jpeg
├── mercury.jpeg
└── venus.jpeg
6 directories, 15 files
lionel@lionel:~/quetes/shell/planets$ history
1 exit
2 exit
3 mkdir quetes
4 mkdir -p quetes/shell/legumes quetes/shell/fruits
5 mkdir quetes/shell/effacer-moi quetes/shell/delete-me
6 ls quetes/shell
7 rmdir quetes/shell/effacez-moi quetes/shell/effacez-moi
8 rmdir quetes/shell/effacez-moi quetes/shell/delete-moi
9 rmdir -p quetes/shell/effacez-moi quetes/shell/delete-moi
10 rmdir quetes:shell:effacer-moi quetes/shell/delete-me
11 rmdir quetes:shell/effacer-moi
12 rmdir quetes/shell/effacer-moi
13 cd ~quetes/shell
14 cd ~/quetes/shell
15 touch pomme
16 touch poire
17 touch carotte chou-rave chou-fleur courgette
18 ls
19 ls -l/.bashrc
20 ls -l
21 ls - ~/.bashrc
22 ls -l ~/.bashrc
23 ls -l
24 ls -l ~/.bashrc
25 touch ~/.bashrc
26 ls -l ~/.bashrc
27 cp pomme banane
28 cp pomme fruits/orange
29 ls ; ls fruits
30 ls
31 cp po* banane fruits/
32 cp po* legumes fruits/
33 cp -R fruits copie-de-fruits
34 exit
35 htop
36 sudo apt-get install htop
37 htop
38 exit
39 sudo apt-get install asciicinema
40 sudo apt-add-repository ppa:zanchey/asciicinema
41 exitsudo apt-get update
42 sudo apt-get update
43 sudo apt-get install asciicinema
44 sudo apt-get install asciinema
45 exit
46 htop
47 asciicinema rec
48 asciinema rec
49 exit
50 ping lemonde.fr
51 exit
52 htop
53 ping le monde.fr
54 ping lemonde.fr
55 cd ~/quetes/
56 find
57 cd fruits/
58 cd /fruits
59 cd /fruits/
60 cd fruits
61 cd ~/fruits/
62 cd shell
63 cd fruits
64 rm po* banane
65 cd ..
66 rm -r copie-de-fruits
67 ls ; ls
68 ls
69 find
70 mv carotte chou* courgette legumes/
71 mv fruits/orange fruits/pamplemousse
72 mv legumes/courgete fruits/kiwi
73 mv legumes/courgette fruits/kiwi
74 cd ..
75 cd lionel
76 sudo apt-get install -y tree wget unzip
77 cd ~/quetes/shell
78 wget https://github.com/bhubr/bhubr.github.io/raw/master/wild/planets.zip
79 unzip planets.zip
80 eog mercury
81 eog planets/mercury.jpeg
82 eog planets
83 cd planets/
84 mkdir fictional
85 mkdir inhabited
86 mkdir real
87 cd real
88 mkdir telluric
89 mkdir gas-giants
90 mkdir dwarf-planets
91 ls
92 cd ..
93 mv planets/mercury.jpeg planets/telluric
94 mv mercury.jpeg real/telluric/
95 mv earth.jpeg real/telluric/
96 ls
97 ls ; ls
98 mv pluto.jpeg real/dwarf-planets/
99 ls real
100 ls real/dwarf-planets/
101 mv jupiter.jpeg real/gas-giants/
102 ls real/gas-giants/
103 mv venus.jpeg real/telluric/
104 ls real/telluric/
105 mv mars.jpeg real/telluric/
106 ls real/telluric/
107 mv uranus.jpeg real/gas-giants/
108 ls real/gas-giants/
109 mv neptune.jpeg real/gas-giants/
110 ls real/gas-giants/
111 mv saturn.jpeg real/gas-giants/
112 ls real/gas-giants/
113 ls -s
114 mv coruscat.jpeg fictional/
115 mv coruscant.jpeg fictional/
116 mv arrakis.jpeg fictional/
117 mv cybertron.jpeg fictional/
118 ls -s
119 cp -R planets/fictional/ planets/inhabited/
120 cd fictionnal
121 cd fictional
122 ls -s
123 cd arrakis.jpeg coruscant.jpeg cybertron.jpeg /planets/inhabited
124 cd arrakis.jpeg coruscant.jpeg cybertron.jpeg /inhabited/
125 cd arrakis.jpeg coruscant.jpeg cybertron.jpeg
126 cd ..
127 cd fictional.
128 cd fictional/
129 cp arrakis.jpeg
130 cp arrakis.jpeg planets/inhabited/
131 ls fictional
132 ls
133 cd ..
134 cp -r fictional/inhabited/
135 cp -rt fictional/inhabited
136 cp -R fictional /inhabited/
137 sudo cp -R fictional /inhabited/
138 cd fictional
139 cp -R
140 cp -R inhabited/
141 cp -R /inhabited/
142 cp arrakis.jpeg coruscant.jpeg cybertron.jpeg/
143 cp arrakis.jpeg coruscant.jpeg cybertron.jpeg /
144 sudo cp arrakis.jpeg coruscant.jpeg cybertron.jpeg /
145 cd ..
146 cp -r fictional/inhabited/ .
147 cp -r fictional/inhabited/
148 cp -r /planet/fictional planet/inhabited
149 cp -r /planet/fictional/ planet/inhabited
150 cp -r /planet/fictional/ planet/inhabited/
151 cp -r /fictional/ inhabited/
152 cp -r /fictional inhabited/
153 cp -R fictional /inhabited/
154 sudo cp -R fictional /inhabited/
155 cd real
156 cd telluric
157 cp earth.jpeg /inhabited/
158 sudo cp earth.jpeg /inhabited/
159 cd planets/
160 cd planets
161 cd ~planets/
162 cd ..
163 ls
164 cp -r /fictional/ /inhabited/
165 cp -r fictional/ /inhabited/
166 sudo cp -r fictional/ /inhabited/
167 cp -r fictional/ inhabited/
168 cp earth.jpeg inhabited/
169 cp earth.jpeg /inhabited/
170 cp real/telluric/earth.jpeg inhabited/
171 cd real
172 rm -r dwarf-planets/
173 tree
174 cd..
175 cd ..
176 tree
177 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.