Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
34 views

How can I run code in Unix? [on hold]

I have my git repository cloned to a specific directory in my terminal. I need to run my code on the file in the specific directory. How do I run the python code on the specific file?
-1
votes
2answers
27 views

Unable to terminate a running program / application

I am having trouble terminating applications started from the terminal - for example, I used: cd /usr/bin and ls to determine that the gimp app is here. I then started gimp by typing "gimp" - started ...
1
vote
1answer
24 views

rxvt-unicode some colors missing on CentOS 7

I have the following configuration. It works fine on Ubuntu 16. However, on CentOS 7, some colors of rxvt are not displayed (just white), and some are totally fine, there is no obvious differences ...
1
vote
0answers
13 views

ksh keybind trap

I am trying to follow this code sample http://www.kornshell.com/examples/keybind # Example from page 98 typeset -A Keytable trap 'eval "${Keytable[${.sh.edchar}]}"' KEYBD function keybind # key [...
1
vote
1answer
29 views

Launch default terminal emulator by command

How do I launch the default terminal emulator by command? x-terminal-emulator won't work because I'm not using a Debian and xdg-terminal doesn't seem to exist either. Is there any other way to launch ...
-1
votes
0answers
29 views

Kali Linux stuck after login screen (dual boot with windows10 & kali linux 2018.4) possible reasons? [duplicate]

After deciding to dual boot my acer aspire laptop which is running windows 10 with kali linux I faced the problem that my login screen in kali linux freezes after loging in. When I did the dual boot ...
0
votes
1answer
35 views

Customize bash looks for user profile on debian 9

I am trying to customize the bash prompt on Linux Debian 9. I got the script from Github and I modified the file .bashrc On the terminal, when I log in as root, I can see the customization I was ...
0
votes
1answer
25 views

Shell/terminal/bash command or script for copying list of files from one project to another

Let's say I have a project called my-project/ that lives in it's own directory and has the following file structure. my-project/ . ├── src │ ├── index.html │ ├── main.js │ ├── normalize.js │ ...
0
votes
1answer
15 views

How do I undo “defaults write com.apple.dock static-only -bool TRUE; killall Dock” on Mac terminal?

I was looking through an article of "clever terminal hacks" to use on Mac. I did not realize that some of these were irreversible and most of them didn't come with instructions on how to undo them. ...
0
votes
0answers
11 views

macOS - MySQLWorkbench “cannot start SSH tunnel manager” only when opened via command line

I'm trying to get two instances of MySQLWorkbench running simultaneously but I'm running into this issue. If I navigate to my applications and double click the application everything works fine and I ...
1
vote
2answers
26 views

How can I get colors when executing `bash -c`?

No colors are displayed when running bash -c "ls -l" (CentOS 7.2). I have an obscure reason to want to show the colors after all. Can I disable this... color suppression? For anyone wondering about ...
0
votes
1answer
13 views

Date not updating in .alias

I have an alias file with the following line: alias ss="import /home/User/Pictures/screenshots/screenshot-$( date '+%Y-%m-%d-%H-%M-%S.png' )" In terminal, when I type "ss" it runs the command and ...
1
vote
1answer
31 views

Log Console Output [duplicate]

Is there a way to not only protocol/log the console inputs (like the history), but also the console output by default (without the constant usage of pipes)?
0
votes
1answer
15 views

How to start tmux upon running terminal?

I'm using xfce, and want to create a shortcut Super + t for starting up terminal with tmux. What command should I put it to execute upon shortcut? I tried st tmux attach , however it fails when there ...
0
votes
0answers
13 views

Why can I not run KDE redshift in a cronjob? [duplicate]

I'm running KDE Neon 5.14 (based on Ubuntu 18.04) and KDE Plasma 5.14.2. A command redshift (/usr/bin/redshift) is provided to adapt the screen colors to red tones for evening/night. I can ...
0
votes
2answers
27 views

How to copy all files in all directories with specific filename to one destination?

Let's assume that I have these files: /1/tEst.mp4 /1/Test.mP4 /1/subdirectory/TEST2.mp4 /1/.20181106Test2.mp4 How can I copy all of these files into /2/Videos with a single command line? All files ...
0
votes
0answers
19 views

