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

3
votes
1answer
53 views

Run vsim from dmenu — it only works when directly invoked in the terminal

Works: vsim, sh -c vsim Doesn't work: echo "vsim" | sh, echo "vsim" | xargs -I {} sh -c "{}" I want to run ModelSim (vsim) with dmenu, which is triggered using xbindkeys. Details vsim is a ...
12
votes
5answers
16k views

How to disable line wrap in a terminal?

I need to view large logs files using a bash shell. I was using less to open the files, but since the lines are too lengthy there is some kind of line/word wrapping going on. Since the files are ...
0
votes
1answer
1k views

unable to open X server

I am trying to generate a screenshot of a firefox window in my terminal, but I keep getting an error: root@host [~]# DISPLAY=:1 firefox http://www.cnn.com & sleep 5 && DISPLAY=:1 import ...
2
votes
1answer
55 views

How is the display updated when the erase character is typed in a terminal emulator?

As I understand it, when typing characters in a terminal emulator they appear because they are "echoed". We imagine that the terminal is a separate device communicating with the computer via a two-way ...
2
votes
3answers
85 views

How to open terminal, split to 9 terminals and switch between them using one script?

I would like to open a terminal, split it to lets say 9 parts (3x3) and execute some bash script. But for each terminal part different script. Can this be done using perl, python or even bash? How ...
1
vote
1answer
21 views

Edit/Remove CLI System Notice

I'm wondering how I can change the default system message that shows when on the CLI from Ctrl+Alt+F1. By default it shows the message Welcome to <name> * Documentation: <url> I was ...
2
votes
1answer
51 views

Printing filled shapes in terminal

I'd like to print some shapes filled with the current color or a selected one (e.g. \e[31m) My aim is to print a filled circle (letter o) on the screen but the background will stay as it is. finally ...
2
votes
1answer
64 views

Terminator custom colors overriden by KDE

I've been working on Solarized theme in Terminator (http://gnometerminator.blogspot.fr/p/introduction.html) for about a year on Gnome and have been very satisfied. Yesterday I switched to KDE and the ...
6
votes
3answers
642 views

Terminal prompt not wrapping correctly

I have an issue where if I type in very long commands in bash the terminal will not render what I'm typing correctly. I'd expect that if I had a command like the following: username@someserver ...
7
votes
3answers
7k views

How to solve the issue that a Terminal screen is messed up? (usually after a resizing)

Sometimes, a terminal screen is messed up, and when we use man ls to read the manpages, or press the UP arrow to go to previous commands in history, the screen will show characters not as the right ...
1
vote
2answers
42 views

Is there a shortcut (missing?) to move tab in xfce4 terminal app?

Using xfce4 in a Debian/Linux Jessie/Sid distribution, I am unable to find or set shortcut to move tab position in xfce4 terminal, like Ctrl-Shift-DgDown/PgUp in gnome terminal. This is really ...
0
votes
0answers
12 views

acoc: availability, similar projects and problems?

I am trying to work on a Linux project out of Linux From Scratch. The outcome is a Linux with dull command line and console. I tried to bring color to terminal and I hit some bits and pieces like ...
12
votes
6answers
9k views

Can a Gnome Terminal profile use UTF-8 by default?

I am on an Ubuntu (I think) system. I don't have root, so I can't change the locale. I want to make my default terminal profile use UTF-8 by default. There should be a way to do this, either in the ...
30
votes
2answers
35k views

How to recover a 'lost' screen session?

Somehow I managed to close a screen window without screen 'noticing' it, so the session is still flagged as attached. This prevents me from re-attaching to this session. What can I do? ...
12
votes
2answers
1k views

Ctrl-C does not work with pppd non-detached session

I have a Mini2440 ARM Board, and I have put a base Debian 6.0 system on it using multistrap. I have used tmux to run several processes in defferent windows from /etc/rc.local. I connect to the board ...
1
vote
1answer
70 views

sftp command to get/download .tar.gz file

I thought I was familiar with sftp commands in unix and upto my knowledge the command to used to download a compressed file from the server is sftp get filename.tar.gz But when I tried this ...
6
votes
3answers
4k views

