Top "Terminal" questions

A terminal or command-line interface is a text-only interface for interacting with an operating system or a piece of software.

Open Sublime Text from Terminal in macOS

In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 …

macos terminal sublimetext3 sublimetext
How do I make this file.sh executable via double click?

First off I'm using Mac. Next, I need to execute this "file.sh" we will call it. Everytime I need …

bash macos terminal executable
How to delete history of last 10 commands in shell?

Commands follows 511 clear 512 history 513 history -d 505 514 history 515 history -d 507 510 513 516 history 517 history -d 509 518 history 519 history -d 511 520 history I can delete single …

linux bash shell terminal
How do I output coloured text to a Linux terminal?

How do I print coloured characters to a Linux terminal that supports it? How do I tell whether the terminal …

c++ linux colors terminal
Running script upon login mac

I am wondering if anyone is able to help me out with getting a .sh file to run when I …

bash shell authentication terminal osx-snow-leopard
count number of lines in terminal output

couldn't find this on SO. I ran the following command in the terminal: >> grep -Rl "curl" ./ and this …

bash terminal
How can I list (ls) the 5 last modified files in a directory?

I know ls -t will list all files by modified time. But how can I limit these results to only …

linux list terminal limit ls
Remove blank lines with grep

I tried grep -v '^$' in Linux and that didn't work. This file came from a Windows file system.

text terminal grep newline
SSH SCP Local file to Remote in Terminal Mac Os X

I am attempting to copy a local file 'magento.tar.gz' from my local machine to a remote server using …

command-line ssh terminal scp
Linux command to list all available commands and aliases

Is there a Linux command that will list all available commands and aliases for this terminal session? As if you …

linux command-line terminal