morlift.blogg.se

Go back in command prompt
Go back in command prompt





go back in command prompt

So, in your user directory, say you have a folder named Documents. To move around, we need to use the Change Directory command: cd Ok, now we can see where were at and the contents of the directory we are currently in. Tip: To view all available switch options that can be used, type dir /? at the prompt.

  • To sort by date and time (oldest first) use: dir /OD.
  • To sort by size (smallest first) use: dir /OS.
  • To sort by name alphabetically use:Â dir /ON.
  • To sort, you need to use the switch /O (followed by how you want to sort) with the dir command. The dir command has many other options that you can use such as, sorting the contents of a directory alphabetically, by size, type, date, etc. To view the contents of the directory, simply use the Directory command by typing dir at the prompt and press Enter. Once the command prompt opens, take notice of the current direction location, which is your user directory.īefore you can navigate around, you need to be able to see what's inside the current directory. First, open up a command prompt by typing cmdin the Search bar on Windows 10, or clicking on Start \Run… and enter cmd in the run box on previous versions of Windows.







    Go back in command prompt