Having tmux load by default when a zsh terminal is launched

My current workflow is: CTRL+SHIFT+T to launch a new terminal window. That starts a new zsh terminal. Type tmux to start tmux. How can I have tmux load by default with a new terminal window?
2
votes
1answer
50 views

PS1 prompt showing different on local and remote console

This is my PS1 prompt: export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " That shows perfect in remote (SSH) ...
3
votes
1answer
23 views

SSH session chain

Suppose I do a SSH session chain within one single unique terminal window (RHEL6) open terminal on localMachine, SSH remote login to server1 from server1, SSH remote login to server2 from server2, ...
3
votes
4answers
23k views

How do I exit or cancel a bad bash command?

I expect to get some flak for this, but I can't find the answer anywhere. It seems like it should be so obvious. Sometimes, when I type a bad command in a bash terminal, the cursor just jumps down to ...
0
votes
2answers
32 views

How to launch «gdbserver» in background?

I am communicating with a device via a serial port, and for I am launched «gdbserver» (like gdbserver :2345 myapp) it completely blocks the terminal. Neither an ampersand & symbol, nor ^z ...
0
votes
0answers
22 views

Why does xfreerdp say “connected” three times every time?

Every time I use xfreerdp on Mint 17 to connect to a Windows Server 2003 box, it gives the successful "connected" line identically three times before launching the window: $ xfreerdp ...
0
votes
2answers
50 views

How to get the ~/.bashrc to work in the native terminal application in Centos? [closed]

The problem I had was to get the .bashrc and .bash_profile and/or .profile scripts to execute by default when using the native Gnome terminal application. I found a number of references which told me ...
-2
votes
2answers
267 views

Corresponding 7zip command for unzip -p -a

I have a question regarding unzip command in Unix. As of now my Unix command unzip -p -a is able to zip the file which are lesser in size. But if the file size is larger then the command is not able ...
0
votes
2answers
30 views

One SSH session one script multiple terminals no X [closed]

I have read other posts asking the same question in the answer was, run your script and have it like this: #!/bin/bash xterm -e command The problem is that I don't have X installed on that server, ...
0
votes
0answers
42 views

midnight commander disintegrates after opening video/graphics file

When I press enter in mc on a video file, it will open in mplayer and play. This is configured in /etc/mc/mc.ext: regex/\.([mM][pP]4|[mM]4[vV]|[mM][pP][eE]?[gG])$ Include=video Similarly, it ...
3
votes
2answers
439 views

How to undo in spreadsheet calculator sc?

spreadsheet calculator sc is a very old console-based program. It does what the name says. I cannot find how to undo an operation in its man page. I currently use it together with RCS, ie. manually ...
1
vote
0answers
25 views

New terminal with command and continue using it [duplicate]

I would like to open a new terminal and run a command from another terminal. I would like to be able to re-use that terminal after. I've tried: xfce4-terminal --hold -x echo "Hello" & But ...
1
vote
0answers
25 views

Giving a user SFTP access only with access to subdirectory outside of home?

I have user [USER A] account which contains scripts and a downloads folder. I would like to create a new account [USER B] so that the user has read/write (SFTP and not full SSH) access to their home ...
16
votes
2answers
5k views

GNU Screen: new window name change

I can change the name of a window with Ctrl-a Shift-a. Instead of editing several window names by hand, is there a way to have them automatically named after the current directory?
1
vote
2answers
55 views

What can I do if bash stops echoing?

One of the applications I use at work sometimes screws with my bash and so I don't see my own input anymore. I.e. $ echo foo foo $ becomes $ foo $ I incorrectly tried to run stty -echo which ...
4
votes
1answer
171 views

Keeping sudo authentication with gnome-terminal

Can sudo sessions be shared across tabs of gnome-terminal, so that once I use sudo in one tab, I won't have to re-enter my password every time I open another tab and use sudo?
0
votes
1answer
43 views

Open a new bash with sudo powers without reentering the password [duplicate]

I find very useful to have more terminal tabs in different current working directories. But if I need sudo privileges I need to reenter the password for every shell. Is there not a way to extend the ...
5
votes
3answers
4k views

