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

-1
votes
0answers
6 views

How should I set up meta key sequences with tmux, zsh and vim?

I'm having trouble getting control character sequences working properly. Depending on how I have things set up, either Home/End don't work in the shell, or Alt+Arrow keys delete lines and put me in ...
0
votes
0answers
8 views

Reopen screen based on title

So I created a screen session using. screen -t name Is there any way to reopen this session(assuming there are not duplicate names) based off this name?
3
votes
1answer
55 views

psql output in Debian is messed up

Width of the terminal window is 280 columns, and Debian prints text just fine. However, psql output is totally messed up. When I type a command, it's not wrapped: if I exceed 80 symbols in a line, ...
6
votes
1answer
186 views

Why is the first field in 'ls - l' not a 'f' when viewing a file? [on hold]

When I do 'ls -l', I might get something like this: -rw-r--r-- 1 root root 209 Mar 30 17:41 fname The first field is the -, which means this is a file. If it was a directory and not a ...
-1
votes
0answers
33 views

Turn off limit to scrolling down in Gnome terminal [on hold]

I began recently using the Terminal in GNOME, and I was wondering if there is a way to turn off the limits to scroll down. What I mean is if I can have the line where I write in the middle of the ...
0
votes
1answer
22 views

What is the ANSI escape equivalent of `tput sgr0`?

To avoid a subshell, what are the ANSI escape equivalents of tput sgr0 for an ANSI-compatible terminal?
1
vote
1answer
42 views

Terminal output not displayed for certain commands

I'm having a weird problem on Ubuntu 18.04 (Desktop) where certain commands don't display output to the terminal when they are run when they definitely should. I can still capture the output of the ...
-1
votes
0answers
48 views

Bash - nesting quotes - three level quotes

I prepared a bash code to the Xfce menu item in the launcher. Before putting it to the launcher I tested it in the terminal. I worked well. To put it into the launcher I had to put it into the ...
-1
votes
1answer
24 views

Number of threads and kernels [on hold]

When I don't have any information about the machine. How can I get the number of threads and kernels of a computer? Are there any System Calls or Commands?
0
votes
1answer
21 views

Ranger, open file freeze the terminal

I set Viewnior for open image files, but when I open any image file (jpg or png) ranger stays frozen or something similar, and I only can return to ranger when I close the app that opened the file. ...
11
votes
2answers
658 views

Cursor disappears when running `top -n1 | head`

When running top -n1 | head the terminal's cursor disappears. Running top -n1 brings it back. Tested in gnome-terminal and tilix in Ubuntu 16.04 and CentOS 7.5. Running top -n1 | tail doesn't have ...
2
votes
1answer
37 views

How to add pids at runtime to a top command?

I am trying to monitor a certain process with top command and have launched top with top -p <pid1> The process quits after some operations and I relaunch the process. This time the process ...
0
votes
0answers
23 views

Open Sudo Authenticator with Gtkmm [closed]

Basically i'm trying to implement a Graphic interface with Gtkmm to one of my programs created with C++. I wanna know if I can make a window appear to be able to put the password of sudo, in order to ...
1
vote
1answer
41 views

How to start an application in terminal?

I run an application by opening a terminal then navigating to a directory and executing ./nameofapp. The application opens in terminal and I can operate it with some other commands. If I try to run ...
-2
votes
0answers
40 views

How to active arrows in insert mode on vim? [closed]

When i set wrap text on vim: :set wrap, I can move the cursor down (or up), but sometimes a line is flow on the screen for the wrap mode and you see various lines instead a one line. So, the cursor ...
0
votes
1answer
19 views

How can I create a quick access command in the terminal for an application

I want to create a quick shorcut to a file wich is: file.py it is located in "/myfiles/folder1/file.py" I want to access just typing in the the terminal: "file" this file has a working directory so ...
2
votes
0answers
57 views

Run new terminal with bash running command

If I want to run a command, say ranger, in a new termite terminal, I can use termite -e "ranger" and, if I want to run ranger inside a bash sub-instance, I can use bash --init-file <(echo ranger)...
1
vote
0answers
20 views

Portable output from `script` [duplicate]

