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

learn more… | top users | synonyms (5)

0
votes
0answers
13 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
38 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
51 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
32 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
211 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
26 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
27 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
40 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
146 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 ...
-1
votes
2answers
32 views

multiple file rename based on 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
32 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
337 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
31 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
39 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
52 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
53 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
50 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
62 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
58 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
259 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
24 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
43 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

Draw a picture from command line in Ubuntu

I need to paint an image with text in the centre from 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
19 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
19 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
35 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
55 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
42 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. ...
2
votes
3answers
248 views

Using Terminal commands in Ubuntu [duplicate]

Since I am a new Ubuntu user and I am not familiar with commands and Terminal is it possible to use Ubuntu like other OS without messing around with command lines, just installing apps and using them ...
0
votes
0answers
10 views

Passing arguments while running a build

I have a folder with source code files in it. (.hh and .cc files). I modified one of the .hh file as below, if(a>='number1' and a<='number2') { ..... } So every time I change the number1 and ...
1
vote
1answer
42 views

desktop launcher for ssh terminal

I have 3 ssh terminals defined for 3 headless systems on my lan. I can launch them from a host terminal, but I would prefer to create a desktop file for each, so that I could put each one in the ...
1
vote
2answers
25 views

Making disk partitions

How can I make an extended disk partition that takes up the rest of the space on my vm, through the command line?
1
vote
1answer
23 views

Umask on the command line

Where can I go to set a umask for any new users I create through the command line? I think it's through the /etc/.profile but I'm not sure.
0
votes
0answers
21 views

CLI: Defoult monitor and it's resolution

To keep long story short: I have 3 monitors plugged into my computer. Main (1920x1080) via DVI, secondary (1440x900) via D-sub and a TV (720p) via HDMI. I want to have CLI (and possibly GRUB) on the ...
1
vote
0answers
24 views

Advanced CLI interface [closed]

I am not "new" to Linux but I am not an advanced user. I use Terminal when I can but forget a lot of the commands for advanced usage. I have newish machines but would like to run Linux in more of a ...
-1
votes
0answers
15 views

../bthoc: No such file or directory

I tried to execute a .tcl file on bluehoc2.0 on terminal but suddenly I got this error: atul@atul-Lenovo-G500:~/ns-allinone-2.35/ns-2.35/run$ ../bthoc first.tcl > first.nam bash: ../bthoc: No such ...
1
vote
2answers
60 views

Open directory from ls result

I have a problem, I would like to pipe ls and cd together. I create shell pipe like: cesta = ls -lat | awk 'NR==2 {print $8"/"}' cd $cesta But it doesn't work. Could you help me. And I didn't ...
-3
votes
1answer
33 views

List all files that begin with letter a to m followed by three characters in terminal [closed]

List all files that begin with letter a to m followed by three characters in terminal I want to ls file but from a to m by followed three letter
-2
votes
2answers
52 views

Shell Script to check for subdirectory [closed]

A)I used the following code to get the modified date of a file. But this is also selecting the subdirectories and thus returning an error. How van I fix this. for file in $1/*; do echo `stat ...
0
votes
2answers
37 views

Last command and execution time

I'd like to get the last command used and its execution time. This will be used as part of an alias for notification.
0
votes
1answer
41 views

notify-send and terminal command

Let's use sudo apt-get install linux as an example. Here is the notify send command: notify-send -i terminal Bash "execution complete" How could I substitute 'bash' with the entire sudo command? ...
0
votes
1answer
39 views

Run script on shell login for all users

I have a script named "als" that parses the aliases in a user's .bashrc file that I'd like to run for any user logging in via SSH. This should display similar to a Message of the day (MOTD) banner. ...
0
votes
1answer
19 views

Bash error when installing cascade server

I downloaded the .bin package for cascade server 7.2.2 from their site. I am trying to install the 64bit linux package on a 64bit Ubuntu 14.04 Server VM. I am logged in as root. First I did: ...
1
vote
2answers
53 views

Shell script file (.sh) does not run, and throws an error

I am new to linux, and I have a shell script (.sh) file I on my Desktop that I want to run. These are the steps that I did: This is the content of the test.sh file on my Desktop: #!bin/bash ...
0
votes
1answer
21 views

show limited git diff status in ls, only in git directories

This might be an odd problem, but I would like to override the behavior of ls when in a git directory. I want to extract some diff statistics from the last commit, and append it to the bottom of the ...
0
votes
0answers
29 views

pidgin not opening : inconsistency detected in gnome ubuntu 14.04

After a fresh install of ubuntu 14.04 LTS, and installation of pidgin internet messenger, I get the following error message, while running pidgin on terminal: What is the problem here? How can I ...
0
votes
1answer
51 views

What is the difference between running a certain command in terminal and a Thunar action command that opens a terminal and runs the first command?

What I mean is that on several occasions I was able to successfully run a command in a terminal window opened in a certain folder, but when using a command (run not directly from terminal, but from a ...