Questions tagged [output]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
91 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 ...
4 votes
1 answer
17k views

How to copy all current output in Terminal to a file when too large for clipboard after it has already been outputted?

I have a slight problem at the moment, I have a large amount of output in a Terminal (gnome-terminal) at the moment, so large in fact that the clipboard won't take it... So I wondering if there is any ...
-1 votes
1 answer
703 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
0 answers
187 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?
1 vote
0 answers
30 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 ...
1 vote
1 answer
1k 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 ...
0 votes
1 answer
35 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
1 answer
2k 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 ...
2 votes
2 answers
4k 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
0 answers
107 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 ...
8 votes
2 answers
37k 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 ...
4 votes
2 answers
4k views

How to combine multiple text files into one text file ordered by date created?

I'm a newbie so please help: I keep a journal on my iPhone using Scratch that outputs all notes I make to a separate .txt file stored in Dropbox. I have this synced with my Ubuntu 14.04 system, so ...
0 votes
1 answer
104 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 ...
7 votes
1 answer
263 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 ...
37 votes
1 answer
23k views

How to avoid horizontal scrolling in "systemctl status"?

In a long line in systemctl status it's necessary to scroll horizontally which makes it quite hard to copy the output. Is there a way to get linebreaks at the end of terminal (like nano -$ would do)? ...
10 votes
3 answers
1k 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 ...
3 votes
2 answers
3k views

How to identify the process that's sending error messages to terminal?

The following error message occasionally appears in my terminal: Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory ... which is pretty ...
4 votes
0 answers
921 views

"Failed to open VDPAU backend libvdpau_nvidia.so" error even though not using MPlayer [duplicate]

I keep getting the following error message on my terminal: Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory I understand this has something ...
4 votes
3 answers
10k views

Redirect stdout to file and stderr to file and to screen

I am running valgrind to shake out bugs in my program. Valgrind's memcheck prints to stderr. What I want to do is a modification to this: valgrind --tool=memcheck ./a.out >output 2>grindout ...
0 votes
1 answer
2k 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 ; ...
2 votes
3 answers
763 views

Recording output while listening to it

I've tried to record the output of my Acer laptop, using audio recorder and outrec. But for some reason, I'm able to do so, but when I change my sound profile to digital stereo duplex, and then I'm ...
18 votes
2 answers
50k views

How to Pass/Record audio output as an input device?

I used to use a mixer of some kind and I can't remember which... I would like to record audio from the output, without leaving the computer. I remember in the Jaunty days you could easily enable ...
1 vote
0 answers
391 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 ...
12 votes
3 answers
9k views

Print command result side by side

It is possible to print the result of 2 commands side by side... Something like this something `ls -l /a` `cat bla.txt` result: total 24 #while [ 1 = ...
1 vote
0 answers
274 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 ...
8 votes
5 answers
2k views

Why can't I choose output sound for each application?

I am using dual monitors, and I want to be able to play a movie with sound on the TV (through vlc or something) and then play youtube or some games with my headphones on my laptop. Is there anyway I ...
0 votes
1 answer
1k 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
2 answers
2k 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"...
4 votes
2 answers
271 views

Long terminal output;time consuming code; no forethought

I am running a rather complex python script in Ubuntu 12.10 for the last seven days. It must have generated atleast 20k lines of output on the terminal till now but not all of it is visible. I didn'...
0 votes
1 answer
74 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
0 answers
394 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 ...
19 votes
6 answers
9k 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 ...
1 vote
1 answer
928 views

Blank screen after login

I think I know how I got here. I was trying to get audio working and issued the command sudo apt-get remove --purge alsa-base pulseaudio It seemed like it was removing a lot of packages I did ...
0 votes
1 answer
630 views

HDMI Audio not working on fresh Dell install

Just installed Ubuntu on a Dell Studio 1535 laptop. Everything is working except the audio on the HDMI connection (video via hdmi does work). Intel® Core™2 Duo CPU T5850 @ 2.16GHz = thats the ...
0 votes
1 answer
1k views

Is there a way with sox to trim parts of audio file with volume under a certain level?

I have an audio file and I want to delete the parts of this audio file that have less than a certain level of volume. Is that possible with sox?
2 votes
1 answer
2k views

output SoX synthesized sound to file

I have the following SoX command that generates a nifty 'spacecraft' sound: play -n -c1 synth whitenoise band -n 100 20 band -n 50 20 gain +25 fade h 1 864000 1 How could I output about 10 seconds ...
2 votes
0 answers
394 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
1 answer
88 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 ...
9 votes
6 answers
23k views

How to get and copy a too long output completely in terminal?

In terminal a command has a too long output. But when I scroll back I see it is truncated and only the last part is shown. In Gnome-Terminal and Konsole I have this problem. In xterm there's not such ...
1 vote
1 answer
1k 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 ...
16 votes
1 answer
12k 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"...
13 votes
2 answers
22k views

How to echo output of a top into a text file?

I want to write batch or something, that will write output of top into a file on login. I did top >> output-file, but it contains some strange character! Can somebody give a simple tutorial ...
1 vote
2 answers
3k 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
2 answers
708 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=...
3 votes
3 answers
7k 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 ...
27 votes
5 answers
100k 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 ...
0 votes
1 answer
2k views

xrandr: S-Video TV display problems

I'm having some troubles with xrandr and S-Video/Composite output in Ubuntu 14.04. Right now I have 3 displays plugged into my computer: VGA, DVI, and TV (S-Video/Composite, not sure about the ...
2 votes
1 answer
416 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
1 answer
62 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 ...
3 votes
1 answer
172 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 ...