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

learn more… | top users | synonyms

0
votes
2answers
123 views

Terminal vs Terminal emulator [duplicate]

I am trying to clarify my understanding of terminal here. Terminal is actually a device (keyboard+monitor). When in CLI mode, the input from your keyboard goes directly to shell and also displayed on ...
1
vote
1answer
244 views

Where are gnome-terminal profiles stored on a linux distribution?

Of the distributions of Linux I have used (Red Hat, Ubuntu, CentOS, others) which utilize gnome-termial you are able to set different terminal profiles via a drop down menu located in the terminal ...
1
vote
1answer
19 views

Change the current directory when a terminal is opened

Always which I opened the terminal, on the Linux Mint, the directories which the terminal started is: /home/user. How I changed this default directory to another, e.g. /home/user/Download?
0
votes
0answers
41 views

how to program the terminal emulator so it can trigger actions based on action keys

I want to see what happens when for example I press ctrl + alt + t on terminal. I want to view some logs for it and want to reprogram the behavior for it so when pressing ctrl + alt + t it not only ...
1
vote
3answers
498 views

How to display size “human-readable” in lsof | grep /var* [duplicate]

I am currently trying to see , all the files which are using /var mount. With lsof | grep /var* when Its displaying size in bytes. How can I display file size in MB. Thank you.
2
votes
2answers
108 views

Understanding Return, Enter, and stty icrlf

In Ubuntu/gnome-terminal, if I run: $ stty -icrnl Then launch the GHC interactive environment (a Haskell console): $ ghci Then pressing Return does not submit the line; however, Enter does. ...
3
votes
1answer
22 views

command-click git commit ID in Terminal, and be taken to that commit in github?

I'm running a Mac and use iTerm with ZSH as my shell. Currently I can command-click (⌘+click) on links or directories in my iTerm window, and that directory or web link will open. Is there a way ...
0
votes
1answer
35 views

How to run command after entering postgres

I am trying to execute ls after opening a new Guake tab and logging into postgres. guake -n guake -e 'sudo -i -u postgres && ls' The command successful opens a new tab then prompts me for ...
1
vote
1answer
82 views

How can mouse support be enabled in terminal Emacs?

How can mouse support be enabled in an Emacs terminal session started with emacs -nw? Is there a keyboard shortcut or a flag to do this? If not how can it be done in terminal emulators? I use Guake.
0
votes
0answers
23 views

How do I execute a command if a drive is not mounted?

I am trying to create a shell script to mount a LUKS volume if it is not already mounted. The LUKS password will be in the shell script. The shell script is being stored in a encrypted folder so it is ...
0
votes
1answer
25 views

How to fix my terminal prompt being out by a character? [duplicate]

My terminal prompt is set using the following configuration in my .profile file: # Prompt GREEN=$(tput setaf 2) LIME_YELLOW=$(tput setaf 190) MAGENTA=$(tput setaf 5) WHITE=$(tput setaf 7) ...
0
votes
2answers
298 views

How can I use fdisk to create a ntfs partition on /dev/sdx?

I would like to know how to create a ntfs partition on /dev/sdx. I could not figure out if I should use partition type 7 86 or 87. What is the full list of commands to use?
1
vote
1answer
43 views

How can the read/write speed of a partition or drive be measured? [duplicate]

How can I preferable from the terminal measure the read and write speeds of /dev/sdx?
0
votes
1answer
45 views

control-w (delete word) deletes whole line in MariaDB client

I've been using the original MySQL client for "eons" and I'm rather accustomed to using bash-like shortcuts in it. One of my more frequently used ones is to use control-w to delete the word before the ...
-3
votes
1answer
63 views

What does root directory mean? [closed]

What does it means when they say "Move into the root directory of the kernel you wish to patch" please explain me in detail cause I'm new to this environment.
1
vote
1answer
128 views

How do I get a service on a remote CentOS 7 server to persist after I log out?

I am experimenting with running Spring Boot apps on a remote CentOS 7 web server which has been successfully serving up apps on Apache and a stand-alone tomcat instance since day one. However, when I ...
2
votes
0answers
58 views

Making vim the default editor when I double click a file

