Foglio informativo del comando Cygwin

Sommario:

Foglio informativo del comando Cygwin
Foglio informativo del comando Cygwin

Video: Foglio informativo del comando Cygwin

Video: Foglio informativo del comando Cygwin
Video: Come caricare dati da un foglio di calcolo ad un altro su Google Drive 2024, Maggio
Anonim

La Cygwin Console è un popolare strumento di prompt dei comandi per Windows (chiamato anche Cygwin Bash Shell) che imita un ambiente Linux per eseguire i comandi. Questo wikiHow ti fornirà un elenco di comandi che puoi usare in Cygwin. Quando avvii inizialmente la console, vieni automaticamente inviato alla tua home directory Cygwin, che generalmente assomiglia al tuo nome utente di Windows. Poiché Cygwin utilizza un approccio Linux, la barra rovesciata () di Windows diventa invece la barra (/).

Passi

Metodo 1 di 5: tagliare e incollare contenuto da Windows a Cygwin

Cygwin Command Cheat Sheet Passaggio 1
Cygwin Command Cheat Sheet Passaggio 1

Passaggio 1. Passare al contenuto che si desidera copiare in Windows

Può essere qualsiasi applicazione o testo da una pagina web.

Cygwin Command Cheat Sheet Passaggio 2
Cygwin Command Cheat Sheet Passaggio 2

Passo 2. Evidenzia ciò che vuoi copiare e premi Ctrl+C

Puoi anche andare su Modifica > Copia dopo aver evidenziato ciò che si desidera copiare.

Cygwin Command Cheat Sheet Passaggio 3
Cygwin Command Cheat Sheet Passaggio 3

Passaggio 3. Vai alla finestra Cygwin e fai clic con il pulsante destro del mouse su un punto vuoto

La scorciatoia da tastiera Alt + Tab ti consentirà di modificare le finestre attive mentre il clic con il pulsante destro del mouse richiede la visualizzazione di un menu.

Cygwin Command Cheat Sheet Passaggio 4
Cygwin Command Cheat Sheet Passaggio 4

Passaggio 4. Passa il mouse su Modifica e seleziona Incolla

Il contenuto che hai precedentemente copiato verrà incollato nella finestra.

Metodo 2 di 5: lavorare con i file

Cygwin Command Cheat Sheet Passaggio 5
Cygwin Command Cheat Sheet Passaggio 5

Passaggio 1. cp. Questo creerà una copia di un file.

Cygwin Command Cheat Sheet Passaggio 6
Cygwin Command Cheat Sheet Passaggio 6

Passaggio 2. cp -R. Questo codice crea una copia di una directory.

Cygwin Command Cheat Sheet Passaggio 7
Cygwin Command Cheat Sheet Passaggio 7

Passaggio 3. mv. Questo sposta o rinomina un file.

Cygwin Command Cheat Sheet Passaggio 8
Cygwin Command Cheat Sheet Passaggio 8

Passaggio 4. rm. Questo elimina un file.

Metodo 3 di 5: lavorare con le directory

Cygwin Command Cheat Sheet Passaggio 9
Cygwin Command Cheat Sheet Passaggio 9

Passaggio 1. cd. Cambierà la directory in cui ti trovi attualmente.

Cygwin Command Cheat Sheet Passaggio 10
Cygwin Command Cheat Sheet Passaggio 10

Passaggio 2. ls. Elenca i file nella directory corrente.

Cygwin Command Cheat Sheet Passaggio 11
Cygwin Command Cheat Sheet Passaggio 11

Passaggio 3. ls -l. Elenca tutti i file nella directory corrente e i loro attributi.

Cygwin Command Cheat Sheet Passaggio 12
Cygwin Command Cheat Sheet Passaggio 12

Passaggio 4. mkdir. Questo crea una nuova directory.

Cygwin Command Cheat Sheet Passaggio 13
Cygwin Command Cheat Sheet Passaggio 13

Passaggio 5. pwd. Questo ti dice in quale directory ti trovi.

Metodo 4 di 5: Archiviazione o estrazione di file e directory

Cygwin Command Cheat Sheet Passaggio 14
Cygwin Command Cheat Sheet Passaggio 14

Passaggio 1. tar -zcvf # crea un archivio tar gzippato di. Scegli uno di z, c, v, f per eseguire un comando.

  • -z - filtra l'archivio tramite gzip
  • -c - crea un nuovo archivio
  • -v - elenca dettagliatamente i file elaborati
  • -f - usa il file di archivio
Cygwin Command Cheat Sheet Passaggio 15
Cygwin Command Cheat Sheet Passaggio 15

Passaggio 2. tar -xvzf # estrae tarred, gzippato nella directory corrente. Scegli uno di x, v, z, f per eseguire un comando.

  • -x - estrae i file da un archivio
  • -v - elenca dettagliatamente i file elaborati
  • -z - filtra l'archivio tramite gzip
  • -f - usa il file di archivio

Metodo 5 di 5: lavorare con i permessi dei file

Cygwin Command Cheat Sheet Passaggio 16
Cygwin Command Cheat Sheet Passaggio 16

Passaggio 1. chmod u+x. Scegli uno di u+x per eseguire un comando.

  • -u utente
  • -+ aggiunge i permessi
  • -x diritti eseguibili

Consigliato: