New answers tagged terminal
5
votes
Accepted
Terminal is not fully functional warning with less but not with more (which is also less)
The same program can behave differently if it is being run with different parameters: in your first command it receives argv[] = {"less", NULL} as the command-line argument array, while the ...
0
votes
How to access a network folder in Ubuntu using the terminal
For those who are using the answers here above to access their Google Drives, there's a super easy solution without dealing all this.
Some guy built a FUSE filesystem for Google Drive, written in ...
0
votes
VScode, keybindings for integrated terminal
You can use:
"when": "editorTextFocus || terminalFocus"
which will work when the editor or terminal is focused.
You can find all available contexts including terminalFocus here. ...
1
vote
Accepted
Bash terminals launched from windows UI have an invalid `!::=::\` variable set
This has been reported in the Docker post
docker stack deploy Fails When Run From cmd.exe on Windows with CLI v23+ #4078.
The explanation is that when you run a command from the
graphical interface, ...
0
votes
Read all of the terminal command history in OS X
per https://apple.stackexchange.com/questions/423463/how-to-display-the-full-command-history-in-terminal -
history 0
Will output the full history
0
votes
Putty setting for different colors of text transmitted and received
The feature you're looking for doesn't exist in terminals because the concept of "transmitted characters" vs. "received characters" doesn't exist the way you imagine them. From the ...
0
votes
What's the best way to replay keystrokes on to my terminal?
I ended up using expect's interact command, as one of the comments above mention. The general template is like this:
spawn ssh ...
send "some keys"
expect {
...
}
interact
-2
votes
Accepted
Trap signal in Bash Terminal of linux
To trap a signal, we have to write in syntax: trap .
This results in that signal unable to get executed and when generated by the system or user, blocks its execution and run the command written ...
0
votes
Cannot open Jupyter Notebook in the new zsh shell in macOS
The issue is to do with the '.bash_profile' file not being recognised by Zsh. Instead Zsh needs a '.zshrc' file. To fix simply follow these steps:
Open Finder and navigate to /Users/{YourUser}/
Press ...
0
votes
Is there a (linux) terminal character picker?
Dumping / browsing full unicode table
From Alex R's answer,
There is my 'dumpUnicode' python3 version:
#!/usr/bin/python3
from unicodedata import name
for i in range(0x10FFFF):
try:
var = ...
0
votes
Converting .mp4 to .264 using FFmpeg
To transform an MP4 file to its H.264 codec using FFmpeg, you can use the following command:
ffmpeg -i input.mp4 -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k output.mp4
This command uses ...
0
votes
Null character appears on its own in TTY
Facing a similar issue, also on Arch. When I go to log in it keeps typing null characters. But mine comes in pairs, so I'll get a long-ish pause then a null character, a short pause, and another null ...
1
vote
Ctrl-C not working on MacOS/Zsh
It seems doing
trap "echo hello" INT
and then remove the trap handler using trap INT put the signal mask back into the correct form.
Ctrl-C now works again.... (weird how that happed I am ...
1
vote
why is windows 11 terminal with launch size of 256 x 80 is bigger than a command prompt at same launch size
Just to make sure I was clear, @gronstaj basically answered my question, i.e., b/c of difference between pixals and points, I was able to get Terminal to almost exactly the same size as a console/...
-1
votes
why is windows 11 terminal with launch size of 256 x 80 is bigger than a command prompt at same launch size
In Windows 11, you have the option of opening CMD either inside the
classic Windows Console Host or inside the new Terminal Windows.
The default is now to open inside Terminal Windows, but this
can be ...
1
vote
Accepted
Extention for scrolling down in linux terminal
Many terminal emulators show a scroll bar and allow you to see the "history" of what I think you call the "command running area". Your shell and many commands you can run from a ...
Community wiki
1
vote
Accepted
Why does terminal colour scheme have two values for each colour?
This is not a standalone answer, but I try to continue @Destroy666's answer and dig deeper on the "why".
As the rest of computers, monitors/terminals also improved in small steps during the ...
1
vote
Why does terminal colour scheme have two values for each colour?
This is because traditionally ANSI escape sequences had colors defined as 8 basic colors (black, red, green, yellow, blue, magenta, cyan, white) and their bright equivalents, such as "bright ...
0
votes
How can I copy on select in the OS X Terminal like PuTTY does?
As far as I see, the only way to make the standard Mac OS Terminal behave like putty, is:
to Select&Copy: hold Command + Shift and double click the text/path you want to copy. It's automatically ...
0
votes
Swap left/right click on OS X via terminal
Can do via IOHID directly:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <IOKit/hidsystem/IOHIDLib.h>
#include <IOKit/hidsystem/IOHIDParameter.h>
#...
0
votes
How do I resize the ‘usable area’ of a tmux session?
there is also:
tmux resize-window -A # to resize to the largest session or
tmux resize-window -a # to the smallest session
(or specific geometry see man tmux |less +/resize-window)
(of course ...
2
votes
How can I achieve the look of the Kali terminal in Ubuntu?
Kali PROMPT in Ubuntu
Open ~/.bashrc file and search for PS1 variable and replace the 1st PS1 variable i.e this
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\...
Top 50 recent answers are included
Related Tags
terminal × 4799macos × 1364
linux × 1334
bash × 975
command-line × 544
mac × 458
ubuntu × 367
ssh × 324
shell × 288
zsh × 207
unix × 203
vim × 193
tmux × 189
windows × 173
colors × 150
iterm2 × 134
keyboard-shortcuts × 114
terminal.app × 89
debian × 84
python × 82
console × 82
putty × 79
gnome × 77
gnu-screen × 71
git × 69