When I run vim from the start menu, it opens up an xfce terminal window and runs vim. However, when I set vim to be my default text editor and double-click a file, it runs in xterm instead of the xfce ...
3
votes
1answer
63 views

Clear to end of line uses the wrong background color in tmux

In ZSH prompt expansion, the command %E is supposed to "Clear to end of line." This works: However, it does not work in tmux: The issue seems to be with BCE (Background Color Erase). In screen, I ...
1
vote
1answer
21 views

Terminal based Norton Commander program

I am looking for a terminal-based file manager like the good old Norton Commander or Total Commander...but all I have found so far are graphical and hence don't run in terminal. Is there any?
2
votes
1answer
48 views

Clear to end of line uses the wrong background color in screen

In ZSH prompt expansion, the command %E is supposed to "Clear to end of line." This works. We see it in the grey bar going all the way across. However, if I call "screen", the %E stops working: ...
2
votes
1answer
96 views

How is sudo interrupted in xterm on Ctrl-C? [duplicate]

Please explain in detail (including tty related stuff) how is a sudo foreground process on a X terminal emulator actually killed on the Ctrl-C. See the following example please: $ sudo -u test_no_pw ...
2
votes
0answers
657 views

Can't exit i3 because no sensible terminal emulator is installed

I am trying to setup Arch Linux, and after getting the most basic stuff setup I installed and ran i3 with: pacman -S i3 dmenu xorg xorg-xinit startx It finally started, but I can't exit it. After ...
1
vote
1answer
174 views

CentOS 7 Encrypt a PDF

I've recently upgraded our server from CentOS 6 to CentOS 7 and I am having issues getting pdf encryption working on it. On CentOS 6 I installed libgcj and then the pdftk package. I could then ...
7
votes
1answer
640 views

bash: no job control in this shell

I have a minimal Linux system. init is /bin/bash, only bare minimum of libraries in /lib/, /dev/ is populated statically, no daemons running (no udev, ..) When bash starts, I get following error: ...
0
votes
0answers
38 views

Set a ZSH shell variable using mintty?

I have configuration files that I use to make my PS1 fancy. The design depends on the presence of a particular font. If the font isn't present, the PS1 looks ugly. I share access to a webmaster ssh ...
1
vote
1answer
35 views

running commands from files [closed]

Let's say that I write some commands in a file let's say cmake although it doesn't need to be cmake run writing some commands in a text file. example filename: cmake_command cmake ...
4
votes
2answers
67 views

Take high quality screenshots of my terminal window

I'm writing a book and sometimes I must show some screenshots taken from my terminal window. Problem is they are not good for print, so I need to increase their quality (resolution). Is there any way ...
1
vote
1answer
32 views

How to write a luit command that outputs a file

I need help formatting a luit command so I can write a file that I'm trying to fix the encoding for. What I have write now is luit -encoding gbk cat santi.txt, but I would like this to have the output ...
1
vote
1answer
42 views

Remnants of previously closed file displayed in terminal

On several Unix servers, I have seen below behavior: I list all the files using ls -lrt: 3 files are being shown up I open one of the files using vi editor I close the open file Now in some Unix ...
1
vote
1answer
38 views

A command that takes a single numeric argument and prints out the day of the week based on the formula

