tagged [terminal]

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

Change all files and folders permissions of a directory to 644/755

Change all files and folders permissions of a directory to 644/755 How would I change all files to 644 and all folders to 755 using `chmod` from the `linux` command prompt? (Terminal)

2 Feb at 19:5

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

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

SVN Commit specific files

SVN Commit specific files Is there any way to commit only a list of specific files (e.q. just one of the list of files that SVN wants to commit). I'm working on MAC OS X under Terminal, without any UI...

26 May at 13:19

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

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

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

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

How to run Ruby code from terminal?

How to run Ruby code from terminal? I need to run a few lines of Ruby code from terminal, but I can't find the needed parameter for it. Can you explain how to do this?

30 Mar at 22:30

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

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

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

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?

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

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

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

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