Stack Exchange Network

Stack Exchange network consists of 175 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).

5
votes
2answers
271 views

Loading commands from file

Is it possible to write commands to text file and then loaded it into terminal as file? If yes, how is the command for loading the file? Thank you. For instance file_commands: awk -f program.awk d01....
-1
votes
0answers
14 views

Which terminal is able to show images well and supports Font Awesome?

I am looking for a very lightweight terminal which is able to show images when I use ranger and supports Font Awesome. I use Termite, but the image preview on ranger is not good. I tried urxvt, but ...
1
vote
1answer
36 views

exit terminal window

I often ssh to linux using putty. Sometimes directly ssh, sometimes invoke putty inside winscp by "open session in putty". In some cases when I have two putty terminals connected, and type "exit" to ...
0
votes
1answer
52 views

how to pipe two to shell scripts?

how to cut the selected columns from the file. Example: load.sh students.csv | select.sh ‘name’ ‘school_name’ This will output the name and school_name columna from the loaded file to the ...
0
votes
1answer
9 views

Bash terminal trying to read a previously installed file on each start up

Whenever I open the (Gnome) terminal from my Fedora 26 system this line is being displayed first before the command prompt: -bash: /home/kiran/AIPS/LOGIN.SH: No such file or directory I understand ...
0
votes
1answer
16 views

After re-connecting hard disk, terminal commands stop working

The current working directors is, e.g. /media/username/ExtHDD/. When disconnecting and re-connecting that HDD, commands such as ls do not work properly anymore. $ -????????? ? ? ? ? ...
0
votes
1answer
19 views

Konsole does not run shell specified in /etc/passwd

I've been using Bash for a long time on Fedora with Gnome, and recently switched to Arch Linux, Plasma and ZSH. I set up zsh, file, used chsh -s $(which zsh), and it works. However, every time I run ...
0
votes
1answer
34 views

find: './proc/1/map_files': Permission denied

I am inside a docker container build atop of the image alpine:3.6 and I am trying to find if a directory exists. I get te error, find: './proc/1/map_files': Permission denied This is the commands I ...
0
votes
0answers
57 views

SSH works but not SFTP

I am working on a project for a client from which we are using multiple docker containers on a host machine. I need to copy some files from my computer to the host machine, but when using an SFTP-...
-2
votes
2answers
19 views

how to remove all characters after and including “?” in filename?

I have a large amount of files that were downloaded and ended up having what looks like authentication parameters added to the filename which I would like to remove. Examples: file1.doc?...
2
votes
1answer
34 views

Disabling utf-8 in all terminals?

This question pertains to my Ubuntu 18 system, as follows ... % uname -a Linux myhost.name.net 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux I don't ...
0
votes
0answers
41 views

Escaping a string for a parameter inside a script [duplicate]

I have a shell script inside of which I call a command with several arguments. When I call the command from the terminal, the proper syntax is: command --foo='bar baz' Inside my script, I want to ...
1
vote
1answer
30 views

Firefox -createprofile “example” doesn't create profile [Centos 7.6]

I am trying to create new profile via Terminal for firefox and am using this command: firefox -createprofile 'profile' It looks like everything is fine, but I can't find any new file by using ls | ...
1
vote
4answers
71 views

Why do control-left and control-right (arrow keys) not navigate by word in `less`?

In less's line editing mode, the left and right arrow keys move the cursor backwards and forwards. I was hoping to use these together with the control key to navigate by word, as promised by man less. ...
-5
votes
1answer
38 views

What is the difference between a display (or screen) and a terminal?

https://www.x.org/archive/X11R6.8.0/doc/X.7.html#sect4 The phrase "display" is usually used to refer to collection of monitors that share a common keyboard and pointer (mouse, tablet, etc.). Most ...
0
votes
0answers
52 views

How do I stop my terminal from clearing the command when I hit enter

I am using mintty under Cygwin on Windows 10. I don't know why this started happening but suddenly everytime I type a command and hit enter, the command and all the scrollback text is cleared. I don'...
0
votes
1answer
64 views

Print the output of an interactive command in a shell script

I am writing a CGI script to monitor the system state, so the information must be outputted to the terminal with echo or cat. The problem is, systat is an interactive command, so it doesn't print ...
0
votes
0answers
28 views

