Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (5)

3
votes
2answers
77 views

Redirecting output to a variable?

I'm interesting in directing the output from two commands to a variable. I don't want the output to be displayed on the screen, but instead assigned to a variable within my script so that I can use ...
0
votes
1answer
74 views

Can I install pantheon terminal in ubuntu 14.04?

Is it possible to install Pantheon terminal from elementary os on my ubuntu 14.04? If yes, how can I?
0
votes
0answers
34 views

Packages are not installing [duplicate]

I am not able to install any packages using terminal. I used: sudo apt-get install <package-name> and sudo aptitude install <package-name> Both give me the same type of error. For ...
2
votes
1answer
26 views

'Closing' (hiding) terminal without clearing it

So I'm using always on top and on active workspace with transparent background (you see where it's going), and I'd like to be able to just close terminal, and next time I open it to resume work. e.G. ...
0
votes
0answers
20 views

videos that are captured by commands in terminal, run very fast when played

i use this command to record my screen avconv -f pulse -i default -f x11grab -r 15 -s $(xdpyinfo | grep dimensions | awk -F ' ' ' { print $2 } ' ) -i :0.0+0,0 -acodec libmp3lame -vcodec libx264 ...
0
votes
1answer
28 views

Terminal bug? Mixed up characters

I am using Ubuntu 14.04 and I am having a character problem with my terminal. This is my terminal when I write a short command and this is my terminal when I write a command with more than the ...
-1
votes
0answers
23 views

cant update error message [duplicate]

Every time i type sudo apt-get update it gives this error: W: Failed to fetch http://ppa.launchpad.net/docky-core/stable/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found W: Failed to ...
0
votes
2answers
32 views

Set custom added PATH vars to work in each Terminal session [duplicate]

I ran these 2 commands simply in the terminal: export PATH="$PATH:/home/milkncookiez/Developer/android-studio/bin" export PATH="$PATH:/home/milkncookiez/Developer/PhpStorm/bin" in the 2 bin folders ...
1
vote
3answers
90 views

copy n number of files from one folder to another folder

I have a folder of n number of files. I need to move n/2(or)n/3 files from that folder to any other folder. How to set the value of n so that it will move exact those number of files?
0
votes
1answer
76 views

Configuring youtube-dl