days=('Sunday''Monday') days=('Tuesday''Wednesday') days=('Thursday''Friday') days=('Saturday') for numbers in "S@"; do if [ $numbers -ge 0 ]; then result=$(($numbers ...
2
votes
1answer
50 views

Readline: Binding an ANSI escape sequence to a key

I would like to bind a key with bash / readline, to clear the bottom of my console screen. The ANSI sequence to clear the bottom of the screen is \e[J, so I tried to add the following line to my ...
2
votes
1answer
78 views

Scroll by line in terminal rather than by page Shift + PgUp

Is there a keyboard way to scroll the terminal by line the same way we scroll with mouse wheel? Shift+PgUp/PgDown give only by-page scrolling. I would like to scroll slowly as with mouse wheel. My ...
1
vote
1answer
75 views

generate new terminal (any) window from a script

I would like to run a script that detects the current terminal and generates a new terminal window, in the background, with a shell command (e.g. htop) I get the desired outcome at the command line: ...
0
votes
0answers
25 views

How work tunnel to gnome connection manager

Someone using gnome connection manager? (http://kuthulu.com/gcm/?module=home&lang=). I need setup the tunnel for connection but i don't understand how to configure, help please!
0
votes
1answer
32 views

Help with the PS and TTY?

I have this question for you guys: I execute on a different shell 'sleep 600'. I open a different terminal and I executed 'ps' to see my current process , however , I dint see any sleep process. I ...
-1
votes
2answers
47 views

Script with nested for loops [closed]

This is the code and I need to display in the terminal like this way: (1,1) (1,2) (1,3) (1,4) (1,5) (2,1) (2,2) (2,3) (2,4) (2,5) (3,1) (3,2) (3,3) (3,4) (3,5) (4,1) (4,2) (4,3) (4,4) (4,5) but ...
0
votes
0answers
46 views

Open remote BMC console and interact

I have a server running CentOS I will address as the master. I have been reading several solutions for different scenarios. However, I'm still having trouble grasping the idea of what is required to ...
19
votes
3answers
731 views

How to prevent random console output from breaking the terminal?

There are many questions on SE that show how to recover from terminal broken by cat /dev/urandom. For those that are unfamiliar with this issue - here what it is about: You execute cat /dev/urandom ...
0
votes
1answer
60 views

Bash file is unable to execute on linux terminal: Socket Programming

I have written some codes for socket programming namely socket and plug. To execute them together I am trying to use the below bash file but I get the following errors. I did execute the command ...
4
votes
3answers
396 views

Open file with started vim from outside (in terminal)

I have a started vim. I suspended it (Ctrl+Z). So I was in terminal session and I would like to open some file with the same vim session (new tab). I can open the file in new vim session. Actually, ...
3
votes
1answer
810 views

How to see what accounts connected with ssh are running

Using the question here I can see the users connected with ssh. Is there a way to see (from terminal) what program the users connected with ssh are running? EDIT The ssh users are running commands as ...
0
votes
1answer
110 views

What really is bash? (or any linux shell) [duplicate]

I understand bash as a window where I can type commands to linux. Reading the wikipedia, I've learned that there were various shell applications throughout the history. First, I understood bash as ...
1
vote
1answer
21 views

access to ttyusb0 as normal user

I am trying to access a serial device, which is attached as: "/dev/ttyUSB0". crw-rw---- 1 root dialout 188, 0 Nov 29 15:45 ttyUSB0 For that I created a new udev rule: SUBSYSTEM=="tty", ...
0
votes
0answers
102 views

Linux Mint partition doesn't appear in Disk Util (El Capitan).

i have two problems here! I'm pretty new to dual booting on OS X, I'm trying to dual boot with Linux Mint. I've gone through all the recommended route of dual booting. I started with mounting the ...
1
vote
0answers
95 views

Change output (sink) using the terminal

I've made the change from Gnome to i3, and I want to be able to switch my audio output (from headphones to HDMI and vice versa) using the terminal. $ pactl list cards | grep profile Part ...
0
votes
0answers
38 views

Terminal doesn't print colors

My Antergos terminal doesn’t show me any colors when executing scripts. I have a fresh instalation, with no tweaks. I have zsh and oh-my-zsh, but the configurations are the default ones. You can see ...
3
votes
3answers
170 views

common environment variable to set dark or light terminal background

I have written a number of debuggers that all can colorize source code text shown in a terminal session. They all understand that some terminals have a dark background and some have a light background ...
1
vote
0answers
48 views

Terminology terminal fonts [closed]

I have a problem with terminology fonts, my font is "Bitstream Vera Sans Mono (Roman)" I tried switch fonts but it is not solved the problem, picture attached: Thanks, Michael. EDIT: The problem ...
0
votes
1answer
126 views

How to remove the return code from the terminal prompt in Sugar on a Stick?

I am using Sugar on a Stick (Fedora 23) 0.106 for i686 as a distro. Here's the link to the website of this distro: https://sugarlabs.org When I use the terminal I get a very weird behaviour. For ...
-2
votes
1answer
41 views

ClamAV installation problem?

My USB has windows viruses in it. Before attaching it to device(windows installed), I want to delete these viruses but i have kali installed device also from which I want this action to be done. I got ...