I have recorded my session which looks good on my terminal (when doing cat typescript), but shows gibberish everywhere else. Is it possibile to use knowledge of my terminal to produce a portable ...
0
votes
1answer
28 views

Bash code interfering with monitoring software

I have a login script that runs when users logs into a Linux machine. #!/bin/bash if [ "$SSH_TTY" ]; then This script is interfering with a monitoring software that also connects over SSH. The ...
-2
votes
0answers
17 views

Changing default python to 3 made broke pip and easy_install [duplicate]

I have this problem with pip I have been trying to fix it through search here and I've not been able to fix it. I used a tutorial online to change the default python when I type. https://linuxconfig....
1
vote
0answers
40 views

Open the contents of terminal in editor

Applications such as Tmux and Termite allow interaction with the contents of the terminal through vi-like bindings for actions such as searching and copying. Is there any way of opening the contents ...
0
votes
0answers
7 views

Keyboard shortcut to open new terminal in new window not working in classic Gnome

I login to my profile using gnome 3. I have set the keyboard shortcut there to open new terminal in new tab as Ctrl+alt+n and when I apply this shortcut it opens a new window terminal from desktop. ...
-1
votes
0answers
51 views

WARNING:root:could not open file '/etc/apt/sources.list.d/teejee2008-ubuntu-ppa-bionic.list'

Then I type some random commands, bash keep saying me that some file can't be open and only then about that command - why?: dex@dexpc:~$ sfsdf WARNING:root:could not open file '/etc/apt/sources.list' ...
-4
votes
1answer
46 views

what means the “-t” in Ubuntu terminal? [closed]

I'm working with terminal and wondering what means the "-t" tag in commands ?
0
votes
1answer
6 views

Permission Denied while trying to Find file

I was trying to find a library by using find . -name "*libcurl" or find . -name "*libcurl.so" command. I get a list of messages with permission denied, not sure whether that means the file couldn't ...
1
vote
0answers
22 views

fbterm as standard console at login

Does someone know if it is possible to run FBterm as standard console at login?
-3
votes
1answer
23 views

No command is working in VMWare with Linux [closed]

Is there a way to install apt-get onto Linux? It seems that no command works whenever I attempt to install nmap or do anything for that matter. I tried several commands and watched multiple videos ...
0
votes
0answers
20 views

Kali OS Update turns GRUB into a Terminal [duplicate]

A little while ago, I installed Kali Linux 2018.2 on my laptop via USB. I had to do some tweaking to fit my needs, but overall it worked fine. However, recently I got a notification from the Software ...
-1
votes
1answer
21 views

Why does the Solarized colorscheme look different in vim than it does in iTerm2?

