How to find out the terminal command of an application?


Mac’s command line interface, Terminal, ships with a bewildering array of commands. Google searches and man pages will help you get a better sense of what your machine is capable of, but they won’t tell you the name of every command on your Mac. If you want to see all available commands at once, or if you’re trying to find a particular command, you can follow the instructions below to find out all the Terminal commands on your Mac.

1. Open Terminal (Applications/Utilities/

2. Hold down the “Escape” key (or button on a MacBook Pro Touchbar) for a second or two.

3. When you see the prompt that says “Display all 1456 possibilities?” press the “Y” key. Note that the exact number of available commands will vary based on your installation, but it should be approximately 1400.

4. Terminal will now list all of the available commands in alphabetical order. You can navigate down the list line by line by pressing the “Enter” key. There’s no way to...

0 0

I want to use some applications shown on the Unity Launcher in a terminal, but I need to know the appropriate command to run them. How can I achieve that?

Most default applications will have a .desktop file located in /usr/share/applications.

To find out about the corresponding terminal command that will be run when launching one of these applications open the file browser Nautilus and right click on the application's icon to select Properties in the context menu. This will give you all details you need (shown here for System Settings that will run gnome-control-center -overview)

If you installed the application through the repositories or through dpkg, you can use this command:

dpkg -l | grep "application name"

This will search through all your installed applications, as well as search their descriptions; searching the description is the important part here, because the description usually contains the name of the application, even if the...

0 0

We all know how to launch applications from the GUI with a double-click on the icon or clicking on the app in the Dock, and there are numerous ways to do so, and they’re all relatively speedy. If you spend a decent amount of time with the command line though, it’s nice to be able to launch Mac apps directly from there as well. Also, the Terminal has a fair share of applications that run in text based mode, but maybe you wanted to edit a text file in the OS X GUI app TextWrangler rather than the text based nano or vim.

We’re going to demonstrate how to launch any graphical Mac app from the command line of OS X, including how to open specific files from the command line with a GUI app, and how to edit and open those files with root access if it’s necessary.

Opening Mac OS X Applications from the Command Line

The Terminal command to launch OS X gui apps is appropriately called ‘open’ and here is how it works at it’s most simple:

open -a...

0 0

use ssh client to login into my Mac Min server without GUI. How can I tell what version of Mac OS X operating system am I using command prompt? How do I find out Mac OS X version from Terminal app bash shell?

On Apple Mac OS X you need to use the following command to find out operating system version:

system_profiler command – Show Apple hardware and software configuration.sw_vers command – Show Mac OS X operating system version.uname command – Show operating system name and more.

Determine OS X version from the command line

Open the terminal app and type the following command:
$ sw_vers
Sample outputs:

Where, you can pass the following options:

-productName – Print just the value of the ProductName property.-productVersion – Print just the value of the ProductVersion property.-buildVersion – Print just the value of the BuildVersion property.

Say hello to system_profiler

You can use the system_profiler command as...

0 0

The Terminal app icon in Launchpad

Terminal is the name of the command-line interface app to your computer. This app is all about text commands, but don’t be scared! With the right commands it’s hard to go wrong.*

Open Finder at the very left of your Dock at the bottom of your screen.In the window that opens, find Applications in the sidebar.With Applications selected, open the Accessories folder.Click Terminal. There we are!

Alternatively, click Launchpad in your Dock and find Terminal there by searching for it (just start typing!) or finding the folder called “Other”.

What the Terminal app looks like when opened.

Did this help you find the Terminal app in OS X?

16 7

*Caution/Disclaimer: It’s always a good idea to take a backup of your computer’s contents before you attempt to change any system files. Follow all advice in this article at your own...

0 0

The Terminal is a really powerful utility available on your Mac. It lets you run some commands that achieve various things on your Mac. It helps you create new files, new directories, remove old files, and so on.

It contains a number of commands, and if you are new to it, you will want to learn what all Terminal can do for you. Fortunately, Terminal itself is capable of showing you all the commands it can run for you on your machine.

To have Terminal list out all the commands, you need to follow a set of specific steps which is given below. Once that’s done, you will have a long list of commands in front of you for you to learn and enjoy its benefits on your machine.

Here’s how:

Finding all the Commands That Can Be Run with Terminal on a Mac

To do the task, the only app you are going to need is Terminal. The app itself shows all of the available commands that can be run through it on your Mac.

First of all, launch the Terminal app on your...

0 0

If you’ve ever wanted to see a running history of all the Terminal commands you’ve used on your Mac, or that you suspect another user of your Mac has used, there is a simple command you can run.

In this tutorial, we’ll show you how you can view your Terminal command history, as well as clear your command history from being seen by unwanted eyes.

Why to view and clear your command history

Viewing your command history in macOS could be a useful feature if you want to see a long command you’ve used recently that you just can’t remember; this makes it easy to simply copy and paste the command and re-use it. Seeing your command history can also be useful if you have other users on your Mac and you want to see what kinds of things they’re doing with the Terminal app.

As for clearing your command line history, if you’re using Terminal on an institutional machine and need to hide commands you’re using from your administrator, or you want to increase...

0 0


I tend to post quite a lot of Terminal tips. They are useful for adjusting system variables and making changes to your system. They allow you to change things that you would not normally have access to. Sometimes I build and make my own bash scripts, which run in Terminal like a normal command, to get them to run efficiently they are placed in a system folder to allow you to access them by name and not the full path to the scripts location. The problem arises when you forget where the script is located, especially annoying if you want to change it. This command, which is very simple will show you how to find the command you are looking for.

To find where Terminal commands are located open up Terminal and type the following:

which -a xxx

Where xxx is the name of the command. This will search your computer for the allowable install locations for Terminal/bash commands and output the result. The option, -a, will display all of the installed locations,...

0 0

If you're sick of waiting for the progress bar to complete every time you reboot after a macOS software update, then you'll be pleased to learn there's another way to update your Mac that could potentially reduce your downtime.

The process involves a simple Terminal command, and allows you to continue using your Mac as the update downloads and the initial software installation takes place in the background. In our tests, we found that this method was capable of shaving off several minutes of idle time during installation restarts, but that the time-saving depends on the machine and the update in question.

Users with older Macs in particular will likely appreciate this tip, as it saves having to fire up the Mac App Store altogether, which can be slow-going and sometimes even downright unresponsive. Read on to find out how it's done.

How to Update macOS From the Command Line

Before following these steps, ensure you have a full backup of your system,...

0 0

The Terminal app allows you to control your Mac using a command prompt. Why would you want to do that? Well, perhaps because you’re used to working on a command line in a Unix-based system and prefer to work that way. Terminal is a Mac command line interface. There are several advantages to using Terminal to accomplish some tasks — it’s usually quicker, for example. In order to use it, however, you’ll need to get to grips with its basic commands and functions. Once you’ve done that, you can dig deeper and learn more commands and use your Mac’s command prompt for more complex, as well as some fun, tasks.

How to open Terminal on Mac

The Terminal app is in the Utilities folder in Applications. To open it, either open your Applications folder, then open Utilities and double-click on Terminal, or press Command - spacebar to launch Spotlight and type "Terminal," then double-click the search result.

You’ll see a small window with a white background...

0 0

There several ways to find files in OS X, the most popular of which are GUI-based routines such as the Spotlight menu and the Finder search, both of which offer quick access to the system's metadata search index. However, there are other options for accessing this index and otherwise finding files you might be interested in locating.

Of course besides Apple's GUI options there are some third-party searching tools available; however, without these the other option in OS X is to use the Terminal, which can benefit both Terminal and GUI-based routines.

The first option in the Terminal is the classic "find" command that is common to many Unix systems, which will recursively walk a specified folder hierarchy and search items for a given name pattern. The find command has a number of options you can use to narrow down search results, and these can be looked up on its manual page, but the basics for finding a file are to specify the starting path and the name, such as the...

0 0

In addition to a great graphical user interface, macOS offers a very capable command line environment via the Terminal program. However, there are over 1,400 possible commands you can use with the Mac Terminal application. How can you find out what they are, and what they do?

How to View All of the Possible Terminal Commands in macOS

While we refer to the Mac operating system as “macOS,” the Mac Terminal and all of its commands are available on all recent versions of the Mac operating system, as long as you’re using the default bash prompt. Here’s how to list the commands.

Open the Terminal app. It can be found in /Applications/Utilities/ or you can just bring up Spotlight Search and type “Terminal” and press ENTER. At the bash prompt, hit the Escape key twice. (Upper left-hand corner of your Mac’s keyboard.) You’ll see a message that says “Display all 1468 possibilities? (y or n)” hit the “y” key to start displaying every command. The listing will stop each time...
0 0

Use the 'am start' command, which is a is a command-line interface to the ActivityManager. Use am to start activities as shown in this help:

$ adb shell am usage: am [start|instrument] am start [-a ] [-d ] [-t ] [-c [-c ] ...] [-e [-e ...] [-n ] [-D] [] ...

For example, to start the Contacts application you can use

$ adb shell am start -n

See also (may be a copy of obsolete url : ) for other details.

To terminate the application you can use

$ adb shell am kill

or the more drastic

$ adb shell am force-stop...
0 0

Linux, regardless of the distro you use, comes with a number of GUI tools which allow searching for files. Many modern file managers support file searching right in the file list. However, there are a number of situations when you need to use the console, for example, during an SSH session or when the X server doesn't start. Here is how you can find files quickly using the terminal.

RECOMMENDED: Click here to fix Windows errors and optimize system performance

If you can use the GUI, searching for files is not a problem. In my favorite XFCE desktop environment, the Thunar file manager allows searching for files by typing the file name directly in the file list.

Also, there's Catfish, a popular search tool with a search index, which can find your files really quickly.

I would like to share the methods I use myself when I work in terminal.
The first method involves the find utility, which exists in any distro, even in embedded...

0 0

Recently, the Rocket Yard introduced you to one of macOS and OS X’s most powerful apps – the Terminal app. (If you missed it, you can catch up by reading Part 1 and Part 2).

While the Terminal app is quite powerful, it can also be quite confusing. And making sense of the hundreds of different terminal commands can feel like a Sisyphean task. Fortunately, there is a quick and easy way to view all of the nearly 1,500 possible commands. There’s also a simple way to find out what those esoteric phrases actually do.

Read on to find out how to view the commands. As far as putting them into use … that’s a conversation for another day.

Viewing the commands
1) Open the Terminal app which is located at /Applications/Utilities/
2) Once you’re at the bash prompt, simply hit the Escape key two times.
3) You will then be asked if you want to “Display all 1445 possibilites? (y or n)”. Type “y” to see the commands. (Note: This total may vary based on your OS...

0 0

As a budding developer, you should constantly look for tips, tricks, and resources to make programming more efficient. Prepare to add another nifty tool to your bucket today – the terminal and command line. The command line can seem intimidating when you first access it, but once you start using it regularly, you’ll quickly start to learn how to utilize this powerful tool.

The command-line is used to enter commands to the operating system, instead of graphical user interface (GUI). This is because command-line is much more flexible than graphical interface, which is what makes it so handy to developers.

Access That Terminal

The terminal is the actual interface to the console that you can type and execute text based commands.

To launch the terminal on a mac:

Open Finder > Applications > Utilities > Terminal

A Terminal displays a command prompt ending with “$” sign, in the form of:


0 0

There is no "nice" way to log the current user out from Terminal in OS X. The 'messy' way of doing it is to kill that user's loginwindow process. It will rudely kill all processes (programs) running under your username.

Doing this is a two-step process.

In terminal, run this:

ps -Ajc | grep loginwindow

Then, run

sudo kill

Where is the first number (second column) from the output from the above command.

Use sudo kill -9 to force kill the process which I had to do to get this to work.

So for example, when if the output to the first command is:

joshhunt 41 1 41 5e15c08 0 Ss ?? 3:13.09 loginwindow

Then I would run sudo kill 41, enter my password, and then I am logged out.

This can be combined into an bash alias:

alias messylogout="ps -Ajc | grep loginwindow | grep -v grep | awk '{print \$2}' | sudo xargs...
0 0

sorry, I misspelled: its overgrive. Furthermore I have got ubuntu 14.4lts. It does not need wine. I know where the startup window is, but my question is what the command is that has to be typed in the second column of the sartup window to make a program run at startup. Just writing overgrive does not workl. But he solutions do not work as well :

o@o-HP-Compaq-6910p-KL536AV:~$ which overgrive
o@o-HP-Compaq-6910p-KL536AV:~$ what overgrive
No command 'what' found, did you mean:
Command 'wcat' from package 'sac' (universe)
Command 'chat' from package 'ppp' (main)
Command 'jhat' from package 'openjdk-6-jdk' (universe)
Command 'jhat' from package 'openjdk-7-jdk' (main)
what: command not found
o@o-HP-Compaq-6910p-KL536AV:~$ whereis overgrive

Any other...

0 0

I love creating hotkeys to open programs and menus, but sometimes I can't figure out what the command for something is. For instance, it took some Googling to find out that the system monitor is opened with gnome-system-monitor

Is there anyway to figure out the terminal command for any program or menu (such as keyboard shortcuts or display settings) in Ubuntu?

You're looking for apropos. Just type apropos in the Terminal where is your search string.

$ apropos monitor dbus-monitor (1) - debug probe to print message bus messages gnome-system-monitor (1) - view and control processes gvfs-monitor-dir (1) - Monitor directories for changes gvfs-monitor-file (1) - Monitor files for changes inotify (7) - monitoring filesystem events iotop (8) - simple top-like I/O monitor ip-monitor (8) - state monitoring ip-netconf (8) - network configuration monitoring jconsole (1) - Java Monitoring and Management Console jstat (1) - Java Virtual Machine...
0 0

First, open Synaptic by running synaptic in the terminal. Type the name of the app in the quick filter box. For an example, I'll use LibreOffice Writer. Type the name of the app in the Synaptic filter:

It appears as the first installed result (little green box), with the full package name libreoffice-writer in the first column.

Now, try running libreoffice-writer in the terminal. Sometimes the package will run, but in this case it doesn't work:

Now, if you look back at Synaptic, you will see that the very first result is the libreoffice package. You could just run libreoffice in the terminal, in which case you get this window:

Or, you could type man libreoffice in the terminal. If you look at the these two screenshots:

You can see that to directly launch LibreOffice Writer, you can use one of two commands: lowriter or libreoffice --writer. Both work equally...

0 0

Every Monday, we'll show you how to do something new and simple with Apple's built-in command line application. You don't need any fancy software, or a knowledge of coding to do any of these. All you need is a keyboard to type 'em out!

Finding files and folders on the Mac became easier when Spotlight was introduced in OS X Tiger (10.4), but locating files through the command line can be a bit tricker. Fortunately, the find command is tailor made for tracking down files and folders on your system. You can even search for certain file types, allowing you to find HTML, Text, and other documents that you may have misplaced.

Continue reading to learn all about the find command and how you can put it to use in your own workflow.

Basic Search

To begin searching for files, open the Terminal app, and then use the following command, followed by the enter key:

find X -name "Y"

Replace X with the path to the location on your...

0 0
0 0

It often happens that you need to kill an unresponsive program. In Windows you have task manager for this situation. In Linux one can use the terminal to kill a running or unresponsive program. Using the terminal is better than using any GUI based tool as GUI tools may not show the still running hidden process.

Find the process ID (PID) of a program:

Open the terminal in Ubuntu by using Ctrl+Alt+T. Now use the following command:

ps aux | grep -i “name of your desired program”

ps aux command returns all the running process on the system. And the grep afterwards shows the line which matches with the program name. The output of the command will be like this:

As shown in the picture above, you can get the process ID of the program/process in the second column. Just ignore the line with “–color =auto”.

Kill the process:

Once you have the PID of the desired application, use the following command to kill the process:


0 0

Whenever you install any particular application in Ubuntu it’s launcher is placed in the appropriate category like Applications, Accessories, Places, or System. But if you are unable to locate any installed application there, then the best way to launch it is through the Run Application Dialogue box. You may open the Run Application dialogue box by pressing Alt + F2.

Here is the screenshot of the Run Application dialogue box, in the text box you will need to enter the command to run the particular application.

Now the question is how would you find out the command to launch your required application? Its very simple, Open the terminal and run the following command to determine the command which may be used to launch your required application.

whereis package_name

where package_name should be replaced with the name of the application that you want to launch, for example if you want to find out the launcher command Firefox then simply run the above...

0 0

This is a command line tutorial primarily conducted in in the OS X command line. Because of OSX’s unix heritage, much of the info here is also useful in other unix inspired systems, like the Linux command line.

The command line can be a scary place when you first encounter it. When you read some instructions that tell you to open up a terminal window and type some cryptic words and phrases, it can seem like you’ve been sucked into the matrix, expected to decrypt an endless stream of indecipherable characters.

Fear not, it’s really not that difficult to use. In fact, when you see an experienced user looking at a terminal that is scrolling line after line of text faster than you can even read it, they aren’t really reading it either. For the most part they may be scanning for some key words, but mostly they are just waiting for it to stop.

Check out our full library of learning courses.

How to open the command line.

Before you can use it, you need...

0 0

Taylor, C.. "How to Open a Terminal Session in Windows 7." Small Business -, Accessed 16 April 2018.

Taylor, C.. (n.d.). How to Open a Terminal Session in Windows 7. Small Business - Retrieved from

Taylor, C.. "How to Open a Terminal Session in Windows 7" accessed April 16, 2018.

Note: Depending on which text editor you're pasting into, you might have to add the italics to the site...

0 0
Understands relative file paths.

The start of your Terminal command line always displays the current directory you are located in. By default, this is your Home directory, named after your username. A relative file path begins with


or with no special characters, and describes the file's location in relation to your current directory.


If you're having trouble figuring this out, follow these steps:

Enter pwd to check your current directory. The file you are trying to open must be within this directory, not at a higher level. Find your current directory in Finder. Open a series of folder until you reach the file you'd like to open. Type in the names of the folders you opened in order, separated by / symbols, then end with the file name. For example, open Documents/Writing/Novel/ch3.pdf. (You may start with ./ in front of Documents for the same...
0 0