tagged [terminal]

How to move the cursor word by word in the OS X Terminal

How to move the cursor word by word in the OS X Terminal I know the combination + to jump to the beginning of the current command, and + to jump to the end. But is there any way to jump word by word, ...

1 Jan at 07:57

Can't access mysql from command line mac

Can't access mysql from command line mac MySQL on OS x 10.6 is located in `/usr/local/mysql/bin/mysql`. I get command not found when I type `mysql --version` in the terminal. Is this because the socke...

21 Oct at 12:34

How to edit a text file in my terminal

How to edit a text file in my terminal I'm using Linux mint and using the vi command to create text files, now that I created a text file and saved it. How do I get back into to edit the text file aga...

29 Feb at 08:46

How can I increase the cursor speed in terminal?

How can I increase the cursor speed in terminal? How can I increase the cursor speed in terminal? I have Mac OS X by the way. It would also be interesting to know it for Linux. I don't know what I sho...

22 Dec at 19:24

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 can I set my default shell on a Mac, e.g. to Fish?

How can I set my default shell on a Mac, e.g. to Fish? I do not like to retype `fish` every time I start terminal. I want [Fish](https://en.wikipedia.org/wiki/Fish_(Unix_shell)) on by default. How can...

15 Jul at 13:56

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

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

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

Add pygame module in PyCharm IDE

Add pygame module in PyCharm IDE I've downloaded `pygame-1.9.1release.tar.gz` from the Pygame website. I extracted and installed it and it's working fine in the command line Python interpreter in Term...

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

How to call VS Code Editor from terminal / command line

How to call VS Code Editor from terminal / command line The question says it all. How can I open VS Code editor from - - e.g. for notepad++ I write `> start notepad++ test.txt` By the way, the editor ...

How do I invoke a text editor from the terminal?

How do I invoke a text editor from the terminal? In the Windows command prompt, I can type `notepad helloworld.cpp` which will then create a file with the name and open up Notepad for me. Is there a s...

9 Apr at 09:58

Open new Terminal Tab from command line (Mac OS X)

Open new Terminal Tab from command line (Mac OS X) Is it possible to open a new tab in Mac OS X's terminal from the command line in a currently opened tab? I know that the keyboard shortcut to open a ...

1 Jun at 22:16

Git says "Warning: Permanently added to the list of known hosts"

Git says "Warning: Permanently added to the list of known hosts" Every time I use git to interact with a remote, such as when pulling or pushing, I am shown the following message: > Warning: Permanent...

9 Sep at 15:15

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 edit/save a file through Ubuntu Terminal

How to edit/save a file through Ubuntu Terminal This is quite a simple question: I just need to open a file (this filename is galfit.feedme). I can view the file with view galfit.feedme when I'm in th...

8 Jul at 20:28

How to examine processes in OS X's Terminal?

How to examine processes in OS X's Terminal? I’d like to view information for processes running in OS X. Running `ps` in the terminal just lists the open Terminal windows. How can I see all processes ...

22 Oct at 10:41

count number of lines in terminal output

count number of lines in terminal output couldn't find this on SO. I ran the following command in the terminal: and this displays the list of files where the keyword curl occurs. I want to count the n...

17 Sep at 10:31

How to make the tab character 4 spaces instead of 8 spaces in nano?

How to make the tab character 4 spaces instead of 8 spaces in nano? When I press TAB in `nano` editor, the cursor will jump with 8 spaces like this: how can I set the tab stop width to 4 spaces to dis...

25 Jun at 05:52

How to run a specific Android app using Terminal?

How to run a specific Android app using Terminal? I installed Eclipse and Android SDK already. Everything is running fine. I want to install an .apk file so I follow the instruction already. But the p...

Show colored compilation errors in C++ on Terminal

Show colored compilation errors in C++ on Terminal Is there any way to show compilation errors in colors on the terminal? I mean when we do "g++ filename.cpp", is there a way to show the compiler mess...

22 Nov at 19:35

How to use terminal services programmatically

How to use terminal services programmatically I want to access remote server using my program (C# .NET) and execute there a program in the context of connected user, just like using Remote Desktop. I ...

How to execute a Ruby script in Terminal?

How to execute a Ruby script in Terminal? I've set everything up that I need on my Mac (Ruby, Rails, Homebrew, Git, etc), and I've even written a small program. Now, how do I execute it in Terminal? I...

2 May at 23:55

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