Start terminal with a specific size using wmutils/core

link: https://github.com/wmutils/core wmutils/core provides some utils that can be used to move/resize/.. windows in X, does not depend on window manager's features. In case I'd like to use dmenu ...
2
votes
0answers
19 views

Printing the screen (text-mode) to paper without drivers?

I am currently working on a machine that has entered Emergency Mode for CentOS 7.6. To give myself a hard copy of logs and messages that appear on the screen (which are not from a file), I will take ...
1
vote
1answer
47 views

How to create a list of links?

So I have a website links that go like this: site.com/1 site.com/2 site.com/3 etc, up to 1000. How to create a list of this using bash or any programming language on linux? I know the question is most ...
0
votes
0answers
38 views

SED cuts off first letter of file name [duplicate]

I have a problem I don't understand. This works: sed 's/CEName\.objects\.create(\*\*name_data)/self\.create()/g' test_function_view_customer_profile.py But this: sed -i 's/CEName\.objects\.create(\*...
2
votes
3answers
82 views

Why does XTerm support 63 function keys?

According to this table of terminal emulators and their keycodes, new versions of XTerm recognize function keys from F1, F2, F3, ... all the way up to F63. Most keyboards only have physical function ...
0
votes
1answer
36 views

Can someone explain to me what this **diff** means..? [duplicate]

I'm having an extremely hard time to read this can someone explain what it means, and what the difference between the two is ? $> diff -U 3 user_output_test1 test1.output | cat -e --- ...
0
votes
0answers
15 views

What happens in the kernel when an interrupt signal is sent to a process?

When I run a command that takes very long in terminal and want to kill it before it finishes, I press control-c to send an interrupt signal to the process. I'm assuming this signal is first picked up ...
0
votes
1answer
30 views

How can I get the “Google Response” to a query in the terminal?

I want to be able to get this terse result Google returns for some queries, from the command line: I tried Googler, but it returns this:
4
votes
1answer
111 views

How to execute a command in another already opened terminal? [duplicate]

Is it possible to run a command in another opened terminal? I know I can redirect the output of a command in another terminal. For example: ls >/dev/pts/x Where x can be obtained by running tty ...
0
votes
0answers
36 views

Format of output of df -h

When I look at the output of df -h online it is displayed in columns. On both the mac and ubuntu, it displays in one long line as below. Filesystem Size Used Avail Capacity iused ifree %iused ...
1
vote
0answers
66 views

OpenSSL: how to encrypt/decrypt?

In Debian, I'll encrypt a file or text: $ echo test | openssl enc -aes-256-cbc -in - -pass pass:password -out /tmp/test.enc Then move the file to macOS (Mojave) and attempt to decrypt: $ openssl ...
0
votes
0answers
13 views

Access command line process from another terminal?

In tty7 (graphical), a command line process is running inside a terminal emulator. Now, the xserver fails and there is nothing but a mouse on a dark screen but all processes keep running in the ...
1
vote
0answers
54 views

Why doesn't the ! (exclamation mark) work on MacOS?

I'm trying to use the ! (exclamation mark) to search my bash history on Mac and it doesn't work. Why doesn't MacOS have this feature and how can I install it? It does work if I use zsh, FWIW. And !! ...
0
votes
1answer
14 views

Comparing the `time_total` of two curl requests to different sites

I know that I can get the time_total of of curl request by using this command: curl https://www.google.com -s -o /dev/null -w "%{time_total}\n" Is there any way for me to easily compare the results ...
-1
votes
1answer
50 views

Cannot scroll terminal in Debian

I have a Debian Virtual Machine running on VMWare Pro 15. The problem is my laptop doesn't have a separate Page up and Page down key it resides under the 9 and 3 key of my keypad. When toggling ...
0
votes
0answers
17 views

Run tmux without user process, to just provide its /dev/tty* – is this possible?

In Zsh I can do vared -t /dev/ttys002 ZSH_VERSION and use vared (variable-editor) on a foreign TTY (in this example on OS X /dev/ttys002). I already did this trick with Tmux, first obtaining the TTY ...
0
votes
1answer
51 views

Changing the color of colored outputs

My terminal has a white background. When commands print yellow text to the terminal, I can't see the text clearly (due to low contrast). I thought: wouldn't it be great if all the yellow text that ...
2
votes
0answers
50 views

Difference between closing terminal and closing shell on child processes

Opening a new terminal and typing the command firefox& inside, ps -l gives : 4 R 1000 23132 23104 99 80 0 - 2177945 - pts/27 00:00:07 firefox If the shell is closed with the command ...
1
vote
2answers
116 views

Terminal colors look wrong when using tmux with termite

The terminal i'm using is termite, and it is very good, but i'm having a problem with vim colorschemes and some colors in the terminal itself too when using tmux. It happens as follows: As you can ...
0
votes
0answers
19 views

Saving cat file in termux

I was using termux in my android and i tried to use cat command to save some text and save it but i am not able to save the file after writing some text in it .In unix and linux i know we can save the ...
5
votes
1answer
85 views

Why does the rpm command have a '--pipe' option?

From rpm's man page: --pipe CMD Pipes the output of rpm to the command CMD. Why was this added? Why would you use it instead piping via the shell itself?
0
votes
3answers
65 views

How to make tail to automatically reconnect to a log file that was deleted and recreated together with its parent directory

I am using tail with option --follow=name to watch my log files in my servicemix instance (path = ${smx_home}/data/log/servicemix.log). ServiceMix have a 'nice' feature to restart clean with ...
1
vote
3answers
64 views

How do I loop an if statement in bash?

I want the user to be prompted with a question and then supply the answer, which will be stored under a variable named i, then if the answer (which is a file) exists and is writable, it reads it and ...
2
votes
1answer
48 views

Logging into remote shells from Konsole on Debian 9 results in “‘screen.xterm-256color’: unknown terminal type”,

Before I go into the detail of my problem there is a debian mailing list which seem to explain the cause- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854414 After installing Debian 9, logging ...
0
votes
0answers
30 views

When killing a process that uses serial port, do the serial port gets shut down?

I'm using the terminal to send commands to an Arduino unit through serial port. Sometimes I use CTRL+C to kill the process. Does doing this also terminates the serial communication with the Arduino ...
0
votes
0answers
48 views

Terminal shows non-ascii? characters in UTF-16 hex codes

todoroki@todoroki-VJZ13B ~>printf "ä\n" echo "ä" ä ä ä \udcc3\udca4: \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093 ...
0
votes
1answer
19 views

Is opening new tab equivalent to opening new window?

Is opening new tab in the terminal window is equivalent to opening a new tab in terms of resources? I need to run 16 scripts in parallel. I do not know whether opening tabs or new terminals is the ...
1
vote
4answers
72 views

How to redirect stderr in a variable but keep stdout in the console [duplicate]

My goal is to call a command, get stderr in a variable, but keep stdout (and only stdout) on the screen. Yep, that's the opposite of what most people do :) For the moment, the best I have is : #!/...
0
votes
1answer
21 views

Line wrap broken when PS1 contains a newline

I recently started using linux and thought it would be useful to be able to see the working directory (not just the basename) so changed the ~/.bashrc file to this: # # ~/.bashrc # # If not running ...
0
votes
0answers
27 views

Cannot touch “/static/a”: Read-only file system

I want to edit /static/volumio/app/plugins/music_service/mpd/mpd.config.tmpl file but when I try, It says read-only file system. On mount command: /dev/loop0 on /static type squashfs (ro,relatime) ...
1
vote
1answer
114 views

Exit tmux but stay in terminal

How can I exit a Tmux session but at the same time still able to stay in the terminal window? in other words, when I exit the session I get the terminal prompt. The problem is when I exit a Tumax ...
1
vote
0answers
22 views

What's different calling a program from a terminal and from a window manager?

For example I set up a combined keys of i3 wm that calling firefox, what's different from it with calling firefox in a terminal?
0
votes
1answer
39 views

How to send F10 with gtkterm?

How can I send F1..F12 especially F10 in gtkterm? I have to press F10 at the right moment to select the boot menu of an APU2 system.
0
votes
1answer
20 views

config ip adrress of a network interface through ubuntu terminal [duplicate]

I am trying to configure ip address of network interfaces through terminal in ubuntu systems. So far successfully changed the IP address and other things through editing the interface file in the ...