Study

Terminal Commands

  •   0%
  •  0     0     0

  • MD/mkdir and RD/rmdir
    Make directory (mkdir) and remove directory (rmdir).
  • cls
    Clears screen in Windows command prompt.
  • dir
    Lists files and directories.
  • hostname
    View the name of the device.
  • What copies all files and folders and directory trees in a working directoy?
    xcopy /s then you can put m:\name of new folder/directory
  • How can you shut down the system? Or restart?
    shutdown /s /t nn (/t to specify how many seconds). shutdown /r to restart
  • copy + (/v or /y)
    /v verifies that file has copied correctly. /y will skip 'are you sure' prompts.
  • cd or chdir
    Change working directory. Backslash \ to specify folder name.
  • help (something eg. dir) or (command) /?
    Gives you extra info about that command. Close by typing 'exit'.
  • What gives you all the info on your current version of Windows?
    winver
  • cd ..
    Go to the folder above the current name. Go back basically.
  • How do you create an empty file?
    type nul > myfile.txt
  • diskpart
    Gives shit loads of info about all the disk partitions. help > list > list disk or list volume (quite good).
  • How do you install file system on a drive partition?
    format
  • What is a better copy than xcopy?
    robocopy