New answers tagged

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 ...
user1686's user avatar
  • 415k
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 ...
goodyonsen's user avatar
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. ...
Destroy666's user avatar
  • 2,605
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, ...
harrymc's user avatar
  • 445k
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
storm_m2138's user avatar
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 ...
egmont's user avatar
  • 2,241
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
Jeenu's user avatar
  • 256
-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 ...
Humza Config's user avatar
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 ...
alpacinohead's user avatar
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 = ...
F. Hauri  - Give Up GitHub's user avatar
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 ...
AlexR1712's user avatar
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 ...
PMunch's user avatar
  • 111
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 ...
thilo's user avatar
  • 21
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/...
William Viergever's user avatar
-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 ...
harrymc's user avatar
  • 445k
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 ...
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 ...
egmont's user avatar
  • 2,241
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 ...
Destroy666's user avatar
  • 2,605
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 ...
USER_RANDOM_010101NR's user avatar
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> #...
1110101001's user avatar
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 ...
MacMartin's user avatar
  • 823
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\]\...
ARAVIND SWAMI's user avatar

Top 50 recent answers are included