8 comandi del prompt da imparare assolutamente


Ormai ve lo abbiamo detto in tutte le salse: ci sono cose che è più semplice fare dal prompt dei comandi che dall’interfaccia grafica di Windows (o di qualsiasi altro sistema operativo). Per dimostrarvelo ancora una volta, quest’oggi abbiamo deciso di girarvi un’interessante serie di 8 comandi del prompt da imparare assolutamente postata dal sito MakeUseOf.

Si tratta di una serie di comandi adatti a varie finalità che permettono di conoscere più a fondo il prompt, scoprirne utilità inaspettate (forse nascoste) e divertirsi un po’ dalla linea di comando, che non fa mai male. Anche se non siete ancora dei veri geek, non potete non provarli!

Assoc: scoprire le associazioni dei file

Volete scoprire a quale programma è associato un determinato tipo di file sul vostro sistema? Aprite il prompt e digitate il seguente comando per ottenere la risposta:

assoc .[estensione del file]
esempio: “assoc .zip” per conoscere a quale programma sono associati i file in formato zip.


Tree: visualizzare la struttura delle cartelle ad albero

Con il classico comando “dir” si può avere l’elenco completo delle cartelle e dei file presenti in una directory, lo sanno tutti. Quello che non tutti sanno è che esiste un comando per ottenere uno schema completo di file e directory organizzati in una struttura ad albero sotto forma di file di testo txt. Ecco come sfruttarlo:

  • Recarsi nella directory di cui si vuole ottenere la struttura ad albero (es. CD C:\Cartella);
  • Dare il comando tree > un nome qualsiasi.txt.

Fc: comparazione file

Avete due file di testo (es. due liste) molto lunghi e volete scoprire velocemente quali differenze ci sono fra loro? Aprite il prompt e digitate:

fc “file uno” “file due”
esempio: fc “C:\Users\Andrea Guida\Dropbox\lista1.txt” “C:\Users\Andrea Guida\Dropbox\lista2.txt”

Find: effettuare ricerche dal prompt dei comandi

Se non volete utilizzare la barra di ricerca veloce di Explorer, ecco un trucchetto per effettuare ricerche dal prompt dei comandi (dovete sapere il nome esatto del file da cercare):

dir [lettera unità in cui cercare]:\ /s /b | find “file da cercare”
esempio: dir c:\ /s /b | find “documento.txt” per cercare un file chiamato “documento.txt” in una delle cartelle ospitate sul drive “C:”

Tasklist: il task manager nel prompt

Perché aprire il task manager quando si può vedere l’elenco dei processi attivi direttamente nel prompt dei comandi? Basta digitare:

tasklist

E se ci sono processi da fermare, basta “killarli” digitando:

taskkill [nome del processo da fermare]
esempio: taskkill explorer.exe per chiudere il processo “explorer.exe”

SFC: verificare l’integrità dei file di sistema

Avete il sospetto che il vostro sistema possa essere stato infettato da un virus? Provate a controllare l’integrità dei file di sistema con:

sfc /scannow

E per controllare singoli file:

sfc /VERIFYFILE=”file da controllare”
esempio: sfc /VERIFYFILE=”c:\windows\system32\kernel32.dll” per esaminare il file “kernel32.dll”

AT: pianificare operazioni

Anche se leggermente complicato da comprendere (almeno all’inizio), il comando “AT” è uno dei più utili e flessibili. Permette, infatti, di pianificare qualsiasi tipo di operazione senza passare per l’utilità di pianificazione di Windows.

Per scoprire tutte le sue variabili, digitate AT /?
Esempio: AT 00:05 cmd /c move c:\temp\*.* c:\archive per copiare i file contenuti nella cartella “c:\temp” in “c:\archive” alle 00.05.

Ipconfig: per sapere tutto sulle reti

Terminiamo con un grande classico: il comando per sapere di tutto e di più sulle reti (anche in questo caso, per conoscere tutte le variabili utilizzate il comando “/?”).

ipconfig

Voi conoscete altri comandi del prompt da imparare assolutamente? Se sì, non esitate a consigliarcene quanti ne volete nei commenti.

[Photo Credits | Joshua Davis]

