Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ls -l / > racine.txt
- ------------------------------------------------
- wc -l < racine.txt
- wc -l racine.txt (fonctionne aussi bien)
- ------------------------------------------------
- mkdir / u1bin000 2> mesErreurs.txt
- wc -l !$
- ------------------------------------------------
- echo "/bin" > bin.cmd (std OUT)
- cat > bin.cmd (std IN)
- +<Ctrl d> pour terminer!
- Ensuite, ls /bin >> bin.cmd
- En une seule commande:
- echo "/bin" > bin.cmd; ls /bin >> bin.cmd
- ------------------------------------------------
- cat bin.cmd unBin.cmd > lesCommandes.linux
- ------------------------------------------------
- less ou more lesCommandes.linux
- ------------------------------------------------
- cat > entete.txt
- #...
- +<Ctrl d> pour terminer!
- ------------------------------------------------
- ls | wc -l
- ls | nl | tr "a-z" "A-Z" '[:lower:]' '[:upper:]'
- ------------------------------------------------
- ls -l
- ------------------------------------------------
- echo "Les Commandes de Linux" > lesCommandes.linux
- ------------------------------------------------
- "od" = dump = contenu hexadécimal d'un fichier
- od lesCommandes.linux | cut -C "8-" | tee dump.txt
- la commande "tee" permet de dupliquer les sorties,
- ici il écrira à la fois sur l'écran et dans un fichier txt.
- ------------------------------------------------
- find / 2> /dev/null | wc -l
- -------------------FIN--------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement