Skip to main content

Questions tagged [terminal]

A terminal is a hardware device used for entering data into and displaying information from a computer. Terminals were frequently used in the days of mainframe computers. Today, most operating systems offer text-based "terminal emulators", which replicate the functionality of a classical terminal, also referred to as a "system console".

Filter by
Sorted by
Tagged with
1 vote
2 answers
4k views

Script to auto execute creation of ssh tunnel

I'm a CS student, and still learning a lot of these things, and so please bear with me if I don't have a full grasp on what I'm trying here. I'm on a Mac, connecting to a linux machine. I can set up ...
0 votes
0 answers
18 views

Terminal keywords highlighting [closed]

I saw on a tutorial that when you write keywords on the terminal it automatically highlights them: In my case it shows conda in same color (white) Already try to change the theme, but didn't worked. ...
1 vote
1 answer
26 views

Terminal Powershell differences

When I type dir /A into terminal I get desirable output, but when I type the same to Powershell i get dir : Cannot find path 'C:\A' because it does not exist. + CategoryInfo : ObjectNotFound: ...
11 votes
3 answers
17k views

How can I select text in the Mac OS X Terminal without a mouse (for copy and paste, emacs)

I am using Mac OS X Snow Leopard 10.6.8 and emacs 23.3.1. In the Terminal I can mark text with the mouse, copy it with CMD-C and paste it with CMD-V. This is all I need and it works great, even within ...
1 vote
3 answers
7k views

Changing default terminal of Code::Blocks 13.12 in Windows

I seem to be at a dead end here. I cannot change the terminal for Code::Blocks on Windows, although it is a cakewalk in Linux. The option is greyed out. Running as admin doesn't work also. The box ...
402 votes
21 answers
562k views

How do I detach a process from Terminal, entirely?

I use Tilda (drop-down terminal) on Ubuntu as my "command central" - pretty much the way others might use GNOME Do, Quicksilver or Launchy. However, I'm struggling with how to completely detach a ...
0 votes
1 answer
5k views

backup GPT table is corrupt. Running fdisk

I went to check my disk with fdisk -l and came up with one that says the The backup GPT table is corrupt, but the primary appears OK, so that will be used. I'm not sure which disk it is referring to ...
0 votes
1 answer
4k views

Starting a command in a new screen session doesn't work

I want to execute a command in a new screen session (and detach from it) but I don't get it to work. I tried to start a process in a new screen session and detach from it with this: screen -d -m ...
3 votes
2 answers
6k views

konsole color schemes

I've noticed that KDE's konsole terminal program uses different colors depending on what is in the file system, such as a directory, a compressed file, a socket, a shared directory, et cetera. I ...
0 votes
0 answers
18 views

Four pole headphones into a three pole television three pole connector? [closed]

Can I plug a four pole or pin from my headphones into a television headphone jack that's a three pole?
1 vote
1 answer
5k views

gnome-terminal not openning in Ubuntu 20.04

Terminal does not open in Ubuntu 20.04, this is possibly after an upgrade of the software (apt upgrade). I am getting the following error when trying to execute /usr/bin.gnome-terminal in a xterm. /...
5 votes
1 answer
3k views

What is the significance of baud rate in stty settings on linux?

I am wondering what the baud settings have to do with my terminal settings. How is the baud speed affecting my terminal? Shouldn't the terminal do more with CPI i.e. character per second settings? Is ...
0 votes
2 answers
4k views

Copy shell configuration from one machine to another?

I've got login to another server where shell configurations are not like I would want. For example I don't see my username and CWD on prompt, and when I press arrow key, instead of giving last entered ...
1 vote
0 answers
77 views

How could I have VScode on Windows 10 with the default terminal changed to WSL2 Ubuntu-24.04 like a native linux distro?

I'm trying to have inside VScode for Windows 10 (Microsoft Windows [versão 10.0.19045.4474]) options to change the terminal from default to another one such WSL2 Ubuntu 24.04. I have installed ...
0 votes
1 answer
22 views

Tmux prefix doesn't work unless ~/.tmux.conf is forced

I'm currently including tmux into my work flow but I've not been able to use its prefix like it is set up natively C-b on start. My work around to this problem is to set another key bind on the ...
8 votes
2 answers
6k views

Shared connection frequently closes when opening a new connection

I'm making heavy use of reusing a shared connection which I open to a remote box at the beginning of my workday. My .ssh/config looks somewhat like this: ControlMaster auto ControlPath ~/.ssh/...
2 votes
1 answer
355 views

Is there a way to have a dynamic system status area in the Linux terminal that updates while one does something else?

I'm thinking for some servers I look after, that after I SSH in to the box it would be very helpful to see things like disk usage, CPU usage and the such in the actual terminal I'm in as I’m working. ...
0 votes
0 answers
33 views

Is there a name for the text that shows up after executing each command line in a CLI?

for example in linux terminal I have jurek@debian:~$ man help No manual entry for help I want to know how the second line is called bc I want to ask an other question "How to copy this term (I'm ...
0 votes
0 answers
22 views

tmux ctrl-b + [arrow key] for navigation not working

I am pressing Ctrl+B, releasing both keys, and then pressing arrow keys, but it is not navigating (instead it is going through past commands as if Ctrl+B was not pressed). I'm using tmux in a SSH ...
7 votes
6 answers
39k views

Terminal fails with a “Could not create a new process and open a pseudo-tty.” message

Yesterday, I upgraded my Mac to Mac OS X 10.9 (Mavericks), and since then I couldn’t open the “Terminal,” each time I open a session, the following error is shown: [Could not create a new process and ...
4 votes
2 answers
10k views

How do delete highlighted text in a command line

So I was trying to delete a portion of a command line command, but when I type backspace(delete option), it merely deselect the portion rather than delete the selected text as I expected. Is there a ...
17 votes
3 answers
22k views

How to force ls terminal command to show results in Bytes while I have set the default to ls -h in bash profile?

I am following the snippet here to improve my terminal command in Mac OSX. It sets the default value of ls results to human-readable by exporting alias ls='ls -GFh' to bash profile file. This is very ...
11 votes
4 answers
21k views

Default Alacritty terminal for WSL2

I just installed WSL2 with Ubuntu 20.04 on my Windows 10 machine and I also installed Alacritty terminal emulator for Windows. I'm wondering is there a way to make WSL to default into using Alacritty ...
0 votes
1 answer
81 views

How to disable row highlighting on iterm and oh-my-zsh?

I just setup the new Macbook today and start to have the weird highlighting with the blue frame on the row when i use my mouse to select a particular row on the terminal. The other row will be faded a ...
0 votes
1 answer
10k views

cannot execute binary file python on mac local machine

python --version shows that I have version 2.7.10 installed on my mac, it's located in /System/Library/Frameworks/Python.framework/Versions/2.7 trying to execute python from terminal raised the error: ...
0 votes
0 answers
35 views

How to remove escape sequence from VSC terminal?

Just recently these escape sequences have been showing up on my PowerShell terminal inside VS Code. I've attached a picture of what this looks like: However, inside the PowerShell terminal itself, it ...
1 vote
1 answer
258 views

Retrieve current folder on custom command on gnome-terminal

I'm using fish for some days upon Ubuntu gnome but I don't know if that's possible to keep the feature "open the terminal in a specific folder". Inside Files app, I right click inside a ...
87 votes
9 answers
98k views

Clear terminal using keyboard shortcut

I was curious if there is a way to clear the terminal buffer/output through some keyboard shortcut. I am using Ubuntu. I am aware that Ctrl + L clears the terminal, but you can still scroll back to ...
76 votes
9 answers
209k views

How can I use a Bash-like shell on Windows?

I use Linux and a Mac, and I'll be teaching some command line stuff soon. What can I install on Windows to give me a terminal window most similar to a basic Mac/Linux Bash shell? I would like to ...
9 votes
1 answer
13k views

How to resume execution after pressing pause/break key in windows command line

Whilst compiling a rather huge python extension in cmd with the command pip install. I wanted to pause and look at some of the output, so I pressed the Pause / Break key on my keyboard. Pressing the ...
0 votes
1 answer
56 views

MySQL & Terminal: Permissions Issue

I cannot seem to push information up into my database via Terminal. MySQL logic is proper, and it acts like the dump was successful. However, the data never gets pushed up into the DB. I'm even logged ...
0 votes
1 answer
68 views

How to do a Proximity text search, 2 + words?

What is a Linux terminal command to do a Proximity text search? Search a directory, recursively, for files that contain : 2 words or more within 99 characters of each other any order of above words. ...
4 votes
1 answer
4k views

Tab Auto-Completion in Mac OS X when using sftp in terminal

i have been getting very frustrated lately since the readline functionality has been removed from MacOSX and Tab Auto-Completion doesn't work anymore. So i was wondering if anyone knew a good ...
0 votes
2 answers
98 views

Open Cygwin/MinGW/PowerShell/Cmd in current folder open in Windows Explorer

Lets say I have a folder open in Windows Explorer like this: I want that I be able to open a Cygwin terminal directly here by using keyboard shortcut or alteast by doing right click and selecting an ...
1 vote
1 answer
4k views

What sequence does PuTTY send for ALT + DEL

When I connect to my Debian Wheezy Beta 4 server with PuTTY 0.62 on Windows 7 I'm experiencing a problem. My login shell is Zsh and it is configured to handle ALT + DEL for the action delete-word (...
0 votes
1 answer
4k views

How to delete locked app on MacOS (Catalina)

I'm trying to delete a locked app on Catalina. In recovery mode, I disabled SIP, restarted and gave Terminal Full Disk Access. Tried this: /Volumes/Macintosh\ HD/Applications/Crashplan.app: ...
106 votes
9 answers
589k views

How to switch git user at terminal?

I am trying to push a project to a remote repository from the command line. From inside my local directory, I hit: $ git push and obtain the following error: remote: Permission to username1/repo....
0 votes
0 answers
20 views

iTerm2 - run a command in every new pane

I'm using iTerm2 and oh-my-zsh. Whenever I start a session — a new iTerm2 window — it reads my .zshrc file and runs a few commands — e.g. getting the right Node version from .nvmrc. But when I open a ...
3 votes
2 answers
159 views

Is there a tool like `script` (Linux/Solaris/etc) for Windows?

Perhaps the worst-named tool in the *nix world, script is extremely handy when you want to capture all the output of a terminal session. Is there a tool like it for Windows? Specifically, without ...
3 votes
2 answers
11k views

Sourcing ~/.bashrc in ~/.profile?

I'm quite new to developing under OSX and assigned some aliases and other preferences in the ~/.profile initially, however it got quite big and messy after a while because I had a lot of Environment ...
15 votes
2 answers
14k views

How do I get files found by command-line 'find' ordered by modification date in OS X?

Using the Mac OS X Terminal, how do I write a find command that orders results by modification date (most recent first)? There are similar questions already, but they refer to GNU find and POSIX, but ...
0 votes
1 answer
43 views

How to run a program with a specific version of Python from the terminal on Windows?

I have several versions of Python installed on my system, and a software I use requires using Python3.11, the problem is that the most recent version of Python is the one Windows defaults to, i.e. if ...
0 votes
0 answers
27 views

Grep’s result coloring, and right-to-left scripts

I have a text file with a single line that contains the single Yiddish word azoy, in Hebrew script: אַזױ. Then I grep for occurrences of the oy character, ױ. (This is highly simplified of course, in ...
0 votes
1 answer
4k views

Libcurl not usable on mac os x

I'm running the configure command to install a particular software package, but it fails when it reaches it's libcurl requirement. This is the output it gives: checking for the version of libcurl.....
0 votes
2 answers
1k views

How do I copy the "tree" command output from Linux Terminal without losing the red/blue/white colours of the folder/file tree?

When copying the output of the "tree" command from the Terminal, the colours that were shown in the terminal get lost, whether I put it here or in a Google Drive Doc. Example: tree /var/log/...
0 votes
1 answer
39 views

Fairly new computer, windows 10 pro, not able to open cmd in a specific path by typing cmd in the address bar of file explorer

I used to be able to do this on my laptop. But now I have a desktop and when I try this, it just shows C:\> instead of being in the path I want it to be in. I have no idea how to fix this or where ...
1 vote
1 answer
54 views

Why I can't change the prompt in VSCode's terminal?

I am trying to change the prompt in my VSCode's terminal. My OS is MacOS Monterey 12.6. I use the zsh and I change the PS1 in .zprofile,such like this. Then I use echo to test.The others can work ...
0 votes
1 answer
4k views

Terminal returning error "bash: /usr/bin/(command) /bin/bash: bad interpreter: No such file or directory" unless command is preceded with bash

When I look up this particular error on the web, every single one of them are in regards to shell scripts. I keep getting this error in the terminal itself and my home server is completely unusable ...
4 votes
2 answers
7k views

Paste in Nano is not working

I used Ctrl+Shift+6 to select a block of text in Nano, then cut it with Ctrl+K.  This successfully removed the text from my buffer. But when I do Ctrl+U to paste what I had cut, nothing is pasted. ...
0 votes
1 answer
7k views

Connect to wifi via bash script in Debian

This command seems to be kinda outdated because it only supports wep: iwconfig wlan0 essid WIFI_NETWORK key s:WIFI_PASSWORD dhclient wlan0 I found an alternative way that supports wpa2, but it ...

1
2 3 4 5
99