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

1
vote
0answers
27 views

Do light color codes work across all distros and terminals? [duplicate]

I use \033[1;34m for light blue. I am using Debian and Putty and it works for me. However, I've heard that it may not work for all users (using different distros and terminals). Is that true? Do they ...
9
votes
3answers
666 views

Piping a command through a color filter

Does something like this exist in Unix? $ echo "this should show in red" | red $ echo "this should show in green" | green $ echo "this should show in blue" | blue Here I don't mean for literal ...
0
votes
2answers
52 views

How do I make the terminal background bright white?

I am using: setterm --foreground blue --background white --blink on The result is that the text is blue on bright white. However, the background around the text is grey. How can I make the entire ...
1
vote
2answers
77 views

How can a command in a pipe read from a keyboard? [duplicate]

I randomly tried to execute the following command in bash1 cat /some/file | ssh user@machine 'cat >/destination/file There are no keys installed on the remote machine, so the only way to ...
1
vote
0answers
51 views

ncurses over ssh (osx -> linux) freezing and unresponsive

I'm using linux perf_events and sometimes am having trouble with the perf report (which is an ncurses terminal application) view freezing up. I'm interacting with a remote linux server which is ...
0
votes
1answer
27 views

Mess with an export PATH

I have tried to include INTEL PARALLEL COMPOSER to my .bashrc.But something went wrong.Now I can not use gedit or vi editor. milenko@milenko-HP-Compaq-6830s:~$ gedit .bashrc Command 'gedit' is ...
2
votes
0answers
37 views

xfce4-terminal: keyboard shortcut to set terminal title

How can one set a keyboard shortcut for an instance of xfce4-terminal? It appears that the Terminal->Set Title menu does not have a shortcut tooltip, and I would really like to keep my open terminals ...
0
votes
2answers
49 views

Command to merge all terminal windows?

Is there a terminal command that merges all open terminal windows into one window with tabs? Been searching all over the place, but have yet to find any solutions.
1
vote
1answer
60 views

How to get `yum list` output to stay on one line when getting output via remote ssh command?

When I SSH to a machine with ssh machine and run yum list it outputs everything that's installed as expected, and importantly every item is on one line like so: xz-devel.i386 ...
0
votes
1answer
41 views

(ls) command won't show exact size - Weird output [closed]

I am trying to find the size of the files on my hard drive in exact bytes, but whenever the size gets too big the number turns all weird (like 1.98329e+12). Can I stop it from doing this or convert ...
1
vote
1answer
95 views

Reopen Terminal windows after restarting

In Mac, if I have a few Terminal windows open and I restart the computer or quit Terminal, the windows that were open last are opened again with their working directories and command histories ...
3
votes
2answers
86 views

Why does “head /bin/ls” reset the terminal

If you do something silly like cat /var/log/wtmp your terminal can get messed up as shown in the screenshot. I know there are a number of ways of fixing this. One of the ways not mentioned on that ...
5
votes
3answers
88 views

Is there any objective benefit to escape sequences over tput?

In people's '.*rc' files I see online or in various code, I tend to see a lot of people who manually use ANSI escape sequences instead of using tput. I had the understanding that tput is more ...
0
votes
1answer
82 views

Display output from command and save to file [duplicate]

If I wanted to save output to a file from a command like make, I would do: make > out.txt However that stops the output from being displayed on the console window, and only saves to a file. Is ...
1
vote
2answers
80 views

Is there a program like tmux or screen but only for attaching or detaching a session

I was wondering if there was a program like GNU/screen or tmux that would allow me to attach or detach a session with a running process but would not provide all of the other features such as windows ...
3
votes
4answers
102 views

How can I save the output of “echo -e '\e]4;40;?\a'” into a variable, or pipe it?

Inspired by this forum post, I ran this command at a Bash prompt: echo -e '\e]4;40;?\a' Which outputs: # 4;rgb:8b8b/cdcd/0000 But the weird thing is, the output somehow becomes my prompt's next ...
0
votes
1answer
24 views

Less quit behavior

I'm not sure how to describe this but I'll try by comparing it to vi. When I open vi, do something, and then exit vi it brings me back to the terminal where I can see all of the commands I had ...
1
vote
1answer
121 views

How to start a phone call from the terminal in Ubuntu Phone?

The ability to start a phone call from the terminal is mentioned in this transcript of a Q&A-session with the Canonical community team. So - did somebody figure out, how to do it? The terminal ...
1
vote
1answer
21 views

Reserve pts range for some users

Is possible to reserve pseudo terminal range ids for some users ? Consider an user which should get preferable (or exclusively) pts id from 500 to 600, other from 0 to 400, and so on.
1
vote
3answers
107 views

How can convert characters into characters that'll produce beep noises?

I'm new to Linux and have recently started working on my very first (very simple) project - a morse code generator. I've been able to get the translation working, and now I want to take the next step. ...
-4
votes
2answers
41 views

Create a text file with spaces and sentences stored inside and make a copy of text file

How can I create a text file called ‘example text file’ (with spaces). Write a few sentences to store in this file. Make a copy of file with a different name.
-3
votes
1answer
40 views

What is the purpose of this command ls -l> /testA921/file [closed]

What is the purpose of this command ls –l> /testA921/file?
-2
votes
1answer
47 views

Explain, using examples, the purpose of the bin directory is my answer suitable for this question?

I have looked at similar questions which already have answers but still not entirely sure on the answer. In addition I don't won't to copy someone and thats it I want to understand the answer. Here ...
1
vote
1answer
233 views

Strange character overlap in terminal

I'm using bash version 4.3.42(1)-release in an ArchLinux/Gnome environment. When I type my commands some of the written characters gets transformed in some weird ones. Overall, all displayed text ...
0
votes
1answer
43 views

How to hide the tab bar in roxterm?

In roxterm when I go to edit profile under tab I activate hide tabs but they are still appearing when I create a new tab or window. Any idea on how to hide tabs under roxterm ?
-2
votes
1answer
43 views

How do I check if a user has been created? [closed]

How do I demonstrate that these users have been created and are assigned to their a certain group? Can I do this by the command line or do I have to do it by the GUI (graphical user interface)
0
votes
0answers
25 views

Is my answer correct on what is the difference between ls > list and ls >> list [duplicate]

What is the difference between the commands ls > list and ls >> list? Is my answer correct? As my answer I have put the following. The command ls > list creates a new file named list and ...
1
vote
0answers
24 views

Is there a command to list the users which user or root has created? [duplicate]

Is there a command where which I can input into terminal to list the users which have been created by a user or root? I don't want to use the GUI interface I'm wondering if there is a command.
1
vote
1answer
160 views

Why xfce4 terminal colors are so ugly? [closed]

Hello I have a big problem, I'm trying to install some nice color themes on fish and vim but it looks like that my xfce4-terminal has some ill looking internal colors. I installed gnome-terminal to ...
-9
votes
1answer
52 views

Unix “ls” command? [closed]

Can someone explain to me what are all the options available with the -la flags for the ls command ? I have read the man pages, but still not sure.
-1
votes
2answers
37 views

How to set 256colors in xfce4-terminal 0.6.3 that is using the fish shell, always for all users

How to set 256colors in xfce4-terminal 0.6.3 that is using the fish shell, always for all users ? Can't find this info anywhere and it's getting hard.
0
votes
1answer
51 views

How does Raspbian draw images on the terminal?

When you turn a Raspberry Pi on, it displays three (or four) pictures of raspberries in the top-left corner of the screen. Now, as far as I know, you cannot draw images or any other non-text content ...
3
votes
1answer
131 views

Does “color” in TERM always mean I can use colors?

Should the following always indicate that I can use escape sequences and tput to colorize things? if [[ $TERM == *"color"* ]]; then true else false fi
1
vote
0answers
16 views

how to set up the format of a title of the tabs of Terminator?

I can't find any method of how to set up the format of a title of the tabs of Terminator. it's probably has to do with its config at ~/.config/terminator/config but how exactly? I want to shorten ...
0
votes
1answer
36 views

Giving a user permission to modify/edit/delete files in “/” directory (Not using Terminal, but with File Explorer)

I'm currently having an issue trying to give a user the permissions that the 'root' user has, which is to modify anything in the / directory. I've changed the /etc/passwd file but still no luck. I've ...
3
votes
2answers
142 views

How to create an X window which won't close by any way other than a terminal command

I'm trying to create a process that will start with X11, will be graphical and unkillable by my own user. More specifically, I have an urxvt drop-down terminal starting at startup and running a tmux ...
5
votes
2answers
258 views

How is the su command masking/protecting my password from being displayed on screen? [duplicate]

Apologies if this is an abstract question - I'll try to be as specific as possible. When I'm at the bash shell and switch to a different account via su - foo, I'm prompted for a password. The ...
2
votes
1answer
58 views

How to substitute one color code for another in terminal?

Can I make bash automatically substitute one color code for another? For example, whenever a program outputs text wrapped in color code for bold foreground, I would like bash to actually use code for ...
0
votes
1answer
49 views

How to overwrite the default shortcuts of the terminal in xfce?

I have xfce installed and use xfce terminal. I can't figure out how to overwrite the default shortcuts so that I can use Ctrl+C(V) for copy/paste in the terminal. So far in other desktop environments ...
0
votes
2answers
113 views

Execute a shell script via crontab

Currently I got stuck by trying to execute a shell script via crontab. It does not work and I can't figure out what is wrong here. What I want to do is: Execute a javascript (index.js) file with ...
1
vote
0answers
78 views

Terminal colors changing when opening a new tab

I'm running Ubuntu 14.04 (x64 desktop edition) and I have an issue in my terminal (bash) where my colors seem to get "saturated" and my line cursor changes to black when opening a new tab, the first ...
1
vote
1answer
31 views

Linux Terminal autologin only once after reboot

I'm trying to have my computer automatically log in as a specific user after reboot on an Arch Linux machine. I followed the guide from the Arch Linux Wiki, ran # systemctl edit getty@tty1 and pasted ...
0
votes
1answer
41 views

is not possible to open the terminal emulator?

Hello all i can't open the terminal emulator, when i try to do it, i can see the lines on the picture and then gets closed. i tried to create a new user but is giving, it worked but i can't compile ...
0
votes
1answer
136 views

xterm no absolute path found for shell

I am trying to run a script in SUSE Linux Enterprise 12 from java using ProcessBuilder. Codes for this follows: ProcessBuilder pb = new ProcessBuilder("xterm", "-e", "script_path"); Process pr = pb....
0
votes
0answers
25 views

bash's pseudo terminal master [duplicate]

I learn when we use pts, there is master of pts. Then, when we type the characters on the pts(which is the terminal of bash), not only the output of bash goes to pts but also its master? I confirm ...
0
votes
1answer
201 views

How to have Terminator display remote hostname in title bar? [duplicate]

When I am SSH'ed into any one of my Linux devices, the title bar on Terminator displays user@hostname, where hostname is the computer I am SSHing from, rather than the computer I am SSH'ed into (i.e. ...
0
votes
2answers
192 views

Removing ISO 9660 from USB using Terminal

I received a USB flash drive that contains a pre-installed ISO 9660 (Joliet) image on it. To delete the image and free up space on the drive, I attempted to use sudo rm -rf /Volumes/ISONAME via a ...
1
vote
0answers
38 views

Switching (su) to a paswordless account

I've made account A passwordless with passwd -d A. Now, when I log in as user B from a terminal and run su A I can switch to user A (and I am not even asked for a password). If, however, I log as ...
2
votes
3answers
373 views

New line after the command prompt

Is there any way I can configure terminal applications to display command text from front of $ to under the user name on terminal window? See image attached. I use terminator.
4
votes
2answers
333 views

How do I print the (numerical) ASCII values of each character in a file?

How can I print the numerical ASCII values of each character in a text file. Like cat, but showing the ASCII values only... (hex or decimal is fine). Example output for a file containing the word ...