In iTerm2, the background color looks like this: While in Vim, the color looks like this (I'm using https://github.com/altercation/solarized): I'd like the first version everywhere. Now, I've never ...
0
votes
1answer
50 views

How to change from Xterm to default terminal in ubuntu 16.04

I know it can be silly question but I suddenly clicked some shortcup/or somemething else occur - and my default ubuntu terminal changed to Xterm. How to revert this? Or change xterm to "normal" ...
1
vote
1answer
62 views

Make user create 775 permission folders

I typed out the command chfn -o umask=002 souser and expected that souser user would create folders with 775 permission then but he did not. How to get that each new folder created by a certain user ...
0
votes
1answer
41 views

ps options help, how to report a truncated list of processes sorted by desired columns

Just discovered ps. Spent about 20 minutes reading through the man ps, testing out different options, but only found myself both more intrigued and deeply perplexed by the options. The ordinality and ...
0
votes
1answer
25 views

What's the difference between ZSH themes, prompts, and terminal based themes?

I perhaps may have started overthinking this, but I also couldn't find a suitable explanation for it. I recently installed oh-my-zsh and it comes with several themes that change the way the "prompt" ...
0
votes
2answers
55 views

Why does my 'rm' command work fine in terminal on my mac but not from shell script?

I have a directory whose name contains spaces. I need to remove the contents of this particular directory. I am escaping spaces in the directory name with \ before removing the contents. The rm ...
0
votes
2answers
47 views

Add something at the end of every typed command [duplicate]

Is there a possibility to add some text at the end of every command i type in the terminal? For example i type "ps" and after pressing enter, it becomes "ps -a", I type "ls" and it's "ls -a"
0
votes
2answers
29 views

Mac Terminal: Repeat Multiple Previous Commands Sequentially

I know that I can navigate through previous commands using the up & down arrow keys, making it easy to re-run an earlier line of code. However if I want to re-run multiple sequential commands I ...
0
votes
2answers
54 views

Expect in bash script?

Is there a way to use expect command directly in a bash script for which the automation is to be done, instead of writing a expect script and use spawn command to trigger the bash script from expect ...
0
votes
1answer
43 views

(error) not a valid identifier of IP number on terminal ubuntu [closed]

When I run my terminal it works fine. But In the top of the active line, i get the following warning. bash: export: `192.168.1.17': not a valid identifier bash: export: `192.168.55.1': not a valid ...
-2
votes
0answers
48 views

Bash script to auto-arrange icons on desktop

I am looking to set the desktop icons to arrange. I was thinking this line of code would work. But, it seems this ling of code is not save to the file. I am using Peppermint-9-20180621-amd64. sudo sh ...
1
vote
1answer
42 views

Saving find command output to variable [duplicate]

I'm trying to save the find output to a variable in this manner: a=find /Users/Downloads/DTI_allsites/subprojects/*/UII_0077 -name "dti_preprocessed" -type d But I keep getting the following ...
-1
votes
2answers
72 views

What part of the terminal stack is responsible for the direction of text being output? [closed]

The question is asked here: https://serverfault.com/questions/152310/reverse-bash-console-text-flow https://superuser.com/questions/719317/can-i-reverse-the-stream-direction-of-my-terminal https://...
-1
votes
1answer
58 views

Terminal commands not working

I moved all files starting with lib from /../ to some folder as, mv /../lib* /to/some/folder after which I can't move it back.It comes as -bash: /bin/mv: /lib64/ld-linux-x86-64.so.2: bad ELF ...
1
vote
1answer
24 views

batch rename folders with value from json value in package.json

This is a bit of a crazy one, but I am wondering if it is even possible. I have maybe 300 folders in my /var/www folder that were all renamed to the same name [Name](Num) so kindred (19) for example. ...
-1
votes
1answer
39 views

Terminal that sends CTRL+C to tty, when I click CTRL+B

I use Linux Mint with 'Terminal GNOME'. I want to use CTRL+C in terminal to copy text. Easy.. I set it in Preferences, but I also need to send somehow 'intr' signal to apps. I want to make terminal ...
0
votes
3answers
45 views

How does a (mysql) process know “its” terminal if not from stdio?

One thing with the mysql program caught my attention. It can be told to ask for password interactively with the -p flag, in which case, as you would expect, a prompt appears in your terminal and ...
0
votes
0answers
13 views

How to let proper arrow navigation on terminal app open by shortcut?

I'm trying to create a shortcut for a terminal app called "Fricas". By now I was able to create it with manjaro's app manager passing the following code line to open it: konsole -e fricas But when ...
-1
votes
2answers
36 views

Why is tput failing silently on TERM=vt100

I'm using zsh with iTerm as my terminal emulator on macOS and my environment has TERM=xterm-256color by default. If I run tput setaf 3 it exits with code 0. If I set TERM=vt100 and run tput setaf 3 ...
0
votes
0answers
31 views

Allow user to enter username before mounting shared drive

I have a mount drive which I usually mount using sudo cifs -o "username=myshareddrive_username,uid=$(id -u),gid=$(id -g)" //server-address/folder /mount/path/on/ubuntu Now, I have some linux ...
3
votes
1answer
43 views

Uninstall a Steam game with the console [closed]

I need to uninstall a Steam game just in the terminal. I don't know if it is possible, I have tried deleting the folder of the game in steammapps/common but if you open Steam after deleting the ...
2
votes
1answer
46 views

linux: how can i open a gui program like google-chrome from the command line so that it stays open even after teminal closes [duplicate]

i am a ubuntu user. i often open/launch programms from the command line / terminal. But when i close the terminal, the program also shuts down. Is there some way to let the programs stay open, even ...