These Cool Command Prompt Tricks Will Amaze You!

CodeWithHarry
26 Jan 202111:30

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

00:00

💻 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.

05:06

🔒 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.

10:09

📚 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

Command Prompt is a command-line interface in Windows operating systems that allows users to interact with the computer using text-based commands. It is a powerful tool for managing files, running programs, and performing system tasks. In the video, the speaker shares various tips and tricks to enhance the functionality and appearance of the Command Prompt, such as changing its color and prompt, which are aimed at making the user experience more personalized and visually appealing.

💡Color Coding

Color coding in the context of Command Prompt refers to the ability to change the background and text colors of the command-line interface. This can help in distinguishing different types of text or making the interface more visually pleasing. The video demonstrates how to use color codes like 'color 05' to change the color scheme of the Command Prompt, which can also add a 'hacker' feel as mentioned by the speaker, enhancing the aesthetic experience for the user.

💡Prompt Customization

Prompt customization involves changing the appearance of the command prompt string that is displayed in the Command Prompt window. This can include altering the text to mimic the look of a different operating system or to include custom messages. The video explains how to use the 'prompt' command followed by a string, like 'harry@hacker$G', to change the prompt, which can make the Command Prompt look more personalized and unique.

💡Title Modification

Title modification in Command Prompt refers to changing the title of the Command Prompt window. This can be done using the 'title' command followed by the desired title text. The video shows how to change the default title to something like 'Hacking the System', which can be a fun way to customize the user interface and potentially impress or confuse those unfamiliar with the actual capabilities of the Command Prompt.

💡Telnet

Telnet is a protocol used to remotely access and manage network devices. In the video, the speaker introduces a creative use of telnet to watch a text-based version of Star Wars by connecting to 'towel.blinkenlights.nl'. This demonstrates a fun and unconventional use of Command Prompt and telnet, showing that it can be used for entertainment purposes beyond its typical system administration tasks.

💡Folder Hiding

Folder hiding is the process of making folders invisible to the user interface, either by system settings or by using command-line tools. The video explains how to use the 'Attrib' command with the '+h +s +r' flags to hide folders so that they do not appear even when hidden files and folders are set to be shown in the system settings. This can be useful for keeping certain files or folders private or for practical jokes.

💡Clipboard

The clipboard is a temporary storage area for data that has been copied or cut from a document or program. In the context of the video, the speaker shows how to use the pipe '|' symbol followed by the 'clip' command to copy the output of commands like 'dir' or 'ipconfig' to the clipboard. This can be a convenient way to save command outputs for later use without having to manually type them out.

💡Command History

Command history refers to a record of previously executed commands in a command-line interface. The video mentions the use of the F7 key to view the command history in Command Prompt, which can be a time-saving feature for users who need to recall or reuse previous commands. This is an example of how Command Prompt can be made more efficient and user-friendly through the use of keyboard shortcuts.

💡Reserved Names

Reserved names in Windows refer to certain names that cannot be used for file or folder names due to their special meaning or use by the operating system. The video discusses how to create folders with reserved names like 'con' and 'aux' by using a backslash at the end of the name, such as 'md con\'. This trick bypasses the restrictions imposed by Windows on naming conventions.

💡WMIC

WMIC stands for Windows Management Instrumentation Command-line, a powerful tool for retrieving information from and acting on Windows operating systems. The video shows how to use WMIC with the command 'wmic product get name' to list all installed programs on a computer. This demonstrates the capability of Command Prompt to interact with system components and provide detailed information about the system's configuration.

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

play00:00

Guys, many of you must have used Command Prompt

play00:02

and I also use Command Prompt sometimes even today

play00:05

because there are some things in it that I liked

play00:08

and I already know some tips & techniques of command prompt

play00:10

which I will share with you today

play00:12

so if you guys want to be a little fancy

play00:14

or want to learn something new about Command Prompt

play00:17

this is the video for you and lets get started

play00:20

[Music]

play00:22

so here I tell you the first tip of the command prompt that

play00:26

if you want to open Command Prompt in any one folder

play00:29

then you go the address bar and type "command prompt" and press "enter"

play00:33

and here you will get the command prompt opened

play00:35

it has many advantages like

play00:36

if you ever want to open command prompt in any folder, then you can open it

play00:39

and here I will tell you how we can change the color of the command prompt

play00:44

so if you type here "help color"

play00:47

here it has given me many colors like black, blue, green, aqua red, puple, yellow, white

play00:52

there are many colors and I can change these colors by using these codes

play00:56

press any key to continue

play00:58

if I write here "color 05"

play01:01

so as you can see here that color has changed

play01:02

if I write here 09 then color has changed

play01:05

if I write here 05 then color has changed again

play01:08

if I write here 03 then this color has come and if I write here 02.. so you got the point

