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.

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I am trying to run mysql client on my terminal. I have installed the latest mysql gem. ➜ ~ git:(master) ✗ ruby …

mysql terminal rvm osx-lion mysql.sock
Docker-Compose can't connect to Docker Daemon

I am getting an error message saying I can't connect to the docker daemon. I have looked into other people's …

ubuntu terminal docker docker-compose
How to Batch Rename Files in a macOS Terminal?

I have a folder with a series of files named: prefix_1234_567.png prefix_abcd_efg.png I'd like to batch …

bash macos shell terminal file-rename
Temporarily change current working directory in bash to run a command

I know I can use cd command to change my working directory in bash. But if I do this command: …

bash shell terminal working-directory
Change the default editor for files opened in the terminal? (e.g. set it to TextEdit/Coda/Textmate)

Is there a way to make files opened for editing in the terminal open in Textedit instead? For example, where …

macos terminal text-editor
How to get Linux console window width in Python

Is there a way in python to programmatically determine the width of the console? I mean the number of characters …

python linux console terminal width
Single Line sftp from Terminal

Several times throughout the day, I may be running a test where I need to look through a log file …

unix terminal sftp scp
How to set my default shell on Mac?

I do not like to retype fish every time I start terminal. I want fish on by default. How can …

macos terminal fish
Color theme for VS Code integrated terminal

Can we change color settings of VS Code Integrated Terminal? Mine looks dull with just white.

terminal visual-studio-code vscode-settings
How do I make a Mac Terminal pop-up/alert? Applescript?

I want to be able to have my program display an alert, notice, whatever that displays my custom text. How …

macos popup terminal applescript alert