There are a lot of Windows commands that not exist in MS DOS or have other switches to attach. Example the color command not exist in DOS. But we can make a new color command for DOS text mode using the debug command.
Hi Richard - Love your videos. On this one, please issue the command with a space after the command. I know, not needed in Windows command line but needed in Linux command line.
@@13Cubed When you typed a command like cd\, there was no space after the command. Windows doesn't require the space so the command worked but Linux requires a space. For example, cd/ won't work in Linux but cd / will work. IMHO, students should get into the habit of including a space after the command before the switches/options are typed.
@15:11 -- I am not fond of the way Windows (or DOS, prior to Windows) functions with the "dir" command's /p option. I prefer the Linux "less" command. Many years ago, I downloaded "less.exe" for DOS, and it works today, allowing me to have fine control over the output of dir/s (or any command prompt commands). Of course, you have to pipe the output to less. Although that is different than simply adding /p, the piping to less is also simple. And you can have "less" search for any string, place markers in the output, and on and on. "less" is great. @18:56 -- That tab feature is excellent. I prefer it to the way Linux handles the the tab key. Tab will match wildcards, too. @27:14 -- md test test2 ...would create both of them in one shot. I have Windows set the following variable: dircmd=/o I find the output from "dir" to be more human readable with /o, and with that variable set, I do not have to type /o. I wish there was a "touch" command, as there is in Linux. Is there a simple way to create a zero byte file, or to touch an existing file to change its last modified date, while leaving everything else about the file unmodified? Excellent video! Keep them coming.
Agree with you on less! Use it all the time in WSL 2. For a 0 byte file, I suppose "copy con ", then immediately and would be one way to quickly create a 0 byte file similar to touch.
There are a lot of Windows commands that not exist in MS DOS or have other switches to attach. Example the color command not exist in DOS. But we can make a new color command for DOS text mode using the debug command.
Some handy wee tricks in there, thank you.
“Back to the Future” “Nobody calls me, terminal!” 😂
Hi Richard - Love your videos. On this one, please issue the command with a space after the command. I know, not needed in Windows command line but needed in Linux command line.
Hi, thank you, but not sure what you mean regarding the space after the command?
@@13Cubed When you typed a command like cd\, there was no space after the command. Windows doesn't require the space so the command worked but Linux requires a space. For example, cd/ won't work in Linux but cd / will work. IMHO, students should get into the habit of including a space after the command before the switches/options are typed.
@@alanharper5087 Ahhh ok - yes, makes sense
@15:11 -- I am not fond of the way Windows (or DOS, prior to Windows) functions with the "dir" command's /p option.
I prefer the Linux "less" command.
Many years ago, I downloaded "less.exe" for DOS, and it works today, allowing me to have fine control over the output of dir/s (or any command prompt commands). Of course, you have to pipe the output to less. Although that is different than simply adding /p, the piping to less is also simple. And you can have "less" search for any string, place markers in the output, and on and on. "less" is great.
@18:56 -- That tab feature is excellent. I prefer it to the way Linux handles the the tab key.
Tab will match wildcards, too.
@27:14 -- md test test2
...would create both of them in one shot.
I have Windows set the following variable:
dircmd=/o
I find the output from "dir" to be more human readable with /o, and with that variable set, I do not have to type /o.
I wish there was a "touch" command, as there is in Linux.
Is there a simple way to create a zero byte file, or to touch an existing file to change its last modified date, while leaving everything else about the file unmodified?
Excellent video! Keep them coming.
Agree with you on less! Use it all the time in WSL 2.
For a 0 byte file, I suppose "copy con ", then immediately and would be one way to quickly create a 0 byte file similar to touch.
The DOS command that i use at most is DEBUG for the 16 bit real address mode of the CPU. It needs an emulator like DosBox with 64 bit CPU system.
WHAT YEAR IS IT!?!
1991 of course!