Command See Cool Code Hack Mac

Welcome back to Coding Corner! Today, we're going to go over some great interface and user tweaks you can execute to customize your Mac. These tricks are often simple and can help you spruce up your Mac far beyond what the System Preferences window allows.

Dec 15, 2017  This tutorial will teach you how to to run commands from the command line on mac. 37,198 views. 4 Computer Spy Hacks YOU CAN DO RIGHT NOW (Simple and Clever). Jul 04, 2020  This command helps you to modify the ARP cache. You can run an arp-a command on each computer to see whether the computers have the correct MAC address listed for each other to ping each other succeed on the same subnet. This command also helps users to find out if anyone has done arp poisoning in their LAN. You can try typing arp-a in command.

So, without further ado, 15 great tricks you can execute in Terminal.

Tweak the Finder

Want to see hidden files, or copy Quick Look text? There are quite a few 'defaults' commands that let you alter how the Finder looks or acts.

1. Show hidden files and folders

Want to see all the hidden files and folders OS X has to offer — or you simply can't find a file you hid? Just use this command in Terminal:

defaults write com.apple.finder AppleShowAllFiles -bool TRUE
killall Finder

To re-hide all your files, just change the TRUE to FALSE.

2. View any file's contents

If you've had a file get corrupted or you suspect there's something hidden inside its package, you can force Terminal to open it. Just use the following command:

cat ~/enter/file/path

Fair warning: If you try to open a photo or pretty much any non-text document, you'll likely just see text gibberish.

3. Copy the contents of a folder from one place to another

Sure, you can Option-drag any file to a new location to make a copy of it, but if you want to simplify the process and automatically copy the entire contents of one folder to another, check out this simple Terminal trick.

ditto -V ~/original/folder/ ~/new/folder/

4. Download files outside of your browser

Have the URL to a file but don't want to use Safari, Firefox, or Chrome to download it? You can go through Terminal with the following commands:

cd ~/Downloads/
curl -O http://www.thefilename.com/thefile/url.mp3

The first command moves your current Terminal location to your Downloads folder; the second downloads it from the web to that folder. /how-do-i-know-if-my-mac-has-been-hacked.html.

Modifying screenshots

Want to change how your screenshots look? Here are some commands to help you do just that.

5. Change your screenshot's file format

This Terminal command lets you change the file format of your screenshots. By default, they're saved as PNGs, but you can also save them as PDFs, JPGs, and more.

defaults write com.apple.screencapture type jpg

6. Disable drop shadows on a screenshot

Here's another good one if you tend to take a lot of screenshots: This command will disable drop-shadow on your screenshots, only displaying the window you've snapped.

$ defaults write com.apple.screencapture disable-shadow -bool TRUE
killall SystemUIServer

7. Create a new default name scheme for screenshots

Don't like the phrase Apple uses to save your screenshots? Traditionally, it's 'Screen Shot - [date] - [time]', but you can change 'Screen Shot' to any word you please.

defaults write com.apple.screencapture name 'New Screen Shot Name'
killall SystemUIServer`

Get bored of your new name scheme? Go back to the default by typing as follows:

defaults write com.apple.screencapture name '
killall SystemUIServer

8. Change the location of your screenshots

Your screenshots, by default, save to the Desktop. But if you'd prefer they save elsewhere, it's an easy Terminal trick to make it so.

defaults write com.apple.screencapture location ~/your/location/here
killall SystemUIServer

You can also drag the folder of your choice on top of the Terminal window after typing 'location' if you don't want to manually type out the file path.

System changes

If you're looking for broader OS X-level changes, these commands might help you get started.

9. Create a custom login message

Whether you want to troll your friends or add useful 'in case of loss' contact information, you can add a personalized message to your login screen with this Terminal command.

sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText 'In case of loss, call 555-555-5555.'

10. How long has my Mac been running?

Is your Mac acting sluggishly? It might be in need of a good restart. You can check to see just how long your Mac's been active by checking its uptime with this Terminal command:

uptime

11. Keep your Mac awake

If you need to prevent your Mac from going to sleep — say, you're running an extensive task, or recording your screen — there's an all-too-amusing command for that:

caffeinate

Once you enter this command, your Mac's digital eyes will be pried open and prevented from going to sleep until you end it by pressing Control-C.

If you don't want to rely on being the one to end your poor Mac's suffering, you can also create a set a number of seconds before your Mac sleeps:

caffeinate -u -t 5400

The above command will keep your Mac awake for an hour and a half.

12. Make your Mac automatically restart after a crash

We've all had our Mac freeze up or crash at least once in its lifetime. If you want to skip the crying and the yelling at the screen and get back to work, you can enter this Terminal command, which will make OS X reboot as soon as it senses a full system freeze.

sudo systemsetup -setrestartfreeze on

Modify your Dock

Want to make your Dock look different? Check out these Terminal tweaks.

13. Add spacers to your Dock

You can organize your Dock's many icons by adding in blank spaces with this handy terminal command:

defaults write com.apple.dock persistent-apps -array-add '{'tile-type'='spacer-tile';}'
killall Dock

Repeat this command for each spacer you'd like for your Dock. To remove a spacer, you can drag it out to the right until you see the poof icon.

14. Dull hidden apps in the Dock

Not sure which apps are visible on your screen? You can make this information extra pertinent by using this Terminal command, which lowers the opacity on icons for hidden apps in the Dock. It's a great way to see what you haven't used lately, as well as what's cluttering up your screen.

defaults write com.apple.Dock showhidden -bool TRUE
killall Dock

15. Hide non-active apps in your Dock

If lowering the opacity of hidden apps appeals to you, you might like this Terminal command even better: It hides any closed app from your Dock at all times.

defaults write com.apple.dock static-only -bool TRUE
killall Dock

Your favorites?

Have a Terminal command you love that we didn't mention? Drop it below in the comments.

We may earn a commission for purchases using our links. Learn more.

exposure notification

National COVID-19 server to use Apple and Google's API, hosted by Microsoft

The Association of Public Health Laboratories has announced it is working with Apple, Google, and Microsoft to launch a national server that will securely store COVID-19 exposure notification data.

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.

Command See Cool Code Hack Mac Free

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. https://treelosangeles418.weebly.com/blog/maple-18-free-download-mac.

Then type in the new date in the format day/month/year and hit return.

You have to open the cmd as an administrator to make these changes.

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.

Command See Cool Code Hack Mac Download

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.

/typing-web-hack-mac.html. 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>.

Command See Cool Code Hack Machines

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.

Command See Cool Code Hack Machine

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.