Unable to reply to other users using write command

I am trying to reply to a message sent by other user in the Ubuntu termnial. I have 2 users sudhir & chethu. User chethu is logged into system normally & user sudhir logged in via putty. We ...
0
votes
0answers
11 views

Ubuntu multiple terminal shell configuration [duplicate]

How to allocate different shell to different terminal emulator? Ex : for terminator terminal allocate /bin/zsh shell and for gnome-terminal /bin/bash shell.
0
votes
0answers
15 views

writing data out to already opened port

I have a setup in which one unix program (s51 from a microcontroller simulation package) is a server tied to a specific port. Let's call the port 111. I also have setup a client on the same computer ...
0
votes
1answer
18 views

How to access bluetooth services

Oddly, I can't seem to find anything about this. I am trying to access/read/write bluetooth services on my device. I am using bluetoothctl command. There are a set of services, which shows up with ...
1
vote
1answer
30 views

How do I get the prompt back when running `at' from terminal

Perhaps this is more of a general question on scripting and terminal use than of the use of the `at' command. Regardless, I am exploring the use of the at command to get a handle on its behavior and ...
0
votes
0answers
22 views

What is the purpose of the -t (--truncate) option of ddrescue?

When specifying an output file without specifying a logfile, the output file will be truncated anyway. How exactly is using ddrescue -t /dev/devicename outfile functionally different from ordinarily ...
0
votes
0answers
6 views

Select different line options in Mac OS X Terminal

I'm trying to install IBM RSA on Mac OS X (very difficult task to me) and from all the files that I get on the download the only thing that I could make work is this command line installer: The ...
1
vote
2answers
50 views

ls won't display Cyrillic characters properly

I've got a problem with Cyrillic alphabet. My terminal will display Cyrillic normally as well most of my programs the only exception I've found so far is ls. Instead of normal Cyrillic it displays ????...
1
vote
0answers
52 views

Is there a decentralised version of finger, write and talk?

Has someone made a secure, decentralised, terminal-based replica of finger, write and talk? In other words, a utility that lets you look up and communicate with a handful of friends, eg. finger joe ...
2
votes
0answers
66 views

Legitimate reasons for a program to intercept, internally handle and ignore SIGINT signal

We know that - aside from SIGKILL and SIGSTOP - a program can intercept IPC signals, and run its internal handler circumventing the operation of the default handler. I can think of at least one very ...
0
votes
1answer
48 views

How to create a 7zip archive of files from a directory, excluding existing archives?

