![]() As you can see from my examples above, my user dir is C:\Users\a - I used to always have 'aplocher' or 'adamp' and when I changed to a single letter, it was magical. Step 1: Press the Windows key on your keyboard, type Command Prompt, and click open. This is less likely to be acceptable on a corporate machine, at least on your home PC, to save additional keystrokes, it's not a bad idea to make your %USERPROFILE% dir a simple name. If you have the %'s around it, then it's going to utilize the variable - otherwise it will treat ~ as a command. ![]() It can also be injected into most paths and doesn't limit you to simply cd'ing home.Īlso, you can implement both methods simultaneously. Obviously, this shortens the number of keystrokes to get home (even compared to Linux), but is less robust since you can't really use it as part of another path or do much with it beyond just cd'ing home.Īnother option, if you want a more robust option is to set a var: set ~="%USERPROFILE%"īut using this would be used like: E:\>cd /d %~% This will enable you to simply type ~ and have it chdir to your homedir. Option 1: Set ~ to be a command alias with doskey doskey ~=cd /d %USERPROFILE% You can’t do that with the Windows command-prompt itself it only supports a single timestamp column. You can include only props you need: ls fl -prop name, creationTime,lastAccessTime,LastWriteTime. if you can use Powershell, ls fl ( powershell lsfl from cmd) will show those (among others). If you're referring to bin, like in Unix/Linux, not quite. Unfortunately, I'm unaware of a perfect solution but there are a couple of hacky options: Besides, the title clearly says on windows. Using just the dir command will show information about the current directory and the files and sub-folders it contains one level down. The bin directory in Unix-like systems contains the programs of the system and the installed ones, but in Windows, system programs are located in C:\Windows\System32 and installed ones are likely located in C:\Program Files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |