Questions tagged [output]

225 questions
168
votes
6 answers

How to record output to speakers?

Is there a program for Ubuntu that can record sounds of only the output of the speaker and not any voices from outside the PC?
AmirRazoR
  • 3,417
39
votes
1 answer

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)? I'm not looking for a workaround like redirecting…
27
votes
5 answers

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 displayed on the screen, it has to be stored somewhere…
20
votes
1 answer

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 whenever I like. This is for better readability and…
zahypeti
  • 317
19
votes
6 answers

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 exact same thing.
TellMeWhy
  • 17,964
  • 41
  • 100
  • 142
18
votes
1 answer

Different applications, different sound output devices

I would find it really useful if I could make it so that music I am playing on YouTube in Chrome comes out of speakers, and the sound from other applications comes out of my earphones, so I am wondering if there is a way to get it so that different…
user364819
18
votes
2 answers

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 different inputs and outputs as passthroughs of sorts…
TryTryAgain
  • 1,038
17
votes
1 answer

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" if [[ -z $test ]] ; then echo "I'm empty…
13
votes
2 answers

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 about how to write batch file in Linux?
Behzadsh
  • 3,993
12
votes
3 answers

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 ]; do -rw-r--r-- 1 wolfy wolfy 194 Aug 13 08:50…
Wolfy
  • 8,050
11
votes
2 answers

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 back to the speaker. How can this be done…
10
votes
3 answers

How to understand the ordering of output redirection?

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 here.txt is present I'll have some output to direct to the…
AJJ
  • 902
9
votes
6 answers

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 problem but I cannot copy the output in…
9
votes
1 answer

Ubuntu 18.04: Audio doesn't work unless I switch between outputs

On my fully updated Ubuntu 18.04.3 system, audio doesn't work unless I switch between outputs. When I boot my PC, the right output (stereo speakers) is already selected by default, but there is no audio from Chromium, Firefox, VLC or any other…
otpabu
  • 133
8
votes
2 answers

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 Cloning to 'someRepository' ... remote: Counting objects:…
derHugo
  • 3,376
  • 5
  • 34
  • 52
1
2 3
14 15