play01:13

I can also use green color command prompt here

play01:15

and by the way this is my favourite among all

play01:17

it gives some sort of feeling of hacker so I use this command prompt a lot

play01:21

and when I am doing this, many people come to me and ask how I did it

play01:26

so right now there are many more things that I want to share with you

play01:29

this was the first thing

play01:30

to change the color of the command prompt

play01:33

the next thing that I want to share with you is

play01:35

how you can change this prompt?

play01:38

yes I know the directory's name is being written here

play01:40

and you guys can do a lot of things with the name of this directory

play01:44

for example if you want to know where I am

play01:47

this is giving you a very good sign

play01:49

but if you guys want to change it in such a way like "harry@hacker" so how do you do this

play01:54

so if you write "help prompt"

play01:56

then you will get a "help" to use the prompt command

play01:59

and you can use this

play02:01

you can use all the signs like greater than, less than etc

play02:04

using these special quotes

play02:07

now you guys see what will I do here

play02:08

I will write here "prompt harry@hacker$G"

play02:17

and you can see that my prompt has changed to "harry@hacker"

play02:20

and this gives a feeling of hacker

play02:23

anytime if you want such a prompt that

play02:25

you can enter something custom of your own

play02:28

so this thing proves to be very helpful there

play02:32

now the next command prompt tip is that you guys can change the title

play02:38

and I use this trick a lot

play02:40

this title doesn't look good: C Windows System32 cmd

play02:43

I will change this title here

play02:45

you guys see how I'll change it

play02:47

I will write here "title Hacking the System"

play02:54

and you can see here that "Hacking the System" was written above

play02:56

it's fun seeing such titles

play02:59

and if anyone sees it, he says Oh! Man: Hacking the System, hacker@harry

play03:02

meaning a person who has not use computer that much in his life

play03:05

and does not have much knowledge of hacking and coding

play03:08

he will think that you have become a hacker and you are hacking a computer

play03:12

so I hope that you guys liked it

play03:16

now what I am going to tell is the most dangerous hack

play03:20

you guys can watch star wars in command prompt

play03:22

you won't believe it, you guys will say: "wait, What! Star Wars"

play03:25

and that too in the command prompt

play03:27

how does it even make sense?

play03:28

so here I'll tell you how you will watch Star Wars

play03:32

you just have to write here "telnet towel.blinkenlights.nl"

play03:43

and that's all you have to do

play03:45

you guys can watch that star wars movie has started here

play03:48

the command prompt version of star wars has started

play03:51

many of you would think that Is it real?

play03:54

Will I be shown a movie here?

play03:56

so you guys just watch here, here you will be shown the movie

play03:58

I will wait a bit for it to move forward

play04:00

and look here guys, the full movie is being shown to you

play04:05

this is amazing!

play04:07

who coded it in the command prompt?

play04:10

and made it Star Wars

play04:12

and it was fun to see this

play04:15

so this was our star wars movie

play04:17

the next trick is how you guys can hide folders with the help of command prompt

play04:23

if you want to hide any folder with the help of command prompt

play04:27

then first of all, I'll create a folder here

play04:28

I'll click on "new folder" and create a folder with name "Harry"

play04:33

you can hide it by going to properties and selecting hidden

play04:37

but the problem is whenever you do this and when you go to settings and then to folder options

play04:43

then what will happen that if you go on Show Hidden Files and Folders, then it will be visible

play04:47

but if you want that it should not visible even after that

play04:50

then you can hide it like this

play04:52

I'll quickly open the cmd over here

play04:54

and after opening cmd I'll write "Attrib + h + s + r harry"

play05:05

and as soon as I do this and refresh it

play05:10

and look "harry" folder has disappeared now

play05:11

don't worry it's here, if you want to see it again

play05:15

so you can show it again like this

play05:19

where you have written +

play05:20

you have to type - there in the command and I'll press enter and refresh it

play05:24

so "harry" is written here that means my folder is back

play05:28

so in this way you can hide a folder

play05:30

and no one else can find if these files are present in your system

play05:34

there will be many people here who want to hide their folders

play05:37

so don't put your folders in system 32

play05:39

now you can hide your files like this

play05:43

now the next trick is very amazing

play05:45

because with its help you can copy the output of any command to the clip board

play05:51

for example if you run the DIR command

play05:54

or let us say you have run IB config

play05:58

and you want this output

play06:00

i.e. that big output which is shown to me

play06:02

you want this output to be copied at clip board i.e, simply copying it

play06:07

so you guys put a pipe here and write "clip"

play06:10

if you write clip with a pipe then it is now copied to the clip board

play06:15

I'll show you the proof of that if I create a new text document

play06:17

and right click, paste it, then the output of this command has been copied here

play06:22

if I write "dir | clip" here then you will see that..

