The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
2answers
45 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 ...
-1
votes
0answers
18 views

hdmi output not working for tv, only detected when tv is turned off

so im trying to get my laptop hooked up to my tv, and for some reason the computer is only detecting the tv when its turned off. As soon as i turn the tv back on the laptop goes dark and the tv ...
0
votes
0answers
12 views

How to show my matlab output in a website?

I have a matlab2014a(linux14.04) demo, I want to show it in a website. The demo input is a image, output is a digital (1-4). Until now all the function of this website can run in my computer. ...
0
votes
1answer
29 views

sound problem - output

i"m using ipc2 i3 - spec : http://www.fit-pc.com/web/products/specifications/?model%5B%5D=IPC2-C4010-WACB-FMUSB3 im not able to to hear anything but background noise - and even, only while playing ...
1
vote
0answers
22 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 ...
0
votes
0answers
14 views

Use DAC as output in Clementine

What part do I copy and paste so that Clementine uses my DAC as output? I have done this in the past but really can't work it out now *** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA ...
0
votes
0answers
24 views

Ccrontab script returns empty output

I'm writing a simple bash script for analysing disk health status with smartctl and when i run it in a terminal or by script all works fine: for i in {0..5}; do echo "***** /dev/sda$i *****"; ...
3
votes
3answers
169 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 ...
1
vote
5answers
1k 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
66 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
25 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 ...
0
votes
0answers
14 views

Audio Output Not Listing Motherboard Output

I'm having problems with audio input and output. I have headphone and microphone audio ports on my motherboard, however they're not available in the sound settings: Audio Problem Image Does anyone ...
3
votes
1answer
33 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 ...
1
vote
1answer
94 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 ...
3
votes
1answer
77 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)? ...
0
votes
1answer
103 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 ...
3
votes
2answers
86 views

Logging script output to a file

I wrote a simple script to monitor my gpu clocks and temps. I wanted it to, aside from being visible on the terminal, log its output on an external file. How could I achieve this? My script below, for ...
1
vote
2answers
35 views

How to stop an application from outputing sound?

I have an application which makes a lot of noise, and there seems to be no way of turning off the noise it makes (it plays some music while running etc), so I was wondering if I can just make it so ...
0
votes
1answer
47 views

Command to output lines in file in alphabetical order?

I have a file containing one word per line. How can I print out each line in alphabetical order - ie. the first letter of each word decides the order?
1
vote
0answers
46 views

udevadm test for net devices

I am trying to dump the udev env to see my %M,%m and %k values (I am not happy with udevadm info -a) For that in the RUN I write to a file under tmp/ as mentioned here: ...
1
vote
2answers
110 views

Running “dpkg -s” or “-l” silent

I am writing a script that checks for a very big list of dependencies. So I wrote a function that gets the package name as input and using dpkg checks if it is installed and prints an appropriate ...
0
votes
0answers
34 views

Play audio from another device from input port

I have a Xubuntu 15.10 desktop computer set up to really good speakers. In the back I have a 3.5 mm line in port. I already know how to record incoming audio with pulse audio changing the default ...
1
vote
1answer
74 views

How to allow scrolling to view complete command output in the command-line?

An example: When I enter compgen -c to view all possible terminal commands I get something like this: ll ls which if then else elif fi case esac for select while until do done and quite a bit ...
0
votes
0answers
51 views

All my output devices are Missing, maybe becouse Ardour. In Ubuntu 15.04

I have installed Ubuntu 15.04, and all was good, until I install, proved, and uninstall Ardour 3. Then, after a few hours, go to play a video and I realized that isn't playing the audio. I went to the ...
0
votes
0answers
61 views

sound output selection - set output device to default

tried looking for this but only seen people ask for the opposite of what im looking for. I am trying to set my speakers as default for all audio sources, currently i can set each application to use ...
0
votes
1answer
45 views

Help using GNU Screen to output text

Hi :) I was wondering if you guys could help me figure something out... Im trying to make a startup script for Spigot server and I want it to start a screen session called "minecraft" and then write ...
3
votes
2answers
186 views

Seeing the output of an already running program?

When I start the program in the terminal I see the output. I can Ctrl+C my way out of it to use the terminal again, but is there a way to get the output of it into the terminal again? I am aware that ...
1
vote
1answer
63 views

Dummy Sound on Asus X550JK on ubuntu 14.04

I've got a problem with the soundcard on my Asus. In sound settings I've got an dummy output against the built-in speakers. When I execute aplay -l in the terminal, I recieve aplay: device_list:268: ...
0
votes
0answers
71 views

Can't use optical audio out

I have an amp connected to optical audio. It works in windows perfectly, however in ubuntu it plays no sound when testing in sound settings "Digital Output(S/PDIF)" which at least tells me it's ...
0
votes
1answer
161 views