Want to 7zip all files in root/current folder except for all zip-files AND all 7z/7zip files. I can only get one of these to work at a time in one if ! statement: for file in ./test2/* do if ! { ...
0
votes
1answer
41 views

How can I copy a jpg to my local over an ssh

Essentially, I am taking part in a program that requires tasks to be completed. I have done the majority of the task and identified a file (jpg) that I must view in order to get a flag. I am having ...
0
votes
0answers
62 views

Remote ssh script execution with EOI or EOSSH adding dots in front of commands

Here the first block was running, second block was not. And the problem was EOI considers spaces as dots, I think. But, it does not consider tab as dot. Making no indentation worked for me. But is ...
1
vote
1answer
38 views

Detect if terminal chops or rewraps lines

From what I understand, the "traditional" behaviour of terminal emulators is to chop long lines when the window is made narrower, while some terminals rewrap their contents on resize. Is it possible ...
2
votes
1answer
31 views

Why can't I open these device nodes?

[root@archlinux xtricman]# ls -l /dev/pts total 0 crw--w---- 1 xtricman tty 136, 0 Feb 24 19:24 0 c--------- 1 root root 5, 2 Feb 24 19:10 ptmx [root@archlinux xtricman]# ls -l /mnt total 12 ...
-1
votes
4answers
45 views

I want to find only the duplicated words and count them, but to ignore that unique words (non-duplicated words)

Here is the command like: echo "zebra ant spider spider ant zebra ant dog shark" | xargs -n1 | sort | uniq -c | xargs Result: 3 ant 1 dog 1 shark 2 spider 2 zebra I want to ignore the unique words ...
0
votes
1answer
12 views

Termux Sessions

I am trying to see see if there is a way to run multiple sessions in Termux with each session running in different directories...If I run "CD /storage/emulated/0/" in one session and run "CD /$HOME" ...
0
votes
0answers
16 views

Service 'org.kde.konsole-1060' does not exist

Every non-KDE terminal (everyone except Konsole), once started, gives me this error: Service 'org.kde.konsole-[different number everytime]' does not exist. The full error being: Service 'org.kde....
-1
votes
1answer
56 views

Can't see the contents of a data file in terminal

I have downloaded a number of input files from the NASDAQ website (for example ftp://emi.nasdaq.com/ITCH/01302018.NASDAQ_ITCH50.gz) After decompressing (I double click on a Mac) I can't see the file ...
-2
votes
0answers
29 views

Linux Terminal colours same [duplicate]

All colours appear same in the terminal.How to fix this?
0
votes
1answer
37 views

Clearing a line when terminal window is narrowed

Consider the following code (written in PHP, but that's not important. Answers may use pure Bash). The goal is to fill a terminal line with characters for the entire width of the line. Now, if you ...
0
votes
2answers
68 views

show escape sequences in terminal?

Is there a way to let the terminal show the raw escape sequence? (e.g. those used to control color) I came across this UNIX.SE question, and want to filter "red" output ( Filter output of command by ...
1
vote
0answers
21 views

Make text default selected in dialog inputbox

I'm using dialog for a terminal GUI and I have a inputbox where I would like to have the text $1 default selected when it is displayed in the GUI. I want to be able to start writing new input directly,...
0
votes
1answer
35 views

Re-mapping EOF (ctrl+D) in bash

If I'm in a bash shell, because of how stty is set up, typing Ctrl+D will send an EOF to bash, which will then do pretty much the same thing as the command exit does, and exits the shell. I'm ...
1
vote
2answers
20 views

Get filepath of every file that's copied from one folder to another

I am using Ubuntu 18.04 LTS and I wish to copy files from one folder to another and along with it also wish to store the filepath of each file that's being copied from folder1 to folder2 in a third ...
0
votes
1answer
19 views

Disable Ethernet connection on Mac terminal

I am trying to write an alias for disabling ethernet connection and use the wifi using a command line. I can't access stackoverflow.com and other sites using ethernet due to corporate policies. Is ...
0
votes
1answer
70 views

How can I set the default editor as nano on my Mac?

I have vim as default editor on my Mac and every time I run commands on Mac terminal, it automatically opens "vim". How can I set up "nano" instead and make sure the terminal will open "nano" every ...
1
vote
1answer
29 views

Automatically returning after a command

I'd like to have return pressed twice after I run a command to make the terminal easier to read. [root@localhost ~]# fdisk -l /dev/sda1 Disk /dev/sda1: 1 GiB, 1073741824 bytes, 2097152 sectors Units: ...
0
votes
0answers
26 views

How do I extract only certain parts of ffmpeg's standard output as it processes a file?

I want to enter a command that only shows these two lines of ffmpeg's output and I want to see it as it processes a file: from 'input_file.mkv': frame=172534 fps=4622 q=-1.0 Lsize= 8319963kB time=01:...
0
votes
0answers
23 views

Can't get the code send by keyboard when press Ctrl+5

I'm on KDE, Manjaro. I set Ctrl+5 as shortcut for yakuake to switch to session 5. But it doesn't work. There is no notifications told me that I made a ambiguous shortcut. What I found is when I use ...
0
votes
1answer
40 views

Confusion about stdout and stderr on the start-up terminal

I have an embedded Linux system with different programs running from start-up. Some of these programs write to stdout and stderr with printf(). When I first log into the system via SSH, I can see all ...
-1
votes
1answer
61 views

How do I copy and paste with Kitty?

Kitty is a terminal for Linux. How do I copy and paste with it. CTRL+c does not work? And there is no option on right click. Right-click also doesn't work for copy.
0
votes
1answer
15 views

Changed language, now terminal isn't working right

Everything was working fine. I could connect into the system with PuTTY, and everything would display correctly. I changed the language from English to Spanish using some GUI tool. I changed the ...