play06:26

I'll paste it as "ctrl a and ctrl v"

play06:29

so it has copied the dir's command output to my clip board

play06:34

in this way I can copy, paste the outputs of command in my terminal

play06:40

this is a very amazing trick

play06:42

if you did not know this trick then it is going to be very useful for you

play06:47

the next trick is that you can use the F7 key to view your history

play06:54

so these are all the commands that I have run now

play06:56

I have run attrib, dir, IB config commands in this particular session

play07:01

you must be aware that you can see your command history by using the arrow key only

play07:09

and to auto complete any command

play07:13

like if you write "mkdir" and press tab after writing "h" then "harry" will auto complete

play07:18

all these things you know that you can use arrow keys

play07:20

or you can use the "home" key to bring your cursor to the starting point

play07:23

and can use "end" key to bring it to the end

play07:25

you can use "ctrl + backspace" to delete a word

play07:29

you know all these things very well

play07:30

but maybe you don't know F7

play07:32

F7 is a very useful shortcut

play07:34

if you press F7 key in your keyboard then you can see the commands like that

play07:38

I hope this was helpful

play07:40

the next command prompt trick is that

play07:44

how you can create a folder that is not allowed in windows

play07:48

what does that mean?

play07:50

I'll tell you that

play07:50

all of you guys try to create a folder after watching this video or while watching this video whose name is "con"

play07:57

and see what is written here: "this specified device name is invalid"

play08:00

what does it mean?

play08:02

this means that you cannot create a folder with this name inside windows

play08:05

you guys have to use a trick to create it

play08:09

there's a reason why I can't create it because windows has reserved some names

play08:14

you can't create a folder with name "aux" as well

play08:16

I'll show to you that you can't create it with name "aux" or "con"

play08:20

but you can create it by using this trick

play08:23

you guys can challenge your friends to show them by making a folder named aux,

play08:26

I'll show by making it

play08:27

how do you guys make it?

play08:28

you will go to the cmd and fire the command that I am telling you

play08:33

you will write: "md aux\"

play08:37

and as soon as you do this work, you have created a folder named "aux"

play08:41

or you can also do like this: "md con\"

play08:44

make sure to use names like "con" and "aux" which are not allowed in windows

play08:49

windows has reserved these names

play08:51

and windows does not allow to create folders with these names

play08:56

so you can also make folders of these reserved names if you use this trick

play09:02

last but not the least, I would like to tell you one more hack

play09:05

infact, I want to tell you a trick

play09:07

using which you can see all the installed programs in your command prompt

play09:11

infact, you can see them in your computer that which programs are installed

play09:16

fot this you have to write: "wmic product get name"

play09:21

once you fire this command you will get the list of all programs

play09:26

which are installed in your computer

play09:27

this takes some time

play09:28

it's taking a little while

play09:30

but it will list all the programs that are installed in your windows and show it to you

play09:36

as you can see, it has shown all the programs here which are installed in my computer

play09:41

now when many people will go to see the Star Wars movie

play09:43

I am telling it here as I forgot to tell at that time

play09:45

when you will go to see the star wars movie

play09:47

then you have to enable the "telnet" feature

play09:49

so you can go to your computer

play09:51

you can click on start, then go to turn windows feature on and off

play09:55

you can check telnet here

play09:57

like you can see that I have checked "telnet client"

play09:59

you have to check it and then press ok

play10:01

only then you will be able to use telnet and see the star wars movie

play10:05

so these were some tips and techniques of command prompt

play10:09

and I hope you have liked them

play10:11

you can flaunt with your friends

play10:13

and can show them that you also know a little bit about command prompt

play10:18

by changing color, prompt or title

play10:22

you can show them or impress them

play10:24

if you have any doubts related to coding

play10:27

so I have made a playlist here with the name "Coding discussion with Harry"

play10:31

you guys must go and check it out

play10:32

I have also made many programming courses which you can check out

play10:36

by going to various playlist

play10:37

I have made many playlists for you guys

play10:40

I have made all these courses for you

play10:42

but you guys must check out this playlist of "Coding discussion with Harry"

play10:46

In this, I have answered many of your common doubts

play10:50

I want everyone to go to this playlist after this video

play10:52

and see what are those things that you should take care of

play10:57

if you want to become a successful programmer

play10:59

I have covered different topics

play11:01

and all those topics are covered which are very commonly asked questions

play11:06

that's all in this video for now

play11:08

thank you so much guys for watching this video

play11:09

and I will see you next time

play11:12

[Music]

play11:26

[Music]

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
Command PromptTech TipsWindows HacksHidden FeaturesColor CustomizationFolder ManagementStar WarsTelnet FunCoding TutorialHarry's Playlist
هل تحتاج إلى تلخيص باللغة الإنجليزية؟