How do I run safecopy in terminal?

I'm very new to terminal and Linux so apologies! I have a crashed external hard drive that is spinning but wont appear on the desktop. I ran safecopy from terminal and this is what it said at the end ...
0
votes
2answers
172 views

What are the meanings of different Unix commands? [closed]

I am running Ubuntu 14.04 on my machine. I am new to Linux and feeling lost when I see different command line commands (or what exactly are they called?) like sudo, apt-get, mkdir, -R, -n etc. while ...
1
vote
1answer
25 views

Shutting down X via terminal

I found that the whole X won't react to anything but I was able to log to terminal by ctrl+alt+F1. Can I reboot X from the command line without rebooting the whole computer?
3
votes
1answer
40 views

Can I add mouse support in less?

I've just discovered that I can add the following lines to ~/.vimrc. set mouse=a :vmap <C-C> "+y This has the effect of being able to select text with the mouse (i.e. in visual mode), and ...
0
votes
3answers
16k views

Yum update error: Could not retrieve mirrorlist

I'm trying to do yum update. This is the error I'm getting. sudo yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist ...
3
votes
1answer
29 views

How do I stop screen from clobbering my titles?

I am using bash and GNU screen on centos7. I notice that if I ssh to another server, change the title (via ctrl+a+A), and log out of the server that my new title gets overwritten by USER@HOST:~. How ...
1
vote
0answers
30 views

Echoing Backspace Characters in the Terminal

I'm working with picocom running inside gnome-terminal. I have local echo switched on inside picocom using the -e option, and when I backspace I can see that caret moves backwards, however the ...
1
vote
4answers
1k views

Uninstalling *.run file

I just installed a file called SenchaCmd-4.0.2.67-linux-x64.run by executing the following code: ./SenchaCmd-4.0.2.67-linux-x64.run Due to a problem I describe in detail here, I decided to ...
1
vote
2answers
835 views

The command ` ls -ltu ` fails to list folders/files based on last accessed time

First on your linux desktop create 2 folders. a b Now run this in the terminal ls -ltu the result is drwxr-xr-x 2 root root 4096 Aug 30 20:33 b drwxr-xr-x 2 root root 4096 Aug 30 20:33 a ...
1
vote
1answer
11 views

Locating the terminal currently in use

I need to write a script to test if im using the correct terminal and then print a message This is what i have so far if(???? == dev/pts/1) echo Access Granted. Welcome. endif I dont know how to ...
8
votes
3answers
397 views

How can a Bash script tell how it was run?

I have a Bash script I was trying to make to help me run a rather complex command with small changes that it would ask me about through echo and read. I have found solutions to force it to run a ...
0
votes
1answer
10 views

:bnext not cycling through all buffers in vim

For some reason :bnext is not cycling though all the buffers shown by :buffers I have 5 buffers open but only 3 buffers are visited when I used :bnext repeatedly. How can I cycle through all the ...
12
votes
3answers
36k views

How to append multiple lines to a file with bash

I am writing a bash script to look for a file if it doesn't exist then create it and append this to it: Host localhost ForwardAgent yes So "line then new line 'tab' then text" I think its a ...
0
votes
1answer
144 views

How to update CodeBlocks in Kali Linux?

I installed CodeBlocks on Kali Linux but I got 10.05 version and I want to update it to 13.12, preferably via terminal. Also I would like to know how to update any application this way.
5
votes
2answers
161 views

Why can't Emacs running in a terminal distinguish Ctrl+; from “;”?

This question arose from my previous question on emacs beta. In short I want to bind C-; to an Emacs functions in a terminal, but it seems that something captures this key before it reaches Emacs: ...
2
votes
1answer
37 views

Replay a screen log file incrementally

I have run some commands in gnu screen and used the C-a H command to record the output to a screenlog.0 file. However now I want to view it. There are loads of terminal escape sequences, so just ...
66
votes
3answers
6k views

Watch YouTube videos in terminal

Like the title says it, I'm looking for a way to watch YouTube videos in terminal (not in a browser or another window, but right there, in any bash session). Is there a simple way to do this? I ...