Change framerate of mp4 video without reencoding using mp4box and piping

I'd basically like to do what this guy asked for. Using the lines of Mitch I get a perfect result. I'd now love to use the output of mp4box directly as input of mp4box again (to make one command out ...
3
votes
1answer
327 views

How to mark matching GREP string while redirecting output to file

I am trying to use grep to find all matching strings in file and output them, in context of the line, to another file, while adding some kind of marks (ideally two asterisks) on each side of the ...
0
votes
1answer
86 views

Change audio output socket on Ubuntu 15.04

My output audio socket is broken. In Windows I can change sockets input and output with "Realtek". Is there a way to change audio sockets on Ubuntu 15.04?
2
votes
1answer
245 views

Xubuntu 14.04 disables video output when disconneting / reconnecting a HDMI monitor

On Xubuntu 13.10 when I disconnect a screen connected on the HDMI output of my computer and then reconnect it, the signal directly comes back to the screen and I can continue to work. On Xubuntu ...
2
votes
1answer
111 views

Flush Terminal Buffer?

I have a (proprietary) program which I start with ./program -a asdf in the Terminal. When I do that, I can see all the output at the right time. However, when I want to use the programs' output in a ...
4
votes
6answers
864 views

Create Random non words [closed]

dd if=/dev/urandom of=a.log bs=1M count=2 Question: if this code ^ gives me random numbers, how can I get random non-words (unintelligible) such as “hgcqw”. Question 2: Can the shuf command be ...
2
votes
1answer
69 views

Change Audio Output via Speaker Symbol

Is there a way to change the Audio Output (and for the sake of completeness the Audio Input) conveniently via the Speaker Symbol of the Top-Bar of Ubuntu? Just like I can change between Wifi ...
0
votes
1answer
96 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?
1
vote
4answers
159 views

Add terminal output at the bottom of a text file [duplicate]

I am using: command > ~/Desktop/file.txt My problem is that I need to execute this command multiple times, and each time It will give me different outputs, in this moment each time I run it It ...
1
vote
1answer
1k views

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 ...
0
votes
2answers
413 views

Open a file at a certain position and read one byte in bash

Since two persons already voted to close this post, I'll try to make the question as clear as possible. A file on a physical device is represented as a binary sequence. That being said, what I need to ...
3
votes
2answers
479 views

Why does gzip on tar output always produce different results?

What I expect from two commands which always produce the same output on their own, is them to always produce the same output when put in a pipeline, but apparently this is not the case for tar | gzip: ...
2
votes
1answer
253 views

How can I archive dd's output directly possibly without using any compression?

It has been determined already in this question that tar cannot read input from stdin. How else can a dd output be archived directly possibly without using any compression? The purpose of doing ...
0
votes
1answer
2k views

At least one output file must be specified ffmpeg

ffmpeg -i oceans.mov -an -c:v libx264 -r 24 -preset fast \ -profile:v baseline -g 64 -keyint_min 64 -b:v:0 230k -maxrate 250k -s:v:0 304x128 \ -x264opts pic-struct:no-scenecut -movflags ...
1
vote
1answer
147 views

I have a WiFi problem, what commands do I need to run so I can be best helped? [duplicate]

I am trying to ask a question about getting my WiFi to work but I don't know what information to add to my question to get help, what do I need?
0
votes
3answers
297 views

Is it possible to show the output on terminal while writing the output of a command to a file? [duplicate]

I am running a command say nmap www.somesite.com>file.txt so that i can get the output to file.txt. But if I do so, I am not able to see the output of that command on terminal. Is it possible to ...
3
votes
2answers
3k views

How to get the Input and output in a terminal to a text file? [duplicate]

I want to create a text file which will add each command I am going to run on the terminal as a new line entry in the text file. i.e., I need to keep a record of what are the things I'm doing in the ...
0
votes
1answer
254 views

Headset appearing as only input, tried so many things to fix and out of ideas. ubuntu 14.04

I have searched googled for a very long time, I am about ready to start pulling my hair out. I have headset with built in mic, no matter what USB port I use it only shows as a Mic in Sound Settings ...
0
votes
1answer
198 views

Why doesn't redirecting output from nginx work?

I want to list all modules of nginx server by line, so I type the following: nginx -V | tr -- - '\n' But it doesn't put modules in lines. If I do it like this: 2>&1 nginx -V | tr -- - '\n' ...
0
votes
1answer
2k views

How can I save lines from terminal to a text file?

I made a simple bash script that pack a file and then upload it, if everything is fine I am getting some http:// links to my stuff as output I want to know how can I copy those links automaticaly to a ...
0
votes
1answer
21 views

play sound on different outputs, based on what display its the “player” is displayed on?

Is there any way to play sound on different outputs, based on what display its the "player" is displayed on? E.x if its played on the computer screen it uses analog output, but if its displayed on ...