These Cool Command Prompt Tricks Will Amaze You!
Summary
TLDRThis video offers a collection of Command Prompt tips and tricks, including opening it in specific folders, changing its color and title, and customizing the prompt. It also teaches how to watch Star Wars in Command Prompt, hide folders, copy command outputs to the clipboard, view command history, and create folders with reserved names like 'con'. Additionally, it shows how to list installed programs using 'wmic'. These hacks are aimed at impressing friends and enhancing one's Command Prompt experience.
Takeaways
- 💻 Use the address bar to open Command Prompt in any folder by typing 'command prompt' and pressing 'enter'.
- 🎨 Change the color of the Command Prompt by using 'color' command followed by a color code.
- 👨💻 Customize the Command Prompt appearance by changing the prompt string with 'prompt' command.
- 📝 Quickly change the title bar of the Command Prompt window with the 'title' command.
- 🎥 Watch a text-based version of Star Wars by typing 'telnet towel.blinkenlights.nl' in Command Prompt.
- 🔒 Hide folders from view using 'Attrib +h +s +r' command to prevent them from being easily discovered.
- 📋 Copy command outputs to the clipboard using the pipe ' | ' and 'clip' command.
- 🔍 Use the F7 key to view the command history in Command Prompt.
- 🚫 Create folders with reserved names like 'con' and 'aux' by using 'md con\' or 'md aux\' in Command Prompt.
- 📋 View a list of all installed programs on your computer with 'wmic product get name' command.
Q & A
How can you open Command Prompt in a specific folder?
-You can open Command Prompt in a specific folder by typing 'command prompt' in the address bar of that folder and pressing 'enter'.
What is one way to change the color of the Command Prompt?
-You can change the color of the Command Prompt by using the 'color' command followed by a color code, such as 'color 05' for light cyan or 'color 09' for light red.
How can you customize the Command Prompt's appearance to resemble a hacker's interface?
-You can customize the Command Prompt's appearance by changing the color and prompt string. For example, using 'color 02' for green and 'prompt harry@hacker$G' to change the prompt to 'harry@hacker'.
What command can you use to change the title bar text of the Command Prompt window?
-You can change the title bar text of the Command Prompt window using the 'title' command followed by your desired text, like 'title Hacking the System'.
How can you watch Star Wars in the Command Prompt?
-You can watch Star Wars in the Command Prompt by typing 'telnet towel.blinkenlights.nl' and pressing 'enter'. This will open a text-based version of Star Wars.
What command can you use to hide a folder using Command Prompt?
-You can hide a folder using the 'Attrib' command with the '+h +s +r' flags followed by the folder name, like 'Attrib +h +s +r harry' to hide a folder named 'harry'.
How can you copy the output of a command to the clipboard in Command Prompt?
-You can copy the output of a command to the clipboard by using the 'clip' command with a pipe, such as 'dir | clip' to copy the output of the 'dir' command.
What is the function of the F7 key in Command Prompt?
-The F7 key in Command Prompt displays a list of commands that you have previously typed in the current session, allowing you to view and reuse your command history.
How can you create a folder with a reserved name like 'con' in Windows?
-You can create a folder with a reserved name like 'con' by using the 'md' command followed by the folder name and a backslash, such as 'md con\'.
What command can you use to list all installed programs on your computer via Command Prompt?
-You can list all installed programs on your computer by using the 'wmic product get name' command, which will display the names of all installed programs.
What is required to watch the Star Wars text-based movie in Command Prompt?
-To watch the Star Wars text-based movie in Command Prompt, you need to enable the 'telnet' feature in your computer's 'Turn Windows features on and off' settings.
Outlines
💻 Command Prompt Tips and Tricks
The speaker begins by expressing their fondness for Command Prompt and shares various tips and tricks. They demonstrate how to open Command Prompt in any folder by typing 'command prompt' in the address bar. The speaker then shows how to change the color of the Command Prompt using color codes such as 'color 05' for different color schemes. They also explain how to customize the prompt string to something like 'harry@hacker$G' to give it a hacker-like feel. Additionally, they discuss changing the title bar of the Command Prompt window to something fun like 'Hacking the System'. The speaker also introduces a unique way to watch Star Wars within Command Prompt by using the 'telnet towel.blinkenlights.nl' command. Lastly, they explain how to hide folders using the 'Attrib' command to prevent them from being easily visible.
🔒 Hiding Folders and Copying Command Outputs
In this segment, the speaker shows how to hide folders using the 'Attrib' command with options like '+h' to make them hidden and '+s' to make them system files, thus not easily viewable even when hidden files are shown. They also demonstrate how to unhide these folders by using the '-' option with the 'Attrib' command. The speaker then moves on to explain how to copy the output of any command to the clipboard using the 'clip' command with a pipe. They provide an example of copying the output of the 'dir' command. Additionally, they mention the use of the F7 key to view the command history, which is a lesser-known feature. The speaker also talks about creating folders with reserved names like 'con' and 'aux' by using the 'md' command followed by the folder name and a backslash.
📚 Learning Resources and Final Thoughts
The speaker concludes by encouraging viewers to show off their newfound Command Prompt skills to friends and use them to impress others. They recommend checking out a playlist called 'Coding discussion with Harry' for more coding-related content and advice. The speaker also invites viewers to explore various programming courses and playlists they have created. They remind viewers to enable the 'telnet' feature to watch the Star Wars movie in Command Prompt and express their hope that the shared tips and tricks were appreciated. The video ends with a thank you note and a promise to see the audience in the next video.
Mindmap
Keywords
💡Command Prompt
💡Color Coding
💡Prompt Customization
💡Title Modification
💡Telnet
💡Folder Hiding
💡Clipboard
💡Command History
💡Reserved Names
💡WMIC
Highlights
Opening Command Prompt in any folder by typing 'command prompt' in the address bar and pressing 'enter'.
Changing the color of the Command Prompt using color codes like 'color 05' or 'color 09'.
Using the 'help color' command to see a list of available colors for the Command Prompt.
Customizing the Command Prompt appearance with a green color for a hacker-like feel.
Changing the Command Prompt's directory name display to a custom string like 'harry@hacker'.
Using the 'help prompt' command to learn how to customize the prompt command.
Changing the title bar of the Command Prompt window to 'Hacking the System' for a fun effect.
Watching Star Wars in the Command Prompt by typing 'telnet towel.blinkenlights.nl'.
Hiding folders using the 'Attrib + h + s + r foldername' command to prevent them from being shown even in hidden files view.
Unhiding folders with the 'Attrib - h - s - r foldername' command after hiding them.
Copying command outputs to the clipboard using the pipe ' | ' and 'clip' command.
Using the F7 key to view the command history in the Command Prompt.
Creating folders with reserved names like 'con' and 'aux' using the 'md con\' or 'md aux\' command.
Listing all installed programs on the computer using the 'wmic product get name' command.
Enabling the 'telnet' feature to watch the Star Wars movie in the Command Prompt.
The importance of checking out the 'Coding discussion with Harry' playlist for programming knowledge.
The video offers various Command Prompt tips and tricks to impress and educate friends.
Transcripts
Guys, many of you must have used Command Prompt
and I also use Command Prompt sometimes even today
because there are some things in it that I liked
and I already know some tips & techniques of command prompt
which I will share with you today
so if you guys want to be a little fancy
or want to learn something new about Command Prompt
this is the video for you and lets get started
[Music]
so here I tell you the first tip of the command prompt that
if you want to open Command Prompt in any one folder
then you go the address bar and type "command prompt" and press "enter"
and here you will get the command prompt opened
it has many advantages like
if you ever want to open command prompt in any folder, then you can open it
and here I will tell you how we can change the color of the command prompt
so if you type here "help color"
here it has given me many colors like black, blue, green, aqua red, puple, yellow, white
there are many colors and I can change these colors by using these codes
press any key to continue
if I write here "color 05"
so as you can see here that color has changed
if I write here 09 then color has changed
if I write here 05 then color has changed again
if I write here 03 then this color has come and if I write here 02.. so you got the point
I can also use green color command prompt here
and by the way this is my favourite among all
it gives some sort of feeling of hacker so I use this command prompt a lot
and when I am doing this, many people come to me and ask how I did it
so right now there are many more things that I want to share with you
this was the first thing
to change the color of the command prompt
the next thing that I want to share with you is
how you can change this prompt?
yes I know the directory's name is being written here
and you guys can do a lot of things with the name of this directory
for example if you want to know where I am
this is giving you a very good sign
but if you guys want to change it in such a way like "harry@hacker" so how do you do this
so if you write "help prompt"
then you will get a "help" to use the prompt command
and you can use this
you can use all the signs like greater than, less than etc
using these special quotes
now you guys see what will I do here
I will write here "prompt harry@hacker$G"
and you can see that my prompt has changed to "harry@hacker"
and this gives a feeling of hacker
anytime if you want such a prompt that
you can enter something custom of your own
so this thing proves to be very helpful there
now the next command prompt tip is that you guys can change the title
and I use this trick a lot
this title doesn't look good: C Windows System32 cmd
I will change this title here
you guys see how I'll change it
I will write here "title Hacking the System"
and you can see here that "Hacking the System" was written above
it's fun seeing such titles
and if anyone sees it, he says Oh! Man: Hacking the System, hacker@harry
meaning a person who has not use computer that much in his life
and does not have much knowledge of hacking and coding
he will think that you have become a hacker and you are hacking a computer
so I hope that you guys liked it
now what I am going to tell is the most dangerous hack
you guys can watch star wars in command prompt
you won't believe it, you guys will say: "wait, What! Star Wars"
and that too in the command prompt
how does it even make sense?
so here I'll tell you how you will watch Star Wars
you just have to write here "telnet towel.blinkenlights.nl"
and that's all you have to do
you guys can watch that star wars movie has started here
the command prompt version of star wars has started
many of you would think that Is it real?
Will I be shown a movie here?
so you guys just watch here, here you will be shown the movie
I will wait a bit for it to move forward
and look here guys, the full movie is being shown to you
this is amazing!
who coded it in the command prompt?
and made it Star Wars
and it was fun to see this
so this was our star wars movie
the next trick is how you guys can hide folders with the help of command prompt
if you want to hide any folder with the help of command prompt
then first of all, I'll create a folder here
I'll click on "new folder" and create a folder with name "Harry"
you can hide it by going to properties and selecting hidden
but the problem is whenever you do this and when you go to settings and then to folder options
then what will happen that if you go on Show Hidden Files and Folders, then it will be visible
but if you want that it should not visible even after that
then you can hide it like this
I'll quickly open the cmd over here
and after opening cmd I'll write "Attrib + h + s + r harry"
and as soon as I do this and refresh it
and look "harry" folder has disappeared now
don't worry it's here, if you want to see it again
so you can show it again like this
where you have written +
you have to type - there in the command and I'll press enter and refresh it
so "harry" is written here that means my folder is back
so in this way you can hide a folder
and no one else can find if these files are present in your system
there will be many people here who want to hide their folders
so don't put your folders in system 32
now you can hide your files like this
now the next trick is very amazing
because with its help you can copy the output of any command to the clip board
for example if you run the DIR command
or let us say you have run IB config
and you want this output
i.e. that big output which is shown to me
you want this output to be copied at clip board i.e, simply copying it
so you guys put a pipe here and write "clip"
if you write clip with a pipe then it is now copied to the clip board
I'll show you the proof of that if I create a new text document
and right click, paste it, then the output of this command has been copied here
if I write "dir | clip" here then you will see that..
I'll paste it as "ctrl a and ctrl v"
so it has copied the dir's command output to my clip board
in this way I can copy, paste the outputs of command in my terminal
this is a very amazing trick
if you did not know this trick then it is going to be very useful for you
the next trick is that you can use the F7 key to view your history
so these are all the commands that I have run now
I have run attrib, dir, IB config commands in this particular session
you must be aware that you can see your command history by using the arrow key only
and to auto complete any command
like if you write "mkdir" and press tab after writing "h" then "harry" will auto complete
all these things you know that you can use arrow keys
or you can use the "home" key to bring your cursor to the starting point
and can use "end" key to bring it to the end
you can use "ctrl + backspace" to delete a word
you know all these things very well
but maybe you don't know F7
F7 is a very useful shortcut
if you press F7 key in your keyboard then you can see the commands like that
I hope this was helpful
the next command prompt trick is that
how you can create a folder that is not allowed in windows
what does that mean?
I'll tell you that
all of you guys try to create a folder after watching this video or while watching this video whose name is "con"
and see what is written here: "this specified device name is invalid"
what does it mean?
this means that you cannot create a folder with this name inside windows
you guys have to use a trick to create it
there's a reason why I can't create it because windows has reserved some names
you can't create a folder with name "aux" as well
I'll show to you that you can't create it with name "aux" or "con"
but you can create it by using this trick
you guys can challenge your friends to show them by making a folder named aux,
I'll show by making it
how do you guys make it?
you will go to the cmd and fire the command that I am telling you
you will write: "md aux\"
and as soon as you do this work, you have created a folder named "aux"
or you can also do like this: "md con\"
make sure to use names like "con" and "aux" which are not allowed in windows
windows has reserved these names
and windows does not allow to create folders with these names
so you can also make folders of these reserved names if you use this trick
last but not the least, I would like to tell you one more hack
infact, I want to tell you a trick
using which you can see all the installed programs in your command prompt
infact, you can see them in your computer that which programs are installed
fot this you have to write: "wmic product get name"
once you fire this command you will get the list of all programs
which are installed in your computer
this takes some time
it's taking a little while
but it will list all the programs that are installed in your windows and show it to you
as you can see, it has shown all the programs here which are installed in my computer
now when many people will go to see the Star Wars movie
I am telling it here as I forgot to tell at that time
when you will go to see the star wars movie
then you have to enable the "telnet" feature
so you can go to your computer
you can click on start, then go to turn windows feature on and off
you can check telnet here
like you can see that I have checked "telnet client"
you have to check it and then press ok
only then you will be able to use telnet and see the star wars movie
so these were some tips and techniques of command prompt
and I hope you have liked them
you can flaunt with your friends
and can show them that you also know a little bit about command prompt
by changing color, prompt or title
you can show them or impress them
if you have any doubts related to coding
so I have made a playlist here with the name "Coding discussion with Harry"
you guys must go and check it out
I have also made many programming courses which you can check out
by going to various playlist
I have made many playlists for you guys
I have made all these courses for you
but you guys must check out this playlist of "Coding discussion with Harry"
In this, I have answered many of your common doubts
I want everyone to go to this playlist after this video
and see what are those things that you should take care of
if you want to become a successful programmer
I have covered different topics
and all those topics are covered which are very commonly asked questions
that's all in this video for now
thank you so much guys for watching this video
and I will see you next time
[Music]
[Music]
تصفح المزيد من مقاطع الفيديو ذات الصلة
EntityFramework Core Migrations | ASP.NET CORE | CLI Migrations | Package Manager Console Migratio
Selecting Objects
Sublime Text Goto Anything (Tutorial #3)
Windows Latest CMD Hacks & Tricks
✅How To Fix Files Become 0 Bytes Using Commands For Free | How to Restore Zero Byte Files in Windows
Network Troubleshooting using PING, TRACERT, IPCONFIG, NSLOOKUP COMMANDS
5.0 / 5 (0 votes)