9693 shaares
15 liens privés
15 liens privés
Passer des commandes dès le lancement de vim.
vim +356 +s/toto/titi +wq $file.txt (1)vim starts, loads the file, go to the 356th line, change the 'toto' occurence into 'titi', saves and quits.
Déduire la clé SSH publique d’une clé SSH privée.
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
Copier des fichiers en créant les dossiers de destination.
install -D /path/to/source-file /path/with/<unexistant-elements> (1)Will copy the source-file creating the unexistant directories of the destination