Questions tagged [terminal]

A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

How to analyze an accidental copy/paste in the terminal?

While I was trying to copy and paste a command line from a web page, I somehow managed to copy/paste the source code of the entire page, with all the tags and so on (don't ask me how). This is the ...
0
votes
0answers
55 views

chmod always gives “illegal option” error

No matter what chmod command I run, I am always getting chmod: illegal option -- - usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ... chmod [-fhv] [-R [-H | -...
0
votes
1answer
22 views

Source files when opening an external terminal through Bash

For a start up script I want to open multiple several terminal windows on an Ubuntu system and execute some commands in each. Some of those commands require files to be loaded. Normally I do that with ...
1
vote
0answers
36 views

any reason to NOT “alias reset=tput reset” in .bashrc?

"tput reset" is much faster than "reset" (as discussed here), and running "reset" is annoyingly slow, is there some reason why i shouldn't add alias reset=tput reset in .bashrc ? is it likely to break ...
0
votes
0answers
44 views

Want the terminal output (stderr and stdout) of the previous command executed in terminal

I'm trying to store both stdout and stderr from the terminal (and if possible stdin given by user) in a file for every command. So I started creating a trap function to execute every command in an ...
5
votes
6answers
1k views

How to get previous command without arrow key [duplicate]

Usually we can use the upwards arrow key to get the previous command. But that does not always work, it can happen that you get the ASCII sequence instead ("^[[A...") but I also wonder if there was ...
-8
votes
0answers
88 views

Does zapping TV (TeleVision) channels also give an “orthogonal feeling”? What is an “orthogonal feeling” on a Linux TTY (“TeleTYpewriter”)")? [on hold]

I stumbled again over this word orthogonal in a surprising context. I opened kernel/tty_io.c in Linux 0.01: /* * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles * or rs-channels. ...
0
votes
0answers
22 views

gocr - convert .jpg to .txt file

What command carries out the converting from .jpg to .txt in gocr? I can't find it in any examples https://www.systutorials.com/docs/linux/man/1-gocr/ . Thank you
0
votes
1answer
23 views

Missing left prompt elements for powerlevel9k

noob here. I've installed iTerm2, zsh, oh-my-zsh and powerlevel9k. Afterwards I've installed Hyper3 and Spaceship prompt. Then I changed back to powerlevel9k. Can't remember if I did anything else ...
0
votes
1answer
22 views

xterm not rendering fonts correctly

I was trying to run a program in xterm but it displays fonts incorrectly. See here. Here is my .Xresources XTerm.vt100.locale: true XTerm.vt100.metaSendsEscape: true XTerm.vt100.backarrowKey: false ...
0
votes
0answers
16 views

Why export TERM=ansi fixes terminal and shell emulation incompatibilities?

I was running a arch linux container within a linux host with systemd-nspawn. The container worked perfectly, but something weird happened. The backspace would create a white space character. After ...
1
vote
2answers
45 views

Block all default commands while a bash script are running?

I want to make a custom commands directory, that only works when the shell script are running and when the user stops the script all will fall back to the default without altering the default commands ...
1
vote
2answers
58 views

How to sniff other user session in Linux?

Another user is connected to my machine by ssh and doing something (this is myself, running long command by ssh). How can I see in realtime, what is happening in his terminal session? I am root on a ...
0
votes
3answers
56 views

How to print the exact result of a command to a file

Context I have a file my-cmd: echo '<some data...>\\<some other data...>' Basically, I want to redirect the output of this command to a text file: ./my-cmd > file.txt Question My ...
1
vote
1answer
40 views

configure and install tmux plugins automatically

I'm trying to write a bash script which will setup my tmux environment automatically. Essentially what I need to do is: Copy .tmux.conf from my repo Clone https://github.com/tmux-plugins/tpm into ~/....
1
vote
1answer
35 views

On Linux, source different .zshrc files for different apps

Based on three questions: Use different profiles with ZSH (in different terminal apps), but deisgned only for macOS Different tmux configs for different sessions?, but I want to use different .zshrc ...
0
votes
1answer
31 views

Who is setting my LS_COLORS?

I'm using the bash shell, and want to change some of my ls listing colors; I've noticed that this can be controlled using the LS_COLORS environment variable, which encodes terminal colors for various ...
0
votes
0answers
9 views

How to use nano's Redo shortcut (Meta+E) in MATE terminal

I'm using: Debian bullseye with its MATE desktop environment MATE caja 1.22.1 MATE Terminal 1.22.1 GNU nano, version 4.3 In nano, Redo is mapped to Meta+E. In Keyboard Preferences I have selected "...
0
votes
1answer
27 views

Batch Rename Image Files

I have a folder with several pictures. I would like to convert the file names all into small letters and then delete all occurrences of certain strings. For example, from ...
0
votes
0answers
17 views

How to determine KDE versions on a remote system accessed via SSH?

I need to regularly know some software version numbers of remote machines that I access via SSH. The commands that I would use to get these software version numbers are: plasmashell --version ...
0
votes
0answers
18 views

Konsole's character rendering is messed up

My Konsole is messed up. The characters are rendered differently each time: As you can see the characters are all over the place, sometimes even erasing the prompt. Very a much a nuisance, this gets ...
1
vote
0answers
21 views

Command line output misaligned

I notice my terminal output was misaligned. I installed many packages and even did once upgrade from Debian 9 to 10 recently, and when I notice this small issue, it is a bit late. Does anyone get ...
-2
votes
1answer
45 views

Evidence file.pdf - evidence not found [closed]

I have in bash file: evidence file.pdf and an error command evidence not found. What should I install and what evidence command do? Thanks
2
votes
1answer
35 views

Bash characters staying when browsing history

When holding k or holding up, previously entered commands are shown, but at some point, the first 10 characters of a command longer than 10 characters stay. This is not always the first command longer ...
1
vote
1answer
34 views

How to prevent my terminal from printing last command?

I have MacOS / iTerm2 / zsh setup. After changing some settings, my terminal started to repeat last entered command. For example, if I'm in folder A, which contains folders B and C: >>ls ls B ...
1
vote
1answer
31 views

Print to file without clear character

I want to print the output of docker stats to file. For example, I am running: docker stats --format "{{ .Name }},{{ .MemUsage }},{{ .MemPerc }},{{ .CPUPerc }}" > /home/test.txt However, since ...
-3
votes
1answer
32 views

How Do I install debian packages onto mac-osx-mojave (10.14)

How Do I install debian packages onto mac-osx-mojave (10.14)
1
vote
1answer
21 views

Screen signal main terminal that it's finished and closed

Referring to here about running script in screen session in the background and closes itself. screen -dmS myscreen bash -c 'command1; command2;' How can we signal the main terminal that the screen ...
0
votes
0answers
19 views

How to close hanged pane in Terminator?

Sometimes I get Terminator panes hanged, probably due to network or remote host failure. How to close such a pane without affecting other panes? If Midnight commander was ran, then right click menu ...
0
votes
0answers
22 views

Why setting 'export CLICOLOR='yes'' affects the display spacing in my mac terminal?

As I added ‘export CLICOLOR='yes' to my .bash_profile, the spacing between words seems changed and looks really weird: the first pic is the original version and the second pic (which is colored) ...
0
votes
2answers
40 views

Why am I seeing this in the terminal?

I have installed miniconda, psi4 some days ago. But I have found them not so interesting. So I uninstalled them. But after that, I am seeing this bash: export: `PATH-/home/soumyadip/miniconda/bin:/...
1
vote
1answer
52 views

What does 'mustard color' highlighted directories mean?

When I run 'ls -laGp' command in macOS some of the folders are highlighted with this color. What does that mean? I researched but couldn't find any documentation or anything. If you let me know ...
0
votes
4answers
66 views

sed replace newline character with space

How can I use sed to replace new line character with any other character? Input: I cannot conceive that anybody will require multiplications at the rate of 40,000 or even 4,000 per hour ... ...
-1
votes
2answers
50 views

Searching command history in any interpreter

By running an interpreter trough rlwrap I have access to the command history by pressing the up and down arrow keys. However, I would like to be able to search the command history like I do in Bash (...
1
vote
0answers
53 views

Why would reading a passphrase from STDIN be disallowed but not from a PTY or argument?

I have a program that receives a secret passphrase. The options I have are to type it in manually on the terminal or to provide it as a command line argument. This makes it hard to automate in a ...
2
votes
0answers
23 views

Map console key combination to single key press

I want to map (for example) the combinations: Windows + Left == Home man setkeycode seems to only talk about single key mappings. How would I go about doing this in a Linux virtual terminal? I'm ...
0
votes
0answers
17 views

I'm trying to install Tensorflow on venv on a mac. I keep getting this error:

tensorboard --logdir /Users/chris/Documents/tensorflowlogs TensorFlow installation not found - running with reduced feature set. I literally just installed TensorFlow. This doesn't make sense. Any ...
1
vote
1answer
142 views

Relocation Error after updating Ubuntu Mate

I recently gave system update. After restarting the machine, I can't be able to open the terminal, network settings and any of my applications. The internet connectivity seems lost too. It throws the ...
0
votes
0answers
17 views

Is there a way to turn off LCD with TIMER via terminal? [duplicate]

I am currently new in Linux and I want to do things in terminal. Is there a way to turn off the LCD with TIMER via terminal?
0
votes
1answer
41 views

Change default terminal color

I often have several SSH terminals open on different servers, and I am looking for a way to keep track of them more easily. I use MacOS Terminal app. I have already customized the prompt on each ...
0
votes
0answers
20 views

Is SIGHUP sent to an orphaned process group without stopped jobs?

The GNU libc manual claims that: When a process group becomes an orphan, its processes are sent a SIGHUP signal. Ordinarily, this causes the processes to terminate. However, if a program ignores ...
1
vote
2answers
73 views

How to set Readline key bindings using ALT (Meta) or some other control key as prefix instead of `\C-` and `\e`?

I can only find examples of setting Readline key bindings using Control (\C-) or Escape (\e) as prefixes. In my case, on macOS, the \C- space is completely filled up by default key bindings, and the \...
1
vote
0answers
17 views

How to switch URxvt.transparent setting on the fly?

I would like to set a key binding in my xressources to switch the transparency setting in a terminal (without having to start another one to see changes). I didn't find a bindsym option that allows ...
1
vote
1answer
48 views

Does not work autocompletion on <TAB> in bash command line [closed]

When I tried to use auto completion in bash terminal with TAB, I have got the following error: bash: !ref: unbound variable bash: words[i]: unbound variable It is pretty annoying to manually enter ...
0
votes
0answers
33 views

Application (curses) displays differently between windowed terminal and console environment

When running my curses application in a windowed environment (Ubuntu) My borders appear correctly. However, when started from a Raspbian minimal terminal (no windowed environment) the borders are ...
3
votes
2answers
26 views

Logging shell sessions encrypted?

I log all my shell activity using script, but am worried that there are quite a few passwords and other secret stuff in these log files. Does anybody know of any way of logging the shell sessions in ...
0
votes
1answer
81 views

How to put cursor to end of line in bash

When I write something in PS1 it puts cursor at begin of the line but I want to see it in the end after $ \n starts from new line works but it is not a way. How to make it?
1
vote
1answer
35 views

FreeBSD won't load my keymap

I successfully installed FreeBSD 12 in a VM. While installing, the installer asked me what keyboard layout I want, so I selected "Czech (QWERTZ, accent keys)". After I was done, I rebooted the system ...
0
votes
0answers
25 views

How to match a prefix in Bash shell scripting using the `=~` operator in `[[`? [duplicate]

I want to match a prefix using the =~ operator in the [[ compound command. However, the below example yields "false" everytime it's executed, although man bash specifies that the RHS of =~ is a POSIX ...
0
votes
2answers
70 views

Why are some blank spaces yellow when selected?

compare the following screenshots of terminal