Skip to content

Instantly share code, notes, and snippets.

@Florencelg
Last active September 4, 2018 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Florencelg/8d1476ff2244084f87caa9476eac6099 to your computer and use it in GitHub Desktop.
Save Florencelg/8d1476ff2244084f87caa9476eac6099 to your computer and use it in GitHub Desktop.
wilder22@denethor:~$ pwd
/home/wilder22
wilder22@denethor:~$ cd~
La commande « cd~ » n'a pas été trouvée, voulez-vous dire :
commande « cdv » du deb codeville
commande « cd5 » du deb cd5
commande « cde » du deb cde
commande « cdb » du deb tinycdb
commande « cdo » du deb cdo
commande « cdi » du deb cdo
commande « cdp » du deb irpas
commande « cdw » du deb cdw
Essayez : sudo apt install <nom du deb>
wilder22@denethor:~$ cd ~
wilder22@denethor:~$ cd/
bash: cd/: Aucun fichier ou dossier de ce type
wilder22@denethor:~$
wilder22@denethor:~$
wilder22@denethor:~$ realpath
realpath: opérande manquant
Saisissez « realpath --help » pour plus d'informations.
wilder22@denethor:~$ cd/
bash: cd/: Aucun fichier ou dossier de ce type
wilder22@denethor:~$ cd..
cd.. : commande introuvable
wilder22@denethor:~$ cd ..
wilder22@denethor:/home$ ls
lost+found wilder22
wilder22@denethor:/home$ cd ..
wilder22@denethor:/$ ls
bin dev initrd.img lib64 mnt root snap tmp vmlinuz
boot etc initrd.img.old lost+found opt run srv usr vmlinuz.old
cdrom home lib media proc sbin sys var
wilder22@denethor:/$ ls -|
> dc
ls: impossible d'accéder à '-': Aucun fichier ou dossier de ce type
wilder22@denethor:/$ cd tmp
wilder22@denethor:/tmp$ ls
config-err-6OAJFz
dropbox-antifreeze-h32hPg
launchpadlib.cache.jh11ps5p
ssh-IknA9wzKjGL2
systemd-private-ae09c0cce63f4114a0e12848f35daa55-bolt.service-3DgFss
systemd-private-ae09c0cce63f4114a0e12848f35daa55-colord.service-FQ3OQa
systemd-private-ae09c0cce63f4114a0e12848f35daa55-fwupd.service-1a2Yv1
systemd-private-ae09c0cce63f4114a0e12848f35daa55-iio-sensor-proxy.service-PgE7cE
systemd-private-ae09c0cce63f4114a0e12848f35daa55-rtkit-daemon.service-TYsDob
systemd-private-ae09c0cce63f4114a0e12848f35daa55-systemd-resolved.service-3Hg5EP
systemd-private-ae09c0cce63f4114a0e12848f35daa55-systemd-timesyncd.service-pPDLKq
Temp-55de1df3-7620-47e5-9308-8dd24137d92a
wilder22@denethor:/tmp$ echo
wilder22@denethor:/tmp$ cd ..
wilder22@denethor:/$ cd tmp/
wilder22@denethor:/tmp$ touch vieuxtacos.txt
wilder22@denethor:/tmp$ cd ls
bash: cd: ls: Aucun fichier ou dossier de ce type
wilder22@denethor:/tmp$ ls
config-err-6OAJFz
dropbox-antifreeze-h32hPg
launchpadlib.cache.jh11ps5p
ssh-IknA9wzKjGL2
systemd-private-ae09c0cce63f4114a0e12848f35daa55-bolt.service-3DgFss
systemd-private-ae09c0cce63f4114a0e12848f35daa55-colord.service-FQ3OQa
systemd-private-ae09c0cce63f4114a0e12848f35daa55-fwupd.service-1a2Yv1
systemd-private-ae09c0cce63f4114a0e12848f35daa55-iio-sensor-proxy.service-PgE7cE
systemd-private-ae09c0cce63f4114a0e12848f35daa55-rtkit-daemon.service-TYsDob
systemd-private-ae09c0cce63f4114a0e12848f35daa55-systemd-resolved.service-3Hg5EP
systemd-private-ae09c0cce63f4114a0e12848f35daa55-systemd-timesyncd.service-pPDLKq
Temp-55de1df3-7620-47e5-9308-8dd24137d92a
vieuxtacos.txt
wilder22@denethor:/tmp$ cd vieuxtacos.txt
bash: cd: vieuxtacos.txt: N'est pas un dossier
wilder22@denethor:/tmp$ echo
wilder22@denethor:/tmp$ cat vieuxtacos.txt
wilder22@denethor:/tmp$ echo "je suis moisi" > vieuxtacos.txt
wilder22@denethor:/tmp$ cat vieuxtacos.txt
je suis moisi
wilder22@denethor:/tmp$ LS
La commande « LS » n'a pas été trouvée, mais peut être installée avec :
sudo apt install sl
wilder22@denethor:/tmp$ ls
config-err-6OAJFz
dropbox-antifreeze-h32hPg
launchpadlib.cache.jh11ps5p
ssh-IknA9wzKjGL2
systemd-private-ae09c0cce63f4114a0e12848f35daa55-bolt.service-3DgFss
systemd-private-ae09c0cce63f4114a0e12848f35daa55-colord.service-FQ3OQa
systemd-private-ae09c0cce63f4114a0e12848f35daa55-fwupd.service-1a2Yv1
systemd-private-ae09c0cce63f4114a0e12848f35daa55-iio-sensor-proxy.service-PgE7cE
systemd-private-ae09c0cce63f4114a0e12848f35daa55-rtkit-daemon.service-TYsDob
systemd-private-ae09c0cce63f4114a0e12848f35daa55-systemd-resolved.service-3Hg5EP
systemd-private-ae09c0cce63f4114a0e12848f35daa55-systemd-timesyncd.service-pPDLKq
Temp-55de1df3-7620-47e5-9308-8dd24137d92a
vieuxtacos.txt
wilder22@denethor:/tmp$ echo " Je ne suis pas moisi"> vieuxtacos.txt
wilder22@denethor:/tmp$ mv vieuxtacos.txt tacos.txt
wilder22@denethor:/tmp$ rm tacos.txt
wilder22@denethor:/tmp$ ls
config-err-6OAJFz
dropbox-antifreeze-h32hPg
launchpadlib.cache.jh11ps5p
ssh-IknA9wzKjGL2
systemd-private-ae09c0cce63f4114a0e12848f35daa55-bolt.service-3DgFss
systemd-private-ae09c0cce63f4114a0e12848f35daa55-colord.service-FQ3OQa
systemd-private-ae09c0cce63f4114a0e12848f35daa55-fwupd.service-1a2Yv1
systemd-private-ae09c0cce63f4114a0e12848f35daa55-iio-sensor-proxy.service-PgE7cE
systemd-private-ae09c0cce63f4114a0e12848f35daa55-rtkit-daemon.service-TYsDob
systemd-private-ae09c0cce63f4114a0e12848f35daa55-systemd-resolved.service-3Hg5EP
systemd-private-ae09c0cce63f4114a0e12848f35daa55-systemd-timesyncd.service-pPDLKq
Temp-55de1df3-7620-47e5-9308-8dd24137d92a
wilder22@denethor:/tmp$ cd ..
wilder22@denethor:/$ ls
bin dev initrd.img lib64 mnt root snap tmp vmlinuz
boot etc initrd.img.old lost+found opt run srv usr vmlinuz.old
cdrom home lib media proc sbin sys var
wilder22@denethor:/$ cd opt
wilder22@denethor:/opt$ mkdir tacosfolder
mkdir: impossible de créer le répertoire «tacosfolder»: Permission non accordée
wilder22@denethor:/opt$ sudo mkdir tacosfolder
[sudo] Mot de passe de wilder22 :
wilder22@denethor:/opt$ cd tacosfolder
wilder22@denethor:/opt/tacosfolder$ echo "vert" haricots.txt
vert haricots.txt
wilder22@denethor:/opt/tacosfolder$ cd
wilder22@denethor:~$ cd ..
wilder22@denethor:/home$ cd ..
wilder22@denethor:/$ cd opt
wilder22@denethor:/opt$ ls
google tacosfolder
wilder22@denethor:/opt$ cd tacosfolder
wilder22@denethor:/opt/tacosfolder$ more
more: bad usage
Exécutez « more --help » pour obtenir des renseignements complémentaires.
wilder22@denethor:/opt/tacosfolder$ sudo echo "vert" haricots.txt
vert haricots.txt
wilder22@denethor:/opt/tacosfolder$ echo "vert" > haricots.txt
bash: haricots.txt: Permission non accordée
wilder22@denethor:/opt/tacosfolder$ sudo echo "vert" > haricots.txt
bash: haricots.txt: Permission non accordée
wilder22@denethor:/opt/tacosfolder$ cd ..
wilder22@denethor:/opt$ rm tacosfolder
rm: impossible de supprimer 'tacosfolder': est un dossier
wilder22@denethor:/opt$ realpath
realpath: opérande manquant
Saisissez « realpath --help » pour plus d'informations.
wilder22@denethor:/opt$ cd .
wilder22@denethor:/opt$ cd tacosfolder
wilder22@denethor:/opt/tacosfolder$ sudo rm -r tacosfolder
rm: impossible de supprimer 'tacosfolder': Aucun fichier ou dossier de ce type
wilder22@denethor:/opt/tacosfolder$ cd..
cd.. : commande introuvable
wilder22@denethor:/opt/tacosfolder$ cd ..
wilder22@denethor:/opt$ sudo rm -r tacosfolder
wilder22@denethor:/opt$ ls
google
wilder22@denethor:/opt$ cd ~
wilder22@denethor:~$ ls
Bureau Dropbox Images Musique snap Vidéos
Documents examples.desktop Modèles Public Téléchargements
wilder22@denethor:~$ cd D
Documents/ Dropbox/
wilder22@denethor:~$ cd Documents/
wilder22@denethor:~/Documents$ echo > fauteuil1
wilder22@denethor:~/Documents$ realpath chalet
/home/wilder22/Documents/chalet
wilder22@denethor:~/Documents$ mv fauteuil1 chalet
wilder22@denethor:~/Documents$ cd chalet
bash: cd: chalet: N'est pas un dossier
wilder22@denethor:~/Documents$ mv fauteuil1 chalet
mv: impossible d'évaluer 'fauteuil1': Aucun fichier ou dossier de ce type
wilder22@denethor:~/Documents$ echo > fauteuil1
wilder22@denethor:~/Documents$ mv fauteuil1 chalet
wilder22@denethor:~/Documents$ cd chalet
bash: cd: chalet: N'est pas un dossier
wilder22@denethor:~/Documents$ mkdir chalet
mkdir: impossible de créer le répertoire «chalet»: Le fichier existe
wilder22@denethor:~/Documents$ ls
chalet
wilder22@denethor:~/Documents$ mv fauteuil1 chalet
mv: impossible d'évaluer 'fauteuil1': Aucun fichier ou dossier de ce type
wilder22@denethor:~/Documents$ touch fauteuil1
wilder22@denethor:~/Documents$ ls
chalet fauteuil1
wilder22@denethor:~/Documents$ mv fauteuil1 chalet
wilder22@denethor:~/Documents$ ls
chalet
wilder22@denethor:~/Documents$ cd chalet
bash: cd: chalet: N'est pas un dossier
wilder22@denethor:~/Documents$ mkdir armure
wilder22@denethor:~/Documents$ mkdir armoires
wilder22@denethor:~/Documents$ mkdir etageres
wilder22@denethor:~/Documents$ ls
armoires armure chalet etageres
wilder22@denethor:~/Documents$ mkir chalet
La commande « mkir » n'a pas été trouvée, voulez-vous dire :
commande « mkid » du deb id-utils
commande « mdir » du deb mtools
commande « mkdir » du deb coreutils
Essayez : sudo apt install <nom du deb>
wilder22@denethor:~/Documents$ mkdir chalet
mkdir: impossible de créer le répertoire «chalet»: Le fichier existe
wilder22@denethor:~/Documents$ mkdir chalet
mkdir: impossible de créer le répertoire «chalet»: Le fichier existe
wilder22@denethor:~/Documents$ ls
armoires armure chalet etageres
wilder22@denethor:~/Documents$ cd chalet
bash: cd: chalet: N'est pas un dossier
wilder22@denethor:~/Documents$ rm chalet
wilder22@denethor:~/Documents$ ls
armoires armure etageres
wilder22@denethor:~/Documents$ mkdir chalet
wilder22@denethor:~/Documents$ ls
armoires armure chalet etageres
wilder22@denethor:~/Documents$ echo fauteuil1
fauteuil1
wilder22@denethor:~/Documents$ ls
armoires armure chalet etageres
wilder22@denethor:~/Documents$ cd chalet
wilder22@denethor:~/Documents/chalet$ ls
wilder22@denethor:~/Documents/chalet$ cd ..
wilder22@denethor:~/Documents$ echo > fauteuil1
wilder22@denethor:~/Documents$ ls
armoires armure chalet etageres fauteuil1
wilder22@denethor:~/Documents$ mv fauteuil1 chalet
wilder22@denethor:~/Documents$ cd chalet
wilder22@denethor:~/Documents/chalet$ cp fauteuil1 fauteuil2
wilder22@denethor:~/Documents/chalet$ ls
fauteuil1 fauteuil2
wilder22@denethor:~/Documents/chalet$ echo > bibelots
wilder22@denethor:~/Documents/chalet$ ls
bibelots fauteuil1 fauteuil2
wilder22@denethor:~/Documents/chalet$ cd ..
wilder22@denethor:~/Documents$ cd arm
armoires/ armure/
wilder22@denethor:~/Documents$ cd arm
armoires/ armure/
wilder22@denethor:~/Documents$ cd armoires/
wilder22@denethor:~/Documents/armoires$ mv ../bibelots .
mv: impossible d'évaluer '../bibelots': Aucun fichier ou dossier de ce type
wilder22@denethor:~/Documents/armoires$ mv ../bibelots
mv: opérande de fichier cible manquant après '../bibelots'
Saisissez « mv --help » pour plus d'informations.
wilder22@denethor:~/Documents/armoires$ mv ../bibelots .
mv: impossible d'évaluer '../bibelots': Aucun fichier ou dossier de ce type
wilder22@denethor:~/Documents/armoires$ cd ..
wilder22@denethor:~/Documents$ mv ../bibelots
mv: opérande de fichier cible manquant après '../bibelots'
Saisissez « mv --help » pour plus d'informations.
wilder22@denethor:~/Documents$ mv ../bibelots.
mv: opérande de fichier cible manquant après '../bibelots.'
Saisissez « mv --help » pour plus d'informations.
wilder22@denethor:~/Documents$ mv ../bibelots .
mv: impossible d'évaluer '../bibelots': Aucun fichier ou dossier de ce type
wilder22@denethor:~/Documents$ ls
armoires armure chalet etageres
wilder22@denethor:~/Documents$ cd chalet/
wilder22@denethor:~/Documents/chalet$ ls
bibelots fauteuil1 fauteuil2
wilder22@denethor:~/Documents/chalet$ cd ..
wilder22@denethor:~/Documents$ cd armoires/
wilder22@denethor:~/Documents/armoires$ mv ../bibelots .
mv: impossible d'évaluer '../bibelots': Aucun fichier ou dossier de ce type
wilder22@denethor:~/Documents/armoires$ ls ../chalet/
bibelots fauteuil1 fauteuil2
wilder22@denethor:~/Documents/armoires$ cd ..
wilder22@denethor:~/Documents$ cd chalet/
wilder22@denethor:~/Documents/chalet$ mv ../armoires/ .
wilder22@denethor:~/Documents/chalet$ mv ../armure/ .
wilder22@denethor:~/Documents/chalet$ mv ../etageres/ .
wilder22@denethor:~/Documents/chalet$ ls
armoires armure bibelots etageres fauteuil1 fauteuil2
wilder22@denethor:~/Documents/chalet$ cd armoires/
wilder22@denethor:~/Documents/chalet/armoires$ mv ../bibelots .
wilder22@denethor:~/Documents/chalet/armoires$ ls
bibelots
wilder22@denethor:~/Documents/chalet/armoires$ cp bibelots mv ../etageres/ .
cp: 'bibelots' et './bibelots' identifient le même fichier
cp: impossible d'évaluer 'mv': Aucun fichier ou dossier de ce type
cp: -r non spécifié ; omission du répertoire '../etageres/'
wilder22@denethor:~/Documents/chalet/armoires$ cp bibelots bibelots
cp: 'bibelots' et 'bibelots' identifient le même fichier
wilder22@denethor:~/Documents/chalet/armoires$ cd ..
wilder22@denethor:~/Documents/chalet$ cd etageres/
wilder22@denethor:~/Documents/chalet/etageres$ cd ..
wilder22@denethor:~/Documents/chalet$ cd armoires/
wilder22@denethor:~/Documents/chalet/armoires$ cp bibelots bibelots1
wilder22@denethor:~/Documents/chalet/armoires$ cd ..
wilder22@denethor:~/Documents/chalet$ cd etageres/
wilder22@denethor:~/Documents/chalet/etageres$ mv ../bibelots1
mv: opérande de fichier cible manquant après '../bibelots1'
Saisissez « mv --help » pour plus d'informations.
wilder22@denethor:~/Documents/chalet/etageres$ mv ../bibelots1 .
mv: impossible d'évaluer '../bibelots1': Aucun fichier ou dossier de ce type
wilder22@denethor:~/Documents/chalet/etageres$ cd ..
wilder22@denethor:~/Documents/chalet$ cd ..
wilder22@denethor:~/Documents$ tree chalet/
La commande « tree » n'a pas été trouvée, mais peut être installée avec :
sudo apt install tree
wilder22@denethor:~/Documents$ sudo apt install tree
[sudo] Mot de passe de wilder22 :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les NOUVEAUX paquets suivants seront installés :
tree
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 40,7 ko dans les archives.
Après cette opération, 105 ko d'espace disque supplémentaires seront utilisés.
Réception de:1 http://fr.archive.ubuntu.com/ubuntu bionic/universe amd64 tree amd64 1.7.0-5 [40,7 kB]
40,7 ko réceptionnés en 0s (727 ko/s)
Sélection du paquet tree précédemment désélectionné.
(Lecture de la base de données... 212672 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../tree_1.7.0-5_amd64.deb ...
Dépaquetage de tree (1.7.0-5) ...
Paramétrage de tree (1.7.0-5) ...
Traitement des actions différées (« triggers ») pour man-db (2.8.3-2) ...
wilder22@denethor:~/Documents$ tree chalet/
chalet/
├── armoires
│   ├── bibelots
│   └── bibelots1
├── armure
├── etageres
├── fauteuil1
└── fauteuil2
3 directories, 4 files
wilder22@denethor:~/Documents$ sudo apt install vim
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
vim-runtime
Paquets suggérés :
ctags vim-doc vim-scripts
Les NOUVEAUX paquets suivants seront installés :
vim vim-runtime
0 mis à jour, 2 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 6 589 ko dans les archives.
Après cette opération, 32,0 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Réception de:1 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 vim-runtime all 2:8.0.1453-1ubuntu1 [5 437 kB]
Réception de:2 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 vim amd64 2:8.0.1453-1ubuntu1 [1 152 kB]
6 589 ko réceptionnés en 2s (3 276 ko/s)
Sélection du paquet vim-runtime précédemment désélectionné.
(Lecture de la base de données... 212679 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../vim-runtime_2%3a8.0.1453-1ubuntu1_all.deb ...
Ajout de « détournement de /usr/share/vim/vim80/doc/help.txt en /usr/share/vim/vim80/doc/help.txt.vim-tiny par vim-runtime »
Ajout de « détournement de /usr/share/vim/vim80/doc/tags en /usr/share/vim/vim80/doc/tags.vim-tiny par vim-runtime »
Dépaquetage de vim-runtime (2:8.0.1453-1ubuntu1) ...
Sélection du paquet vim précédemment désélectionné.
Préparation du dépaquetage de .../vim_2%3a8.0.1453-1ubuntu1_amd64.deb ...
Dépaquetage de vim (2:8.0.1453-1ubuntu1) ...
Traitement des actions différées (« triggers ») pour man-db (2.8.3-2) ...
Paramétrage de vim-runtime (2:8.0.1453-1ubuntu1) ...
Paramétrage de vim (2:8.0.1453-1ubuntu1) ...
update-alternatives: utilisation de « /usr/bin/vim.basic » pour fournir « /usr/bin/vim » (vim) en mode automatique
update-alternatives: utilisation de « /usr/bin/vim.basic » pour fournir « /usr/bin/vimdiff » (vimdiff) en mode automatique
update-alternatives: utilisation de « /usr/bin/vim.basic » pour fournir « /usr/bin/rvim » (rvim) en mode automatique
update-alternatives: utilisation de « /usr/bin/vim.basic » pour fournir « /usr/bin/rview » (rview) en mode automatique
update-alternatives: utilisation de « /usr/bin/vim.basic » pour fournir « /usr/bin/vi » (vi) en mode automatique
update-alternatives: utilisation de « /usr/bin/vim.basic » pour fournir « /usr/bin/view » (view) en mode automatique
update-alternatives: utilisation de « /usr/bin/vim.basic » pour fournir « /usr/bin/ex » (ex) en mode automatique
wilder22@denethor:~/Documents$
wilder22@denethor:~/Documents$ ls
chalet
wilder22@denethor:~/Documents$ cd ..
wilder22@denethor:~$ ls
Bureau Images snap
Documents Modèles Téléchargements
Dropbox Musique Vidéos
examples.desktop Public
wilder22@denethor:~$ ls .
Bureau Images snap
Documents Modèles Téléchargements
Dropbox Musique Vidéos
examples.desktop Public
wilder22@denethor:~$ ls .
Bureau Images snap
Documents Modèles Téléchargements
Dropbox Musique Vidéos
examples.desktop Public
wilder22@denethor:~$ ls Téléchargements/
'Florence Gautier.jpg'
wilder22@denethor:~$ cd ..
wilder22@denethor:/home$ ls Images
ls: impossible d'accéder à 'Images': Aucun fichier ou dossier de ce type
wilder22@denethor:/home$ cd ..
wilder22@denethor:/$ pwd
/
wilder22@denethor:/$ cd ~
wilder22@denethor:~$ cd ..
wilder22@denethor:/home$ cd ..
wilder22@denethor:/$ ls
bin initrd.img mnt snap vmlinuz
boot initrd.img.old opt srv vmlinuz.old
cdrom lib proc sys
dev lib64 root tmp
etc lost+found run usr
home media sbin var
wilder22@denethor:/$ cd/home/wilder
bash: cd/home/wilder: Aucun fichier ou dossier de ce type
wilder22@denethor:/$ cd/home/wilderéé
bash: cd/home/wilderéé: Aucun fichier ou dossier de ce type
wilder22@denethor:/$ pwd
/
wilder22@denethor:/$ cd ~
wilder22@denethor:~$ cd Images
wilder22@denethor:~/Images$ cd ..
wilder22@denethor:~$ cd ~/Musique
wilder22@denethor:~/Musique$ pwd
/home/wilder22/Musique
wilder22@denethor:~/Musique$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment