tagged [terminal]

Kill python interpeter in linux from the terminal

Kill python interpeter in linux from the terminal I want to kill python interpeter - The intention is that all the python files that are running in this moment will stop (without any informantion abou...

25 Aug at 12:1

Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?

Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)? I was watching [this](https://www.youtube.com/watch?v=oT1A1KKf0SI), and, as you can see, the first command I am t...

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

Color text in terminal applications in UNIX

Color text in terminal applications in UNIX I started to write a terminal text editor, something like the first text editors for UNIX, such as vi. My only goal is to have a good time, but I want to be...

26 Apr at 15:25

How to remove files and directories quickly via terminal (bash shell)

How to remove files and directories quickly via terminal (bash shell) From a terminal window: When I use the `rm` command it can only remove files. When I use the `rmdir` command it only removes empty...

8 Nov at 02:27

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

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

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

How to open a new tab in GNOME Terminal from command line?

How to open a new tab in GNOME Terminal from command line? I'm using Ubuntu 9.04 x64 and when I write: At the terminal, I expect it to open a new tab in the same terminal window. But it opens a new wi...

26 Jan at 04:2

How can I pass a file argument to my bash script using a Terminal command in Linux?

How can I pass a file argument to my bash script using a Terminal command in Linux? So my question is how can I pass a file argument to my bash script using a Terminal command in Linux? At the moment ...

20 Jun at 09:12

After installing Homebrew I get `zsh: command not found: brew`

After installing Homebrew I get `zsh: command not found: brew` ``` ➜ ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -e:77: warning: Insecure world...

21 Oct at 22:7

Use of parallel / serial port redirection to transfer data from Terminal desktop to local computer

Use of parallel / serial port redirection to transfer data from Terminal desktop to local computer Amongst features of terminal desktop services running RDP port, there is port redirection of parallel...

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

curl: (6) Could not resolve host: google.com; Name or service not known

curl: (6) Could not resolve host: google.com; Name or service not known when I try to load a web page to terminal it gives `curl: (6) Could not resolve host` error. I have internet in my PC and trying...

26 Jul at 11:11

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

How to view unallocated free space on a hard disk through terminal

How to view unallocated free space on a hard disk through terminal I want to view the unallocated free space on my hard disk through terminal. I've burned my brains searching the internet for a possib...

6 Jan at 22:23

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

C# execute a terminal command in linux

C# execute a terminal command in linux I want my c# application (which I execute on a raspberry pi) to run a bash script whenever it starts.. basically : the script is located in `/etc/init.d` and is ...

15 May at 13:27

Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools) I updated to the latest OS, and/or restarted my computer (this happens on every...

13 Sep at 14:7

How can I display the current branch and folder path in terminal?

How can I display the current branch and folder path in terminal? I've been watching some of the Team Treehouse videos and they have a very nice looking terminal when working with Git. For example the...

27 Jun at 02:20

using scp in terminal

using scp in terminal I have created a file on a remote computer that I have ssh-ed into. I want to transfer the file back to the laptop I am using at the moment. I see that I am supposed to use the c...

14 Jan at 20:17

Error when trying to run code: Debugger operation failed, Native error= Cannot find the specified file

Error when trying to run code: Debugger operation failed, Native error= Cannot find the specified file I recently completely transitioned to Linux but struggle to find a good way to code in C#. I disc...

30 Aug at 09:31

How to find the serial port number on Mac OS X?

How to find the serial port number on Mac OS X? I have just started experimenting with Serproxy and Arduino to get some serial data into Flash Builder/Flex. Serproxy seems to work fine and seems to co...

5 Oct at 19:58

How to terminate process from Python using pid?

How to terminate process from Python using pid? I'm trying to write some short script in python which would start another python code in subprocess if is not already started else terminate terminal & ...

25 Jul at 11:37

How do I clear/delete the current line in terminal?

How do I clear/delete the current line in terminal? If I'm using terminal and typing in a line of text for a command, is there a hotkey or any way to clear/delete that line? For example, if my current...

21 Mar at 04:28

OS X Terminal shortcut: Jump to beginning/end of line

OS X Terminal shortcut: Jump to beginning/end of line I know that I can jump to the beginning and end of a line inside the OS X terminal with + and + . But I'm so used to jumping with + arrow and + ar...

14 Dec at 02:6

Setting the correct encoding when piping stdout in Python

Setting the correct encoding when piping stdout in Python When piping the output of a Python program, the Python interpreter gets confused about encoding and sets it to None. This means a program like...

Mac install and open mysql using terminal

Mac install and open mysql using terminal I downloaded the mysql dmg file and went through the wizard to run. Done. I have also started mysql server under system preferences. The purpose of me doing t...

28 Aug at 07:40

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

How to remove entry from $PATH on mac

How to remove entry from $PATH on mac I was trying to install Sencha Touch SDK tools 2.0.0 but could not run it properly. It created an entry in the $PATH variable. Later I deleted the sencha sdk tool...

8 Apr at 06:54

Fastest way(s) to move the cursor on a terminal command line?

Fastest way(s) to move the cursor on a terminal command line? What is the best way to move around on a given very long command line in the terminal? Say I used the arrow key or - to get this long comm...

26 Aug at 09:40

SSH SCP Local file to Remote in Terminal Mac Os X

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 SSH through a VPN. This is connecting to the Virt...

6 Aug at 03:23

Single line sftp from terminal

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 on a remote server. I've gotten used to using my terminal to `sftp` int...

9 Jan at 07:28

How to open the command prompt and insert commands using Java?

How to open the command prompt and insert commands using Java? Is it possible to open the command prompt (and I guess any other terminal for other systems), and execute commands in the newly opened wi...

3 Feb at 02:54

How can I fix the "zsh: command not found: python" error? (macOS Monterey 12.3, Python 3.10, Atom IDE, and atom-python-run 0.9.7)

How can I fix the "zsh: command not found: python" error? (macOS Monterey 12.3, Python 3.10, Atom IDE, and atom-python-run 0.9.7) Since I got the [macOS v12.3](https://en.wikipedia.org/wiki/MacOS...

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

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

Failed to add the host to the list of know hosts

Failed to add the host to the list of know hosts Mac OSX Lion 10.7. In an effort to get around weird environment stuff (homebrew wasn't installing wget, and I had all sorts of weird blocks and errors)...

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

Failed to build gem native extension (installing Compass)

Failed to build gem native extension (installing Compass) When I attempt to install the latest version of compass ([https://rubygems.org/gems/compass/versions/1.0.0.alpha.17](https://rubygems.org/gems...

20 Mar at 20:59