Jan 05, 2020 In this article, we have provided the best cmd commands used in hacking. Before we begin sharing the best cmd commands for hacking lets see how to enable the NetBios. First, open your Network Connection and right click and select Properties. Then Select TCP/IP and click Properties again. A-Z List Of Windows CMD Commands Here is the list of all the command prompt commands that you try. Download the pdf below that contains all the cmd commands sorted in alphabetical order. CMD Commands PDF Rundown: CMD Commands Tricks And Hacks. This was all about CMD commands tricks and hacks. I hope you liked learning about command prompt commands. When you think of Terminal, you probably imagine some hacker sitting in front of their computer in a dimly lit room trying to break into an FBI database. In reality, it's just a simple tool that can make using your Mac much easier. Now, I'm not saying that learning Terminal commands.
The CMD commands in Windows are very useful. These commands allow us to do our work very quickly and efficiently. Although, the Windows GUI interface allows us to do pretty much all the stuff sometimes we need to use the command prompt.
Many people when using Windows only deals with the GUI Windows interface, so they don’t have an idea about any cmd commands and even what command prompt is.
CMD Commands Tricks And Hacks
So in this tutorial, you’ll learn how to use command prompt for beginners. If you already know about command prompt and want to just have a look at it commands then please skip to the bottom.
Apart from just basic commands, I’ll be talking about some real tricks and hacks that you can do with cmd commands.
Let’s dive right in.
Multiple Ways To Open Command Prompt
So the first way by using the run utility.
Press Windows key + R to open the run dialog box
Then type cmd inside it and hit enter. You’ll see that the command prompt has appeared.
The second way is just by searching your installed programs. Just type in cmd in the search box and choose the option which says cmd.
So the third way is very useful. It made my life a whole lot easier when I discovered that we can open cmd directly inside any folder.
Simply go to the folder where you want to open the cmd.
In the navigation box type cmd and hit enter.
You’ll see that the command prompt has opened in the same folder. This trick saves a lot of time for me.
Many times to make a change on system level you have to open the command prompt as an admin. To open the command prompt as an administrator simply go to the start menu and search for cmd. Then right click on cmd and choose the option run as administrator.
Turn Your Normal CMD To A Hacker CMD
You probably have seen in movies that hackers use terminals with a black screen and green text on it.
This can be done on windows command prompt by just using a simple hack.
Just type in color /? And hit enter. You’ll see a listing of colors that you can use with their respective code.
To make the command prompt text green we will use the command color 02
The first digit is for background color which is 0, it stands for black color and the second digit is for text color which is 2, it stands for green color.
Alternatively, you can also change colors by right-clicking on the top bar and then going to Properties->colors. Play around with this command and find out what color combination do you like the most.
You can also change the prompt name by simply typing prompt <new prompt name>
Now you’ll see that the prompt text has changed to whatever text that you have chosen. This cmd command really allows us to customize the command prompt to our style. Use this trick to name the prompt text to whatever you want.
To change the prompt to default type prompt without any argument and hit enter.
Clear Screen
When you find yourself running a lot of commands on the command prompt your screen will be filled with lots of text.
This will make it harder to read to what is displayed on the screen. So, for our comfort, we use a command called cls.
This command is short for the clear screen and it does the same thing, it clears the cmd screen.
Simply type the command cls and see the magic.
C:cls ↵
Exit Command Prompt
When you have finished all of your work on the command prompt, you can simply type in exit and hit enter.
You’ll be immediately taken out of the cmd window.
C:exit ↵
Change Date & Time Through Command Prompt
I personally think that this hack is the quickest way to change data and time on the windows system.
Simply Open the command prompt as an administrator, and type in the time and hit enter.
Enter the new time, hit enter and there you have it.
For changing the date type the command date and hit enter.
Then type in the new date in the format day/month/year and hit return.
Display Contents Of A Folder
Navigate to the folder whose content you want to see. I showed you a simple trick above, how to open the cmd in any location.
Open the command prompt and type dir /a
This command will list all the directories of the folder in which you currently are.
It will also show you the hidden files that you can’t normally see in the file explorer.
See in the image the folder 2 is not visible, but the cmd is telling me that there is a folder named folder 2. This is because I have hidden that folder, but it is still showing in command prompt.
Changing Folder And Drives
Type cd <folder name>
You’ll be taken to that folder.
If you want to go one step back type in cd.. and hit enter.
For changing the drive, type the drive letter followed by a colon, then press enter. For example k:
You’ll see that your drive has changed successfully.
Basic Files And Folder Operations Using Command Prompt
Basic operations of files and folders include creating, rename, copy, move and delete. So here are all the operations that can be done using windows cmd commands.
Creating A File & Folder
To create a new folder, we use the command md <folder name>.
Alternatively, you can use the command mkdir <folder name> to create a folder.
For creating a file simply type the command start <program name> <file name>
See the image below, how I created a notepad file using the above command.
You can also create a Microsoft word file by typing using the same command. For example, start winword newfile.docx
Note: You don’t need to put the extension when creating a file. The program itself will take care of it.
Rename A File & Folder
To rename a folder or file name, use ren <folder/file name> <new name>
You can also change the name using the command rename.
It’s all your choice use whichever command you like, I personally like to use short forms of these commands. It just makes things easier and quicker.
Copying Files & Folders
For copying a file and folder, you have to use the copy command.
Copy <filename> <new location>
See the example below:
Now, if you want to move a folder or a file then you can use the move command.
Move <filename> <new location>
Pay attention here, that I have used the double quotes around the folder name where I want to move my file. This is because the folder name has spaces in between. So if you don’t have any spaces in the folder name you can neglect the double quotes.
Note: Don’t forget to type the extension of the file that you want to copy or move.
Delete Files & Folders
The cmd command for deleting a file is del.
To delete or remove a file using the command prompt, type del <filename> and hit enter.
This will delete the file completely.
Notice, that I said completely, that means that the file will not go to recycle bin, it will be permanently deleted. So use this cmd command carefully.
For deleting a folder that has some contents inside it, such files and other folders use the command rd /s /q <folder name>.
This will completely delete the folder. Keep that in mind. You can also use rmdir instead of rd if you want to.
Hiding Your Files Using CMD
I guess you already know that we can hide our files by going to its properties and ticking the checkbox that says hidden.
But here I will show you a sneaky command prompt trick. This will allow you to hide files in a way that don’t show even when you have allowed showing the hidden files.
So the trick is to make the file or folder that you want to hide a system file and the hidden file as well.
Use the command attrib <filename> +s +h
Now the files will be hidden and it will become the system files as well. By default, the system files are not shown even when you allow to show the hidden files.
Shutdown, Restart, Logoff Using CMD
Do you know that you can shut down, restart and logoff of your PC using the command prompt?
If not here are the command that will help you to perform all these operations.
Shutdown
You can shut down your PC using the command shutdown /s
If you type this command in your command prompt and hit enter your computer will shutdown in under a minute. So don’t run this command now.
Even if you ran this command you can abort the shutdown by running the command shutdown /a. This will abort the shutdown process.
Furthermore, you can also specify the time frame after which the shutdown will take place. For this, you have to type in shutdown /s /t 120
Here 120 are seconds. This tells the command that shutdown the computer after 120 seconds. You can calculate seconds from minutes and put the time according to your need.
Restart
Restarting a computer is also very easy using cmd commands. Here is what you need to execute shutdown /r.
To specify the time of the restart use /t option followed by seconds as we used above.
Logoff
Similarly, you can logoff your computer by typing the command shutdown /land to hibernating the PC using the command shutdown /h. Just keep in mind that you can use the /t option with the logoff and the hibernate command to specify the time. These commands perform their respective actions instantly.
A-Z List Of Windows CMD Commands
Here is the list of all the command prompt commands that you try. Download the pdf below that contains all the cmd commands sorted in alphabetical order.
Rundown: CMD Commands Tricks And Hacks
This was all about CMD commands tricks and hacks. I hope you liked learning about command prompt commands. If you have any questions or suggestions please let me know in the comments.
Also, subscribe to notifications to get the latest updates.
Get all best apps via Setapp
For those who have never used Terminal commands on Mac before, the app’s resemblance to hacking (as seen in movies) can be a little intimidating. But in fact, Terminal isn’t all that complicated once you know a little about how it works.
Many commands are surprisingly straightforward, such as how to open a file in Terminal and the dangerously powerful (since it bypasses the Trash) Terminal delete file capability:
open ~/Desktop/filename.extension
rm filename.extension
The rm stands for remove, so use with caution!
For another example, let’s look at how to create a folder on Mac. Using Finder, this would simply be a case of right-clicking and choosing New Folder. When it comes to how to make a directory in Terminal, we’d need to use a specific command:
mkdir 'new folder'
The Terminal window itself is designed to grant users access to UNIX features hidden away behind the Mac operating system. But you don’t need to learn about all of the technical stuff if you don’t want to. All you need to know is that a bit of Mac command line rote learning can help you do all sorts of cool things with your laptop or desktop that you couldn’t achieve otherwise.
Fix Mac problems without Terminal
Terminal commands aren’t easy. With Setapp, a one-stop platform for Mac apps, you can do the same — or more — in a beautiful interface.
8 Best Terminal Commands For Mac
Of course, defining the best Terminal commands for Mac really depends on what you want to get out of this tool. First things first though, to start you need to know how to open command prompt on Mac because you can’t use any Terminal commands without it:
Double-click your Macintosh HD icon or open a Finder window
Make your way into the Applications folder
Double-click Utilities and open Terminal
You’ll be met with a window that shows the name of your Mac followed by your username and a $ sign. All of the Mac Terminal commands listed here are entered after this, followed by a press or two of the Return key.
Actually using the app may be a bit tricky if you’ve never done so before, but at least the question of how to open Terminal on Mac is easy to answer. Pay attention going forward!
1. Show or hide files and folders
One of the easier, and most useful, commands to use in conjunction with Mac command line is the one that reveals hidden files and folders in macOS:
defaults write com.apple.finder AppleShowAllFiles -bool TRUE
killall Finder
Now you can edit and delete files that were previously inaccessible. When you want to hide these files again, just change the TRUE above to FALSE and repeat the process.
2. Duplicate files between folders
Rather than dragging and dropping or copying files between folders, you can use Ditto Terminal command on Mac to achieve the same result:
Ditto [original folder] [new folder]
If you have folders in different locations with the same name, you can type -v after Ditto to display each item’s file path using the verbose mode of Mac Terminal.
3. Change default screenshot settings
Tired of clogging up your desktop with screenshots? Terminal on Mac offers an easy fix for that with the option to set a new location for screenshots to be saved. Just enter the following:
defaults write com.apple.screencapture location ~/your/desired/location
killall SystemUIServer
You can also change the default file format (PNG) if you want to generate screenshots as JPEGs or PDFs instead:
defaults write com.apple.screencapture type jpg
4. Improve the screenshot process
If you take a lot of screenshots on your Mac, you might have noticed that it automatically adds a drop shadow to screenshotted windows. If you’d prefer to turn these shadows off, you can do so with the following Mac commands:
$ defaults write com.apple.screencapture disable-shadow -bool TRUE
killall SystemUIServer
To further customize how screenshots appear on your Mac, you could look at CleanShot. This app allows you to capture your Mac’s screen without the distraction of desktop icons, set custom wallpapers on the background, and annotate or blur certain parts of the image.
After taking a screenshot with CleanShot, a small popup window allows you to tweak the appearance of your capture — such as adding shapes, text, or pixelating parts of the image — before you share it anywhere using a layout similar to the simple and intuitive actions in Preview.
5. Download files without using your browser
The art of downloading files without using a web browser is familiar to any millennials who risked malware and viruses to download their favorite tracks from Limewire or Kazaa, but may be unheard of to others.
A nifty Mac command line trick exists for downloading files without using your web browser if you already know the location of the file. The command is as follows:
cd ~/Downloads/
curl -O http://website.com/folder/file...
The first part is a crash course in how to change directory in Terminal, as that’s what the cd stands for. So by re-reading the example above, you can see that the file will appear in your Downloads folder when it’s finished downloading.
6. Keep your Mac awake
Overriding your Mac’s default sleep settings (available via System Preferences ➙ Energy Saver) is a breeze using one of Terminal’s more humorous Mac commands. Apparently, like so many people out there, Macs run on coffee:
caffeinate -u -t [number of seconds to remain active]
If you’d rather not launch Terminal every time you need to keep your Mac awake, there’s an app out there called Lungo that lives in your menu bar and builds on the coffee theme. Just select the cup icon in the top right corner of your screen and you can keep your Mac awake for 10 minutes, 30 minutes, 1 hour, 4 hours, or indefinitely with a single click.
7. View the contents of any folder or file
If one of your files gets corrupted, or you suspect there’s a hidden message tucked away somewhere inside its package, you can use the Terminal window to see some details about it:
cat ~/file/path/here
The command will throw out a bunch of indecipherable nonsense if you try to use it on something like an image or an audio file, but it could be a lifesaver when recovering text from a corrupted Word document, for example.
8. Hide inactive apps in Dock and dull hidden ones
Accruing more and more apps in your Dock is pretty much par for the course when you use a Mac for any significant length of time. So a good-to-know Terminal command here is the one that makes your Dock embrace a minimal approach by showing only active apps:
Mac Command Keys
defaults write com.apple.dock static-only -bool TRUE
killall Dock
If you want to take this process even further, you can dim apps that aren’t visible on your monitor(s):
defaults write com.apple.Dock showhidden -bool TRUE
killall Dock
Another easier option for those with the cluttered Dock is to check out uBar, a simple and minimal replacement. Instead of a long line of icons, you can now have a highly customizable bar that allows you to devote more space to the apps that matter most.
You can use uBar to preview, group, quit, or close apps and windows, without the need to open them first, across multiple monitors. It’s an altogether less distracting option for those who find the default Dock a bit cluttered or unpredictable.
Best Terminal for Mac alternatives
If you simply can’t get to grips with how to open Terminal on Mac or get comfortable with all of its ins and outs, you may want to investigate an app like MacPilot.
Get a perfect Terminal alternative
Install MacPilot, an appealing tool that will replace Terminal on your Mac. Over 1000 hidden macOS features and ease of use.
MacPilot grants access to more than 1,000 hidden features in macOS using UNIX without requiring that you learn any complicated commands. Instead, it offers users a Finder-esque window that groups tweaks by both application and function.
In most cases, enabling or disabling features with MacPilot is as simple as checking or unchecking the relevant boxes. You can also explore content across your disks using a File Browser that includes hidden files and detailed information about all available items.
The range of System Tools, reference guides, and secret tricks offered by MacPilot is a powerful alternative to Terminal for those who would rather avoid struggling with commands.
Why the Terminal window still matters
Try to wax lyrical about the benefits of Mac commands with fellow Apple users and there’s a good chance you’ll be met with them asking “what is a Terminal?” The fact is, this app isn’t something that the average Mac user ever bothers much with.
Mac Hacking Commands Free
As you can see from the list of useful commands above, neglecting to use Terminal on Mac or an app like MacPilot means never seeing everything that your laptop or desktop is capable of.
One of many great things about using Mac Terminal commands is that, should you make a mistake, you can usually undo whatever you’ve done just by changing TRUE to FALSE and running the command again or simply changing the location or setting back to what it was before.
It’s true that Mac Terminal has a steep learning curve if you’re not used to its “language” but, whether or not you take the easier route with MacPilot, you can still try some of the cool tricks Terminal allows. You can play games, for example, by doing the following:
Open a Terminal window and type emacs then press Enter
With GNU Emacs selected, hit Escape
On the next screen, type x then tetris, pong or snake and press Enter
Mac Hacking Commands List
The most interesting example of a hidden Mac Terminal trick? That has to be the option to watch an ASCII version of the entire movie Star Wars:
Mac Hacking Commands Windows 10
telnet towel.blinkenlights.nl
Grab some popcorn and enjoy!
Mac Hacking Commands Download
Best of all, the apps mentioned throughout this article: CleanShot, Lungo, uBar, MacPilot — are all available for a free 7-day trial with Setapp, a platform for more than 150 apps to extend the possibilities of your Mac. See the best your Mac can do.