234 commenti su “8 comandi del prompt da imparare assolutamente”

  1. stavo per aprire il dos e scrivere sfc /scannow per controllare se ci fossero virus, quando mi sono ricordato che sono su linux e penso che resterò qui per sempre

    Rispondi
  2. Un comando che uso spesso e che trovo molto utile è:
    shutdown -s -t1800
    per chiudere il computer dopo mezz’ora (1800 secondi; dopo la t si mette una cifra che indica il numero di secondi dopo il quale il pc si spegnerà) o nella variante:
    shutdown -h -t1800
    per ibernarlo dopo, in questo caso, 1800 secondi.

    Rispondi
  3. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your weblog? My website is in the very same area of interest as yours and my users would certainly benefit from some of the information you present here. Please let me know if this okay with you. Thank you!

    Rispondi
  4. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your weblog: %BLOGURL%. I’ll aslo be sure to give you the appropriate anchor text hyperlink using your blog title: %BLOGTITLE%. Be sure to let me know if this is okay with you. Thankyou

    Rispondi
  5. Doh! I was domain shopping at namecheap.com and went to type in the domain name: %BLOGURL% and guess who already acquired it? You did! haha j/k. I was about to purchase this domain name but realized it had been taken so I decided I’d come check it out. Great blog!

    Rispondi
  6. A further issue is that video games are usually serious in nature with the major focus on studying rather than leisure. Although, we have an entertainment facet to keep the kids engaged, just about every game is usually designed to improve a specific skill set or program, such as instructional math or science. Thanks for your post.

    Rispondi
  7. Fantastic site you have here but I was curious if you knew of any discussion boards that cover the same topics discussed here? I’d really love to be a part of community where I can get advice from other experienced people that share the same interest. If you have any suggestions, please let me know. Cheers!|

    Rispondi
  8. I would state. That is the first time I frequented your website page and to this point? I surprised with the analysis you made to create this actual submit amazing. Wonderful task!|

    Rispondi
  9. Boozer en moyenne 13,7 points et 8,3 reboundsper jeu avec les Bulls la saison dernière, mais a souvent été remplacé dans la quatrième période prétendument à cause de son manque d’effort de la fin de la défensive de l’étage.

    Rispondi
  10. Aucune équipe ne possède le moindre espoir de faire les séries éliminatoires, mais, nous devrions toujours obtenir un match serré entre ces deux équipes.

    Rispondi
  11. I was just looking for this information for some time. After six hours of continuous Googleing, finally I got it in your website. I wonder what’s the lack of Google strategy that do not rank this type of informative sites in top of the list. Generally the top sites are full of garbage.

    Rispondi
  12. Hi there to every body, it’s my first visit of this webpage;
    this weblog carries amazing and really fine material in support of
    readers.

    Rispondi
  13. It’s the best time to make some plans for the future and it
    is time to be happy. I’ve read this post and if I
    could I want to suggest you few interesting things
    or advice. Maybe you could write next articles referring to this article.
    I desire to read even more things about it!

    Rispondi
  14. Hey there! Quick question that’s completesly off topic.
    Do yyou know how to male your site mobile friendly?

    My blog looks weird when browsing from my iphone4. I’m trying to find a theme or pluhgin that
    might be able to correct this issue. If you have anny suggestions,
    pleasse share. Thank you!

    Rispondi
  15. We like to honor quite a few other world-wide-web web sites on the web, even though they aren�t linked to us, by linking to them. Under are some webpages really worth checking out.

    Rispondi
  16. We prefer to honor quite a few other internet web pages on the web, even though they aren�t linked to us, by linking to them. Under are some webpages really worth checking out.

    Rispondi
  17. Ahaa, its pleasant discussion on the topic of this article at this place at this website, I have read all that, so at this time me also commenting at this place.
    0mniartist asmr

    Rispondi
  18. It is tһe best time to make some plans for the future and it’s time
    to be happy. I haѵe reaɗ this post and if I cօuld I want to sսggest you few intereѕting
    things or tips. Maybe you cоuld write next ɑrticles referring
    to thіs articⅼe. I desirе to read even more things aЬout it!

    Rispondi
  19. We prefer to honor a lot of other world-wide-web websites around the web, even when they aren�t linked to us, by linking to them. Under are some webpages really worth checking out.

    Rispondi
  20. We prefer to honor numerous other web web pages around the web, even though they aren�t linked to us, by linking to them. Under are some webpages worth checking out.

    Rispondi
  21. We like to honor lots of other online websites around the internet, even when they aren�t linked to us, by linking to them. Under are some webpages worth checking out.

    Rispondi
  22. We prefer to honor lots of other world wide web websites on the net, even if they aren�t linked to us, by linking to them. Beneath are some webpages really worth checking out.

    Rispondi
  23. It’s a pity you don’t have a donate button! I’d most certainly donate
    to this outstanding blog! I suppose for now i’ll settle for
    book-marking and adding your RSS feed to my Google account.

    I look forward to brand new updates and will talk about this website with my Facebook group.

    Talk soon!

    Rispondi
  24. Hi there! This is my first comment here so I just wanted to give a quick shout out and say I truly enjoy reading your blog posts.
    Can you recommend any other blogs/websites/forums that go over the same subjects?
    Thank you so much!

    Rispondi
  25. We prefer to honor a lot of other world wide web sites around the internet, even if they aren�t linked to us, by linking to them. Beneath are some webpages really worth checking out.

    Rispondi

Lascia un commento