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 [output]

The tag has no usage guidance.

0
votes
0answers
14 views

How to set second monitor as unique if connected with xrandr

I would like to set my HDMI monitor as the unique output of my laptop when the monitor is connected. Now I am changing it manually everytime I switch on my laptop with my monitor connected, but I ...
0
votes
0answers
12 views

Dummy output audio sporadically

So I had the problem of a dummy output of audio. Rebooted, the problem went away and I had audio. A couple of hours later it had magically disappeared again. I assume if I reboot again it will fix ...
1
vote
0answers
32 views

Diff side by side output with “|” (incomplete) sign

When I compare two files with just numbers, in addition to < and > signs, I also have | signs at some of the lines. For example, 25746 | ...
2
votes
0answers
169 views

HDMI stopped working 18.04

I have: Intel® HD Graphics 5500 (Broadwell GT2) on Asus X554L laptop I have problems with HDMI at Ubuntu 18.04 I connected my TV with it, and it was working for some time, then it stopped, the device(...
1
vote
2answers
803 views

Sound device lost after update to 18.10

Today I did an upgrade from Ubuntu 18.04 LTS to 18.10. The update ran without any error message. After the update the sound settings just show "dummy output". $ pacmd list-cards 2 card(s) available. ...
0
votes
1answer
49 views

Terminal only outputs last few lines and everything before is deleted

I am using grep to find strings in multiple files. It outputs a lot of text which is what I need, but then terminal just deletes all the output while grep continues working and so I can see only last ...
0
votes
0answers
134 views

scroll “watch” command output

I need to monitor a large number of iptables ruleset and I need something like watch iptables -L -v -n but scrollable. Any suggestion?
1
vote
1answer
55 views

C++ code cannot create output file on Ubuntu 16.04 [closed]

Using Ubuntu 16.04 with kernel 4.16.7. I'm trying to benchmark an SSD using the code I found here: https://cristianadam.eu/20160410/c-plus-plus-i-slash-o-benchmark/ This test uses three different ...
0
votes
1answer
284 views

Can't redirect stdout and stderr in background

I want to launch a task in background and redirect all outputs to a file. For this, I do ./main.py > /tmp/logsFile 2>&1 & but i doesn't work I think the problem comes from the background ...
0
votes
0answers
64 views

Speakers working but not working

I've recently installed Ubuntu 18.04 and for some reason my speakers are not listed among the available sound devices, there's only the headphones. Given the situation i installed pavucontrol and ...
-1
votes
1answer
73 views

Random library not functioning when running a file from a terminal. [closed]

I've recently decided to start learning to program using python. The book I was using is teaching me about libraries now. So I tried running the code below: import random random.randint(1, 10) I've ...
3
votes
0answers
151 views

Can I change the audio output device permanently?

I changed the audio output to the HDMI display, but it changes to the built-in speaker after suspending the laptop. Can I make my settings permanently?
0
votes
1answer
31 views

Terminal stops writing its output to the file if the file is changed

I have a running process that was started using ./process | tee -a output.txt Since this is a rather long process, the output file is large and each time I open it to check, I have to wait for it to ...
1
vote
0answers
23 views

How to control volume from file system in Ubuntu [duplicate]

I have found out that brightness can be controlled from a file /dev/class/backlight/intel_backlight/brightness. I am looking for a similar file from where I can change system volume ( sound ). I am ...
0
votes
1answer
21 views

Is there a command to see the data returned from program?

For instance, if I run a python program in the terminal like so: python test.py Say test.py returns an array of ints. Is there a command I can run after running the program to see this array that ...
2
votes
1answer
62 views

How to switch audio output to specific devices per application using command line?

pacmd list-clients shows the applications, pacmd list-sinks shows the devices, the GUI tool pavucontrol can assign applications to the devices. What is the command for assigning the devices? For ...
0
votes
0answers
65 views

Output SOME text from grep

I would like to execute a command, search the output for a line and output some of the text on that line to a variable pactl list short sinks | grep <search-term> Then I would like to output ...
1
vote
2answers
5k views

How to get git producing output to a file?

I wanted to write the output of git clone to a file using git clone https://github.com/someRepository > git_clone.file But instead I get the output displayed/updated in the terminal like ...
1
vote
0answers
377 views

No sound output in Ubuntu 17.10

I've update ubuntu on my asus e200ha, now I've ubuntu 17.10 but I'm in trouble with sound. If I go on settings panel, under tab sound I have none device for sound output. Can you help me please?!
0
votes
0answers
56 views

Why dosen't 17.10 play sound via head phone?

I recently updated to 17.10 from 17.04. Now after upgrading my laptop doesn't give sound output via a headphone. I tried solving the issue through sound settings and it shows that my devices and ...
1
vote
2answers
2k views

Audio output front and back jack ubuntu 17.10

I have front and back audio output jacks on my pc. When I plug in my headset to the front jack, audio output line disappears from sound settings and it shows only headphones. I want to switch between ...
0
votes
1answer
71 views

Saving output from external command!

I'm not really how to ask this question the right way without being long winded, but will do my best! I need a script I'm writing to run pidstat -V inside of it and then to capture the output from it ...
0
votes
0answers
73 views

Sort file and output in a new file

So I tried to sort a file of names using the following command: sort -r names.txt > sortname.txt but I keep getting a error saying bash:sortname.txt: Permision denied I also tried adding sudo ...
7
votes
1answer
127 views

Terminal speaking in tongues after curl command

I'm using Ubuntu 16.04.3 through the Oracle VirtualBox. I'm trying to install a Python environment Anaconda through the Terminal. Following the instructions on How To Install the Anaconda Python ...
10
votes
3answers
744 views

How to understand the ordering of output redirection? [duplicate]

So I am trying to learn how to pass standard out and standard err to various areas. Let's say I have a folder with here.txt alone. So if I do ls here.txt not-here.txt 1>out 2>&1 Since ...
0
votes
0answers
282 views

Redirecting console output to file

I have following issue. I'm redirecting console output of a software to a file. Tried using TEE and >. To keep the output log file small I've tried to reset the file size using echo > and truncate. ...
0
votes
1answer
423 views

Write to file output of two commands running together in one terminal

I need to write to file output of two commands running together in one terminal, as example above, OR logging the output from the first, when the second is also runnign - how to do it? sudo btmon ; ...
1
vote
0answers
209 views

Ubuntu doesn't show output and input devices

I cant't control the volume, it's muted but the sound comes out anyway, it only stops if I plug headphones. Besides that, in the settings it is not showing the output and input devices, so I can't ...
3
votes
2answers
1k views

Switch between headphone and speaker automatically?

I'am using ubuntu 17.04. When I connect my headphones I need to manually switch my sound output in the settings from speakers to headphones. After removing my headphones I need to manually switch ...
1
vote
0answers
106 views

Ubuntu Terminal 16.05LTS How do I keep progress bar output on same line when I resize terminal

For some applications that prints output on the same line (carriage return) such as wget or anything that has a progress bar overwriting the previous progress, when I resize the terminal window or ...
1
vote
2answers
1k views

Volume not Adjusting (Ubuntu 16.04)

I installed Ubuntu on my iMac. At first, the sound wasn't working but that was because it was on Analog Stereo Output and not on Analog Surround 4.0 Output. But now, when I adjust the volume slider is ...
0
votes
1answer
413 views

Pass the output of a chained command to grep or append to file

I'm trying to kill and restart pulseaudio in verbose mode, I need to search in the output. I tried to use the pipe to grep the output. After that failed I tried to append the output to a file. I'm ...
1
vote
0answers
39 views

Where does HTK save the outputs?

Im working on a project using HTK speech recognision toolkit, and I have finished the recogniser properly. But now, I want to do different aplications with the different recognised words, so I need to ...
1
vote
2answers
861 views

How can I get CPU speed as *.** GHz?

I currently use indicator-sysmonitor to see my CPU and RAM percentage in my system tray. But I would like to add my CPU speed. Now I know there are multiple commands (e.g. lscpu | grep "CPU-frequentie"...
1
vote
0answers
127 views

Some commands return no output in terminal even as root (remote machine)

First off - my linux knowledge is very limited. I only know what I can research online. I kinda like it that way, though, as the more I have to work to get the answer, the better the chance it'll ...
18
votes
6answers
3k views

What's the difference between ls and la? Why do they give the same output?

I entered la accidentally instead of ls to view the contents of a directory and it produces exactly the same output as ls... Why is this? Surely it doesn't make sense to have two commands that do the ...
0
votes
0answers
935 views

Filtering Terminal Output and Writing to File

I have following command : sudo evtest /dev/input/event3 I filter the output using sudo evtest /dev/input/event3 | grep 'type 1', works fine I want to write the output to file, and tried multiple ...
1
vote
1answer
40 views

Running a long command

What's the best command that allows me to do this: send the output of say ls to a file called etcdir Print out the etcdir file using cat Print out the exit status using echo $? Breaking up the ...
4
votes
0answers
495 views

Terminal emulator that has “code folding”

Sometimes I regret running ls in a directory containing a lot of files because it produces too many lines in my terminal. So I'd like to be able to collapse & expand the output of each command ...
15
votes
1answer
4k views

Can't capture output into variable in Bash

Having trouble with redis-cli. I wanna check if the connection to redis is refused (server down), through BASH. Simple test #!/bin/bash test=$(redis-cli exit) #exit out of the "not connected console"...
2
votes
0answers
372 views

Ubuntu 16.04, when I switch to HDMI audio out, all audio and video is slowed down.

It is a fresh install of ubuntu 16.04, and everything works fine. Sound works fine and video work fine. When I switch to HDMI audio output, all playback is slowed down. Both audio and video are slowed ...
1
vote
2answers
206 views

How to Export several grep outputs into one file?

I have a little grep command line that finds certain values in a text file and exports them into a .csv-file. Here it is: cat file.txt | grep 'Values a' | cut -d' ' -f9 >a.csv cat file.txt | grep ...
0
votes
2answers
353 views

bash send output from command to variable

I am trying someting very easy, I have seen some answer, but they do not work I am trying to send the output of ls-al to a variable some code before this line if [[ $ans == "L"* ]];then text=...
0
votes
1answer
62 views

sound problem - output

I'm using ipc2 i3 - specs here I'm not able to to hear anything but background noise - and even that only while playing something. No chance of physical damage - it was ok when i had windows 7, but ...
1
vote
1answer
740 views

How to display the missing output message while execute sudo service/systemctl on Ubuntu 16.04

We already knew that from Ubuntu 15 and above are using systemd, however the famous and unbeatable SysV still supported. But there is a small issue which annoying (me and whom may concern). I love ...
3
votes
3answers
4k views

How do you extract a particular column or row from the output of a command?

Example: abcd@abcd-abcde:~$ xinput --list --short Virtual core pointer ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)] ↳ Logitech USB RECEIVER id=12 ...
12
votes
5answers
35k views

bash shell output history file location

Where does the bash shell store the actual terminal session? I want to read the output of commands I used before. All I can find googling is how to store the output of a command. Since output is ...
2
votes
1answer
276 views

Sounds work only on USB

Please help me and give a shot to this post, I am running out of solutions. I am beginner in Ubuntu/Linux and I installed Ubuntu for this reason: to learn it and to use it as my main OS and I don't ...
0
votes
1answer
49 views

Add output of script to file after it has run

I run a script: python my_script.py. It outputs a bunch of lines in the terminal. I forgot to use the output command: python my_script.py > file.txt. Is it possible to get the recent output to the ...
4
votes
1answer
67 views

Viewing output of --help of any command in one screen

I am using a virtual machine. It's display is very small. When I use the following command output goes out of the screen and I cannot view previous content that came from output openssl --help I ...