Terminal is one of the most powerful macOS apps, which allows you to perform actions with different commands. Although Terminal Commands are seemingly difficult to carry out, believe me, they aren’t. Once you know the commands, you can quickly perform tasks like shutting down your Mac or copying contents from one place to another right from your terminal
- Macos Open App And Hide From Command Line Shortcut
- Macos Open App And Hide From Command Line Files
- Macos Open App And Hide From Command Line Text
- Macos Open App And Hide From Command Line Download
As the terminal is a CLI (Command Line Interface), the language we type in which interacts with the Mac, is known as bash, and commands are called bash commands. This tool is often overlooked because it is completely different from the GUI (Graphical User Interface ), which provides a rich interface. But today I’ve come up with a useful list of macOS Terminal Commands that you can learn easily and will help you do things instantly. So let’s start.
11 Cool Terminal Commands for macOS – Mac User Should Try
Open application switcher, keeping Command pressed, use Tab to navigate to the app you hope to use. Show or hide the Dock from within most apps. Fn-left arrow (or. MacOS Terminal provides you an easy way to Hide, Unhide or View hidden files in the Finder via Terminal. Open up the terminal from /Applications/finder or alternatively launch it from Spotlight. To Hide any File/Folder: Type in the following command: chflags hidden. Now, drag the file which you want to hide in the terminal and click Enter. The second command instructs macOS Sierra to close then reopen all the Finder Windows. This way, when the Finder relaunches, it has all the files and folders including the ones that had been hidden. Unhide a File or Folder on macOS. To open the Terminal app, click on Go then Utilities then double click on the Terminal app. LSUIElement (String - OS X) specifies whether the app runs as an agent app. If this key is set to “1”, Launch Services runs the app as an agent app. Agent apps do not appear in the Dock or in the Force Quit window. Although they typically run as background apps, they can come to the foreground to present a user interface if desired.
#1. Hide/Unhide and View Files/Folders in Finder
Macos Open App And Hide From Command Line Shortcut
macOS Terminal provides you an easy way to Hide, Unhide or View hidden files in the Finder via Terminal.
Open up the terminal from /Applications/finder or alternatively launch it from Spotlight.
To Hide any File/Folder:
Type in the following command :
Now, drag the file which you want to hide in the terminal and click Enter.
To View Hidden File/Folder:
Type defaults write com.apple.finder AppleShowAllFiles -bool TRUE in the Terminal. Best app on mac to play mp4 videos.
Once done you need to restart the Finder, it can be done by this command.
If you ever wish to hide the sensitive files again, repeat all the commands by replacing TRUE with FALSE.
To Unhide any File/Folder:
![Command Command](/uploads/1/3/4/2/134214497/522857707.png)
Unhiding the file/folder is fairly easy, just replace “hidden” with “nohidden”.
Now, drag the file/folder which you want to unhide.
#2. Download Files Using Terminal
![Macos Macos](/uploads/1/3/4/2/134214497/357112696.jpg)
If you’ve a direct link of the file which you want to download, you can use the following commands to download the file using the Terminal on Mac.
Note: If you want to download the contents to any other directory replace “downloads” with the directory name.
#3. Keep your Mac Awake
To prevent the mac from sleep, or showing screensaver after some inactivity use
If you want this command to get auto-disabled after a certain period of time, put the -t flag and specify the time in seconds as shown below. See full list on wikihow.com.
Here, after 150000 seconds the command will get disabled, and the settings will be restored. https://biokfse.weebly.com/blog/mac-app-xml-extension. Meanwhile, you can also use Cmd + C to terminate the command.
#4. Change Default Screenshot Format Type
By default, the screenshots are saved in .PNG format, but you can gain full control over the screenshots behavior.
To change default screenshot format type, use defaults write com.apple.screencapture type followed by type for e.g. : ( PNG, JPG, GIF, or PDF), then press Enter.
#5. Access iCloud Drive Using Terminal
To access the data from your iCloud Drive use the following command.
However, we already have a detailed guide on how you can access, copy, or move data to your iCloud Drive, which you can check out anytime.
#6. Shut Down or Restart Mac using Terminal
To shut down your mac with CLI (Command Line Interface) aka Terminal, use
Just as shut down, you can restart your Mac by
#7. View File Contents
To access the contents of any damaged or corrupted file, you can force the terminal to open it with this command.
Note: If you try to open an image file in the terminal, it will show some gibberish text.
#8. Speed Up Time Machine Backup
Whenever you’re updating the Mac to the new version, backup’s are assurity of your data and the easiest way to take a backup is to use Time Machine. But do you know? You can speed up time machine backup using the terminal by this command
Macos Open App And Hide From Command Line Files
#9. Add Spaces to your Dock
If you feel, your dock is crowded with a lot of apps. You can add up a little space between each app icon, here’s how.
Type:
and hit Return.
Once done, type:
and press Return again
#10. Copy Contents from One Folder to Another
Copying contents from one place to another is fairly easy with Terminal, Type in the following command
Replace original with the current directory, and new with the name of the directory to which you want to copy the contents.
#11. Make your Mac Say Anything you want
This is the coolest command that macOS provides, you can make your Mac say anything you want, by using the say command followed by the words.
say “hello, iGeeksblog”
Wrapping Up…
There are lots of bash commands available for macOS. However, these were some of them. Do give them a try, and make more out of your Mac.
You might also like to read:
Which command did you like the most? Share your views in the comment section.
Nikhil runs iGB’s official YouTube channel. He is the official lensman of iGB and GB’s small studio is Nikhil’s playground, where he does all wonders with his remarkable signature. When Nikhil is not in his studio, you may spot him in a gourmet restaurant, chomping his way through some delicious food. He is a great traveler, who can go for long drives in search of good food.
- https://www.igeeksblog.com/author/nikhil/How to Manage Website Settings in iOS 13 Safari on iPhone and iPad
- https://www.igeeksblog.com/author/nikhil/How to Fix 'iMessage Needs to Be Enabled to Send This Message' Issue
- https://www.igeeksblog.com/author/nikhil/
- https://www.igeeksblog.com/author/nikhil/How to Enable and Use Taptic Time on Apple Watch in watchOS 6
Macos Open App And Hide From Command Line Text
Note
Using Anaconda in a commercial setting? You may need to use Anaconda Commercial Edition. If you have already purchased Commercial Edition, please proceed to the Authenticating Commercial Edition section after completing your installation here.
Haven’t purchased Commercial Edition yet? Visit https://anaconda.cloud/register to get started.
You can install Anaconda using either the graphical installer (“wizard”) or thecommand line (“manual”) instructions below. If you are unsure, choose the graphical install.
macOS graphical install¶
- Download the graphical macOS installer for your version of Python.
- RECOMMENDED: Verify data integrity with SHA-256.For more information on hashes, see What about cryptographic hash verification?
- Double-click the downloaded file and click continue to start the installation.
- Answer the prompts on the Introduction, Read Me, and License screens.
- Click the Install button to install Anaconda in your ~/opt directory (recommended):
- OR, click the Change Install Location button to install in another location (not recommended).On the Destination Select screen, select Install for me only.NoteIf you get the error message “You cannot install Anaconda in this location,” reselect Install for me only.
- Click the continue button.
- Optional: To install PyCharm for Anaconda, click on the link to https://www.anaconda.com/pycharm.Or to install Anaconda without PyCharm, click the Continue button.
- A successful installation displays the following screen:
- Verify your installation.
Using the command-line install¶
Use this method if you prefer to use a terminal window.
- In your browser, download the command-line version of themacOS installer for your system.
- RECOMMENDED: Verify data integrity with SHA-256.For more information on hash verification, see cryptographic hash validation.
- Open a terminal and run the following:
NoteReplace/path/filename
with your installation’s path and filename. - Install for Python 3.7 or 2.7:
- For Python 3.7 enter the following:
- Mac desktop apps suit. For Python 2.7, open the Terminal.app or iTerm2 terminal application and then enter the following:
NoteInclude thebash
command regardless of whether or not you are using the Bash shell.NoteReplace~/Downloads
with your actual path andAnaconda3-2020.02-MacOSX-x86_64.sh
with actual name of the file you downloaded. - The installer prompts “In order to continue the installation process, please review the license agreement.”Click Enter to view the license terms.
- Scroll to the bottom of the license terms and enter yes to agree to them.
- The installer prompts you to Press Enter to confirm the location, Press CTRL-C to cancel the installationor specify an alternate installation directory. If you confirm the default location,it will display
PREFIX=/home/<user>/anaconda<2or3>
and continue the installation.NoteUnlike the graphical install, installing the shell file will place it in ~/anaconda<2 or 3> by default,not ~/opt. This is due to limitations with installing .pkg files on macOS Catalina.Installation may take a few minutes to complete.NoteWe recommend you accept the default install location. Do not choose the path as /usr for theAnaconda/Miniconda installation. - The installer prompts “Do you wish the installer to initialize Anaconda3by running conda init?” We recommend “yes”.NoteIf you enter “no”, then conda will not modify your shell scripts at all.In order to initialize after the installation process is done, first run
source<pathtoconda>/bin/activate
and then runcondainit
.NoteIf you are on macOS Catalina, the new default shell is zsh.You will instead need to runsource<pathtoconda>/bin/activate
followed bycondainitzsh
. - The installer displays “Thank you for installing Anaconda!”
- Optional: The installer describes the partnership between Anaconda and JetBrains andprovides a link to install PyCharm for Anaconda athttps://www.anaconda.com/pycharm.
- Close and open your terminal window for the Anaconda installation to take effect.
- To control whether or not each shell session has the base environmentactivated or not, run
condaconfig--setauto_activate_baseFalseorTrue
. To run conda from anywhere without having the base environmentactivated by default, usecondaconfig--setauto_activate_baseFalse
.This only works if you have runcondainit
first.Notecondainit
is available in conda versions 4.6.12 and later. - Verify your installation.
Macos Open App And Hide From Command Line Download
What’s next?¶
Get started programming quickly with Anaconda in the Getting started with Anaconda guide.