module 1, day 3: windows make directories in gui and cli) through windows moving a renaming files, directories Flashcards
How to make a new directory (folder) in the GUI Windows?
right click, new, folder
making a folder in the CLI Windows?
mkdir (name)
making a folder that you want to have spaces instead of underscores with the cli, but just adding spaces between the letters rather than specifying that you are not adding a parameter, will lead to what error? PowerShell
“a positional parameter cannot be found that accepts argument” The system will read the words as parameters.
How do you specify that a folder name with spaces is one single thing? PowerShell
Surround the name with quotes,
mkdir ‘my cool folder’
Use back ticks, escaping characters,
mkdir my cool
folder`, with the backticks telling the shell the space after the back tick is part of our filename.
what do escape characters mean?
the next character after the back tick, or other relevant escape character, should be treated literally
what command is used to make a new directory in Bash?
mkdir
how do you escape characters in Bash?
\
how can you encompass a file name you want to put spaces in in Bash?
quotes around the file name
what happens when you enter a command in PowerShell?
it gets saved in memory and added to a file.
Where are past recently used commands in PowerShell stored?
history
What does the simple use of history do in PowerShell?
displays a list of commands you entered earlier
How do you scroll through commands you see with history? PowerShell
up or down keys on the keyboard
what does using up and down keys on the PowerShell do?
rotates through the last commands used, which makes it easier to repeat commands and make small modifications to them.
What is ctrl-r in PowerShell?
the history shortcut. it’ll bring you down to another line, and then you can search for commands in history and it will show you matches. typing enter will input the command.
what is an alternate command to ctrl r in powershell’s older versions/
hash, followed by some part of your previous command, and then use tab completion to cycle through items in history.
How do you use the clear command in PowerShell?
to clear the output on your screen, input into the command line.
what is the history command in linux?
history
What can I use on the command line to cycle through previous commands in linux?
up and down arrow keys
what searches history in linux, alternative to history command?
ctrl r
what is the linux clear command?
clear