notes du 30
This commit is contained in:
parent
b4a976b015
commit
8a541efbda
@ -37,6 +37,49 @@ $_= c'est une variable, argument de la commande précédent
|
||||
\ = antislash, ne prend pas en compte le caractère suivant
|
||||
' = ne prend pas en compte les variables
|
||||
" = prend en compte les variables
|
||||
. = postition actuel
|
||||
">" = rediriger
|
||||
diff = liste la difference entre deux fichiers
|
||||
|
||||
echo= peut être utilisé pour écrire dans un fichier, echo "contenu" > "fichier"
|
||||
">>" écrit à la suite du fichier, ">" écrit de nouveau sur le fichier, supprime le contenu existant.
|
||||
|
||||
man "commande" pour voir le manual du commande
|
||||
|
||||
##GIT INIT
|
||||
|
||||
git init
|
||||
git config --global init.defaultBranch "nom"
|
||||
git branch -m main
|
||||
git status
|
||||
git remote add origin https.. ajout serveur
|
||||
git remote -v = -v sort des infos
|
||||
|
||||
## Création user system
|
||||
|
||||
sudo adduser --system --no-create-home --group grabber
|
||||
|
||||
|
||||
## Permissions, droits de fichiers
|
||||
|
||||
ls -Alh afficher info fichier
|
||||
|
||||
|
||||
-rw-rw-r-- =les permissions read and write, reparti en 3, 1e -rw user, 2e group -rw, 3e others r--
|
||||
x= exexcutable
|
||||
|
||||
--- 0
|
||||
--x 1
|
||||
-w- 2
|
||||
r-- 4
|
||||
rw- 6
|
||||
r-x 5
|
||||
-wx 3
|
||||
rwx 7
|
||||
|
||||
sudo chmod 760 "fichier"
|
||||
|
||||
bin 000 001 010 011 100 101 110 111
|
||||
decimal 1 2 3 4...
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user