I want to configure youtube-dl, that it downloads only audio files in mp3. and in its help it shows the following line: You can configure youtube-dl by placing default arguments (such as ...
1
vote
1answer
33 views

Bash: what is the meaning of ${parameter##word}

I'm working on bash code and I found a function CheckOtherFiles that I guess is used to check if a file ($1) is more recent from file $WS_ROOT/$NomeVista/COMP/COMP_COMPILE. CheckOtherFiles is called ...
4
votes
1answer
96 views

gedit top menu invisible when started from terminal and using x11-Forwarding

Given: I'm using export $(dbus-launch) in my /etc/bash.bashrc file as I'm normally running under a non-admin user and need to su - admin to do anything dangerous. Normal behaviour: Go to dash, open ...
0
votes
1answer
222 views

No such file or directory, ubuntu 14.04.1

it's my first time i'm using ubuntu and i've got some problem that frustrating me. i'm running ubuntu 14.04.1 LTS. my problem is when i try to access desktop or any folder at my home directory, it ...
14
votes
5answers
914 views

Is there any default function/utility to prompt the user for yes/no in a Bash script?

Sometimes I need to ask the user for yes/no to confirm something. Usually I use something like this: # Yes/no dialog. The first argument is the message that the user will see. # If the user enters ...
1
vote
3answers
136 views

VLC instalation problem (Installing through Terminal)

I am completely new to Ubuntu, wanted to install VLC it wasn't working, updated system, than upgraded it, but still it isn't working. I used both the Ubuntu Software center and the Terminal for that. ...
1
vote
0answers
90 views

Mounting Android and copying files over MTP truncates files by 32 bytes

Nexus 5 with stock Android 4.4.4 Ubuntu Desktop 14.04 LTS If I plug my phone into my computer, it's automatically detected and mounted. Using nautilus I can navigate to my DCIM/Camera folder and ...
0
votes
1answer
32 views

HELP I changed permissions nothing works and I got locket out [duplicate]

I ran this command sudo chown -hR root /. and now flash is disabled, chrome does not work, nothing works, I cannot even access folder directories outside of the terminal. I then logged out and tried ...
1
vote
3answers
58 views

List hidden files but exclude directories.

Is there a way to list files, but not directories, prefixed with a . (hidden files)?
1
vote
1answer
94 views

Change from qwerty to azerty in command line

I start my command line in Ubuntu but if I type anything my keyboard is in qwerty. I want to change it to azerty. Is there a command that I can use to change it? If I go to the GUI of ubuntu, my ...
0
votes
0answers
16 views

set wallch interval with the command line

How do you set wallch interval between image transition with the command line? currently I am using the following startup command: bash -c 'sleep 2 && /usr/bin/wallch --none --start' ...
1
vote
2answers
39 views

What can I safely remove from Ubuntu and still have a decent graphic interface?

I have come to like Linux, Unix, and the GUI's but sometimes I remove too many things and lose the ability to boot back into the same interface I was using before I rebooted. most of the time I have ...
1
vote
2answers
91 views

Ubuntu 14.04 Login Loop from running startx in root

I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like ...
0
votes
2answers
43 views

Resetting Fstab on 14.04

Heres the thing, my windows operating system 8 crashed due to a virus(so i assume)..It got the blue screen of death. I tried everything to recover it and nothing worked. So i decided to install ubuntu ...
0
votes
0answers
10 views

I can't get to the bootloader on my LG G2 [duplicate]

Every time that I type in the command '$ adb reboot bootloader' in my terminal while my G2 is connected to my computer instead of reboot in to the bootloader it just turns off and reboots as normal. ...
2
votes
2answers
237 views

Run a standard command in bash script

I am writing a bash script to automate several actions: #!/bin/bash echo "Hello, World" NAME="${1}" PATH="${2}" echo $NAME echo $PATH eval "ls" I am going to call ls, ffmpeg and a lot of ...
-1
votes
0answers
33 views

Changing fonts and colors in Minimal Ubuntu

I am running a Minimal Ubuntu 14.10 installation in VMware Player 6.0.4. This is a CLI-only environment and the terminal emulator it uses is TTY. I have a Helvetica TrueType font file that I extracted ...
-1
votes
1answer
59 views

install 'Line" in ubuntu 14.04 64 bit using wine

im using ubuntu 14.04 with the 64-bit version. i have a problem when i tried to install "LINE" using wine. in the article i have read, it says that i have to download a package file, so i download ...
2
votes
0answers
52 views

Ubuntu 14 command line printing impossible but fine through gui

If I try to command line print any file using lp or lpr, I get a "no pages found" error in CUPS. Tried also as SUDO, no go. But if I print from any application (text editor etc) it prints no problem. ...
1
vote
3answers
160 views

How to get the path to a file in your system [duplicate]

I am trying to cd /home/ervin/Downloads/psneuter in order to push psneuter to an android phone in order to root it. I believe the path to the file and folder is correct, yet I get a message no such ...
0
votes
2answers
39 views

multiple file rename based on modification date

I have looked on the web on multiple sites but I can't seem to find a solution and the man page is not clear (I'm a beginner with the CLI). This is my problem: I have about 200 files in a directory, ...
0
votes
2answers
34 views

Insert text into file

I'm trying to insert some text into a file on a specific line which I have managed to do with sed the below being inserted into line 34 of the txt file. sed -i "34i some text" name_of_file.txt The ...
3
votes
1answer
365 views

How do I delete all pop/rap music?

I have all the music stored in ~/Music and I want to delete all pop music (or it could be a different genre). I was thinking to look the song metadata to check and see if a song is pop, and then ...
1
vote
0answers
32 views

how to encode a shell script so others can run it but they can not read it

I want to encode a script, so others can run that script to get relevant result but when they run command cat it should throw output in encoded format.
0
votes
2answers
44 views

Terminal Runs SSH Every Time

I have no idea how this happened. I was messing with SSH tunneling into my Raspberry Pi (with no problems) and since then, every time I open terminal on my Ubuntu machine, it tries to ssh into the ...
0
votes
1answer
54 views

Options and commands

I can see there are a lot of command line options in Ubuntu. For example: the -l and -v options in sudo fdisk -l and sudo shred /dev/sdb1 -v . Does anyone know where I can find all of the options ...
0
votes
3answers
58 views

Get all file paths from a certain point and pipe to text file

If my terminal is currently in home/stuff/stuff2 and there are more folders and files under stuff2, how can I launch a command to get the file names of all the files and folders from this directory ...
1
vote
2answers
72 views

How to run a shell script with a file argument located in the same directory at the script? [duplicate]

I would like to run a command with an argument placed in the same directory as the shell script, from a shell script. example: my_installer.sh: #!/bin/sh sudo dpkg -i --someflags=abcd blah.deb ...
0
votes
1answer
74 views

Setting up wifi / Installing b43 driver

I'm on a 2009 macbook pro dual boot. When booting linux, I get a message saying I don't have the wireless driver I need. I tried following the instructions from the website shown, but after I execute ...
2
votes
1answer
68 views

Rename all files in subdirecories

I am having a problem writing a script for mass renaming of files in subdirectories. I have a folder with multiple subfolders, and those subfolders have multiple files that I need to rename. This is ...
3
votes
6answers
286 views

rename multiple files with delimiters

How could I rename multiple files like, IonXpress_049.T11014.R_2014_11_13_11_26_35_user_PR2-41-Pooling0026_3140_13112014.bam ...
0
votes
1answer
43 views

Terminal error (some typo somewhere?) with .bashrc disables all aliases etc

I can't use any of my aliases or custom defined variables in bash. The error when I open the terminal is immediately: : command not found bash: /home/khaverim7/.bashrc: line 6: syntax error near ...
0
votes
2answers
47 views

Help needed to identify/remove randomly named “ghost” folder in home directory

So, I found a folder called "Yfmo_1BrUs" right in my home directory and I do not know how it got there (meaning which application created it). The name is weird but gives a clue that it was ...
0
votes
0answers
21 views

Configure server machine

I have a server machine. Number of networks and sub-networks are connected through it. I want to configure my server machine like, every client machine can install operating system through network ...
0
votes
0answers
24 views

Open file with correct program, in terminal, based on extension [duplicate]

Is there any way to automatically open a file with the correct program, when using the terminal? Something similar with double clicking a file in GUI. So for example having a pdf file, not need to ...
6
votes
4answers
1k views

How to draw a picture with text in the center of that via command-line?

I need to paint an image with text in the center via command-line to further put into the video. A simple yellow text on black background. I tried FFmpeg way: ffmpeg -loop 1 -r 1 -i b.png -b:v 1M ...
0
votes
0answers
35 views

CUPS error - can't print from command line LP but can through applications

If I try to command line print any file using lp or lpr, I get a "no pages found" error in CUPS. But if I print from any application (text editor etc) it prints no problem. A filter error for ...
1
vote
1answer
31 views

kill popup or dialog box using command line

I wonder is there a way to kill popup or dialog box by using command line? Actually I want to kill all the popup as shown in attached picture
0
votes
1answer
36 views

What damage will an accidental move of /bin do?

Whilst testing a little bash script I've been writing, a little finger trouble led to a directory name variable not being passed in, resulting in a move command being applied to /* . /boot was moved ...
1
vote
1answer
119 views

Format external hard drive to ext4 in command line [duplicate]

How do you format an external hard drive to ext4 via the command line in ubuntu?
1
vote
1answer
43 views

Recover accidentally deleted function that is loaded in bash

I was editing my .bashrc file (actually a file sourced in there) and added a bunch of functions. I track my home directory in git, but I accidentally did a hard reset before even staging the changes. ...