tagged [terminal]

How can I get the current date and time in the terminal and set a custom command in the terminal for it?

How can I get the current date and time in the terminal and set a custom command in the terminal for it? I have to check the time in a Linux terminal. What is the command for getting date and time in ...

29 Dec at 00:3

npm install -g less does not work: EACCES: permission denied

npm install -g less does not work: EACCES: permission denied I'm trying to set up less on phpstorm so I can compile .less files to .css on save. I have installed node.js and the next step (according t...

23 Dec at 10:47

Search for executable files using find command

Search for executable files using find command What type of parameter/flag can I use with the Unix `find` command so that I search executables?

20 Dec at 02:1

Connect with SSH through a proxy

Connect with SSH through a proxy I have no real idea what I'm doing here so please bear that in mind if you can help me! I am trying to connect to my virtual server through a proxy but I can't connect...

9 Oct at 19:6

Open Sublime Text from Terminal in macOS

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 from the command line in macOS?

How do I find the width & height of a terminal window?

How do I find the width & height of a terminal window? As a simple example, I want to write a CLI script which can print `=` across the entire width of the terminal window. ``` #!/usr/bin/env php

7 Sep at 17:22

How to open google chrome from terminal?

How to open google chrome from terminal? I'm trying to create an alias that opens google chrome to localhost. Port 80 in this case. I'd also really like to be able to be in any git directory and have ...

31 Jul at 20:0

Using 'make' on OS X

Using 'make' on OS X I have a MacBook Pro that I'm trying to do some development on. I have a program I want to build, and when I went to use `make` to build it, I got a "command not found" error. I d...

29 Jul at 11:11

List of ANSI color escape sequences

List of ANSI color escape sequences On most terminals it is possible to colorize output using the `\033` ANSI escape sequence. I'm looking for a list of all supported colors and options (like bright a...

22 May at 20:16

Display current path in terminal only

Display current path in terminal only I'm SSH'd into a computer, so I can't use a GUI to access the path name. Is there a way that you can see the path directly on terminal without having to use Nauti...

8 Apr at 15:8

Concatenate multiple files but include filename as section headers

Concatenate multiple files but include filename as section headers I would like to concatenate a number of text files into one large file in terminal. I know I can do this using the cat command. Howev...

Running a command in a new Mac OS X Terminal window

Running a command in a new Mac OS X Terminal window I've been trying to figure out how to run a bash command in a new Max OS X Terminal.app window. As, an example, here's how I would run my command in...

25 Oct at 17:49

Run text file as commands in Bash

Run text file as commands in Bash If I have a text file with a separate command on each line how would I make terminal run each line as a command? I just don't want to have to copy and paste 1 line at...

17 Mar at 17:13

How do I execute a bash script in Terminal?

How do I execute a bash script in Terminal? I have a bash script like: How do I execute this in Terminal?

9 Mar at 06:38

How to stop/cancel 'git log' command in terminal?

How to stop/cancel 'git log' command in terminal? In terminal, I ran this command `git log` . It displayed a list of log but it seems that because it is long, the terminal is not displaying everything...

11 Jan at 08:18

How to change the output color of echo in Linux

How to change the output color of echo in Linux I am trying to print a text in the terminal using echo command. I want to print the text in a red color. How can I do that?

How to navigate to to different directories in the terminal (mac)?

How to navigate to to different directories in the terminal (mac)? I have just installed sass and I am now tryring to access the sass file. For example: and the error is "no such file or directory" - ...

8 Sep at 18:58

Docker-Compose can't connect to Docker Daemon

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 answers who have had similar issues but it ha...

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

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 exampl...

23 Jul at 14:39

Launch Minecraft from command line - username and password as prefix

Launch Minecraft from command line - username and password as prefix I'm trying to make a simple custom Minecraft launcher thing. According to [the Minecraft Wiki page for the Launcher](http://www.min...

20 Jun at 20:25

VSCode Change Default Terminal

VSCode Change Default Terminal I am using Visual Studio Code on my Windows 10 PC. I want to change my default terminal from Windows PowerShell to Bash on Ubuntu (on Windows). How can I do that?

sudo: port: command not found

sudo: port: command not found I recently uninstalled Xcode 4.2 and re-installed Xcode 4.3.1. Command Line Tools are installed. I then installed MacPort using “dmg” disk images for Lion from macports.o...

How to switch Python versions in Terminal?

How to switch Python versions in Terminal? My Mac came with Python 2.7 installed by default, but I'd like to use Python 3.6.1 instead. How can I change the Python version used in Terminal (on Mac OS)?...

11 Apr at 19:11

How to get Linux console window width in Python

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 that fits in one line without wrapping,...

26 Mar at 10:0

How to run ~/.bash_profile in mac terminal

How to run ~/.bash_profile in mac terminal So I'm installing some things for coding and personal usage, and I need to run this in the terminal (I'm on Mac if you didn't read the title). `~/.bash_profi...

8 Jul at 07:10