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

learn more… | top users | synonyms (5)

0
votes
0answers
13 views

Using sed to remove all lines containing special characters , numbers, and spaces

So I'm fairly new to using shell--bash specifically--and I'm in the process of writing a script which will translate files containing DNA sequences into a more useful format. Unfortunately, many of ...
0
votes
3answers
35 views

Add particular strings to an array sed/awk/grep

I have this ciscoFlashCopyStatus OBJECT-TYPE SYNTAX INTEGER { copyOperationPending(0), copyInProgress(1), ...
1
vote
1answer
18 views

core file size with ulimit

My question is probably not related to Ubuntu in particular, but since my desktop running this OS, I came to this forum. I am trying to change the core file size using ulimit -c command as follows: ...
1
vote
1answer
21 views

Storing some strings in a array

I have this sCSISmart1 TRAP-TYPE ENTERPRISE cyclone VARIABLES {cycHostAdapterNumber, cycHostAdapterID, cycManagerID} DESCRIPTION ...
2
votes
1answer
20 views

Passing Variable into awk gsub

I have this command Here vovar=OBJECTS prvar="$(awk '/'"$vovar"'/,/}/ {gsub("$vovar"," "); gsub("}",": %s,"); gsub("{"," ");gsub(",",": %s,");print}' temp1)" Contents of temp1 ...
0
votes
1answer
34 views

Cannnot run a .sh file in terminator

I am having trouble running a .sh script file in Terminator, however I can run it perfectly fine in the default terminal Ubuntu comes with(gnome-terminal). This is what I get when trying to run it in ...
0
votes
2answers
23 views

Is there any command line to show tree view directory? [duplicate]

Many tutorials depict tree-view directory to show how they organize their files. Is there any command line to show such view? Is ls capable to do this?
0
votes
0answers
11 views

Navigating Directories [duplicate]

I am a new ubuntu user, and i am trying to figure out the terminal. I am using V. 13.10 and my problem is happening even in the begginning. I can't navigate to any directories from the base root of ...
1
vote
1answer
26 views

How do I simply run an ubuntu touch app from the terminal?

I've got a qml file and I just want to ssh to the phone and do qmlscene myfile.qml Is it possible without doing all that stuff with SDK and packages? Just vim and some simple commands that can fit ...
0
votes
0answers
10 views

How can I tackle a pager formatting trouble with (certain) man outputs?

I ran into something that made me suddenly 25 years younger today. (Wish this could happen more often.) That long ago it was troff that occasionally did this; now see: $ man man -> normal output to ...
0
votes
0answers
13 views

Ubuntu 14.04 desktop goes to sleep when issued “poweroff” command while lid closed?

My ubuntu version is 14.04 LTS. I used the following command to shutdown the system after a certain process was completed (This process takes a long time to complete, so I needed a way to ...
0
votes
0answers
11 views

Getting Rid of Autojump

I just removed autojump and I still get this line whenever I access my command terminal: bash: /usr/share/autojump/autojump.sh: No such file or directory I used sudo rm -rf autojump as my primary ...
0
votes
2answers
43 views

create scatter plot

file (1. arg) will create (scatter plot) for n. column (x-axis, 2. arg) and m. column (y-axis, 3. arg) function is called myfun sourcefile 1 3 for scatter plot of 1. and 3. column from file ...
11
votes
0answers
132 views

When run cat says: “Hello, nothing to see here! Move along!”

Today when I ran the cat command, instead of the contents of a file, I got: Hello, nothing to see here! Move along! I have checked to make sure that the cat file has not been changed after the ...
0
votes
2answers
20 views

appends n-th line from the file x at the end of the file y

I have been asked to write a command that appends the n-th line (MYN) from a file (x)to another file (y). Here's what I've done so far: MYN=4 hey=$(awk 'NR==$MYN' x) echo "$hey" >> y But why ...
0
votes
0answers
19 views

error installing mongodb on trusty

I'm trying to install mongodb on the trusty tahr following this tutorial: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. When running the first command (sudo apt-key adv ...
0
votes
2answers
22 views

install ibus-typing-booster on Ubuntu

I tried ibus-typing-booster software on fedora. Is this available for Ubuntu? This is really useful software that I will like to use. Update: I tried to install it using the following steps. But ...
2
votes
2answers
107 views

How do I write a Bash script for this scenario?

I have these files in the directory home/acs. TBBN027162G_38d8-2f08-0c40 TBBN027605G_38d8-2f08-1518 TBBN027941G_38d8-2f08-0d1c TBBN027923G_38d8-2f08-35e4 I want to read TBBN027162G as service_id ...
2
votes
2answers
172 views

How to cancel next job in order after rsync

If two jobs are entered into bash command line separated by semicolon: $ job 1; job 2; How do I cancel the second one? If I press CTRL+c, the first one will be canceled and 'job 2' would start, I ...
0
votes
2answers
29 views

emacs closes when terminal closes [duplicate]

I open a file with emacs through terminal just typing emacs file.txt and when I close terminal, emacs closes too, and when I try to execute another thing terminal doesn't let me becuase keeps ...
6
votes
5answers
262 views

How do I delete everything after second occurrence of quotes using the command line?

I have this store in a variable sCellEventTrap-03-28 TRAP-TYPE -- CAC Code: 00 ENTERPRISE compaq VARIABLES { scellNameDateTime, scellSWComponent, ...
0
votes
2answers
35 views

How to make a script delete a directory after checking for its existence?

How might one make a bash script which when run will check for the existence of a file/folder and if the file/folder is there remove it?
0
votes
0answers
21 views

Execute .sh file, neither in terminal or interface+graphics card issue

I've just installed Ubuntu 15.04 a few days ago, it runs pretty well so far. But I wanted to upgrade it a little and started to play around with tweaks and other stuff. Trying Cairo, I saw that ...
1
vote
0answers
23 views

hcitool scan does not find my bluetooth device

I have a small device that has a bluetooth chip. I can see it through the GUI System Settings > Bluetooth, when adding and discovering a new bluetooth device nearby, but every time I try this command ...
1
vote
2answers
31 views

Make echo ignore spaces?

I have a file called temp1 sCellEventTrap-03-27 TRAP-TYPE -- CAC Code: 01 ENTERPRISE compaq VARIABLES { scellNameDateTime, scellSWComponent, ...
0
votes
1answer
20 views

How can i Point to the Oracle JDK in my Ubuntu.

When I run: java -version. It returns OpenJdk. But I have intalled Oracle JDK. How can I point to the Oracle JDK. Please Some one answer me?
0
votes
0answers
31 views

how to add opened filename to the title bar of a terminal?

I have tried hard googling changing the default display of the title bar of the Terminal by adding the following into my .bashrc file PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" ...
0
votes
0answers
20 views

Airodump-ng taking long time [on hold]

I tried to find wifi password using Airodump-ng, it's taking long time, it's keep on loading like failed to associate, I want to know weather I can find or what's the problem, please help me ...
0
votes
1answer
20 views

Ubuntu terminal runs script files as packages?

Hi Ubuntu newbie here. Previously I tried installing something which would allow me to open packages through the terminal. However, when I go to run script files through the terminal, instead it ...
0
votes
1answer
71 views

How to run a command automatically after completing download?

I need a way that helps me to run a command automatically after a download completes. I want to create a directory beside the downloaded file automatically after I clicked on the integrated download ...
-1
votes
1answer
21 views

Airmong-ng start wlan0 comment not found [duplicate]

I updated aptitude, installed aircrack-ng, but still airmon-ng command in not working...
3
votes
2answers
53 views

How to execute a custom script when Internet reconnects?

My Internet gets disconnected every now and then. I'd like to run a Bash script every time the Internet reconnects. The script is quite simple: #!/bin/bash mplayer /home/user/sound.mp3 It's placed ...
6
votes
1answer
79 views

How can I send commands to specific terminal windows?

I'd like to write a script for opening multiple programs (servers) simultanously in separate terminals - doesn't matter which one - and assign different commands to different terminals with commands ...
1
vote
1answer
18 views

How to extract the required lines in squid.conf file

How do i take out the commented lines in the squid.conf file and make the newly created squid file the default config file for my squid proxy server ?
0
votes
2answers
49 views

Text Editor Scratch

I am trying to install a text editor named Scratch,which is the default text editor in Elementary OS. I've done the following commands. sudo add-apt-repository ppa:elementary-os/daily sudo apt-get ...
3
votes
2answers
46 views

pkexec command in a .desktop file

I made a .desktop file for Androxyde's Flashtool (utility for Sony Xperia devices that I have to open with an executable file in its folder) that requires root privileges to use fastboot utilities. I ...
0
votes
2answers
40 views

Ubuntu can't find my bash-script at /usr/bin/

On my first Xubuntu I successfully copied my script trans.sh to /usr/bin, made executable and after that I can run it in any position of terminal, but my second Xubuntu can't find my script in ...
0
votes
0answers
14 views

unicharset_extractor command throwing segmentation fault(core dumped) error?

I am trying to train the tesseract engine with arial font while following this documentation. when i am running unicharset_extractor command it is givving me the segmentation fault(core dumped) ...
0
votes
1answer
32 views

How to get the docky on an other side from terminal [on hold]

I am customizing an os an i wanted to get the docky on the side from the terminal! Is There an way for that.
1
vote
1answer
21 views

Adding customized window size on the terminal

I would like to add/modify custom size on the terminal Right now I have these: I would like to add my own personal window sizes, how can I do iT?
2
votes
2answers
41 views

Get the next release code name via command line

lsb_release -c gives me the current release, how from the command line can I determine the next release? i.e. if lsb_release -c gives me 'utopic', how can I determine the next release is 'vivid' from ...
0
votes
1answer
13 views

How to mount BTRFS filesystem via CLI with switches defaults,noatime,commit=300,autodefrag

I have ubuntu on a 32GB USB2 flash stick that I carry around with me, it works fine booting on other machines I have to sometimes access. Recently I added a volume that contains a lot of data (a ...
-1
votes
1answer
35 views

Is there a linux command to bulk optimize several image files in just one step?

I have a bunch of images in a folder: images/image1.jpg images/image2.jpg ... These images are not optimized for the web. Just wondering if is there a linux command to bulk optimize those images ...
0
votes
0answers
13 views

Snappy timezone

I read the snappy config command, but I still can't change timezone. The example doesn't looks like a terminal command! Can you help me to set my snappy timezone? Thank you
3
votes
1answer
27 views

How to execute bash aliases functions in the terminal?

I found out that many people have something like in their /etc/bash.bashrc as aliases: del_recursive() { find . | grep '$1' | xargs rm } process() { ps -ef | grep $1 } apache() { sudo ...
-1
votes
0answers
16 views

how to use pencil for android wireframe [on hold]

how to use pencil in ubuntu14.04. i have already added Pencil-2.0-5-fx.xpi as an addon on mozilla. i am unable to access pencil, what are the steps for accessing pencil.
1
vote
1answer
43 views

Ubuntu shutdown script

I am using Ubuntu 14.04 and looking for updating an script to allow passwordless powering off my machine after executing set of commands. To do so, I have configured sudo shutdown now and it does the ...
3
votes
1answer
79 views

Why does vi start vim but typing vim says vim needs to be installed?

When I type vi into terminal, VIM starts up. But when I type vim into terminal, the terminal says The program 'vim' can be found in the following packages: and lists different varieties of vim, as if ...
0
votes
1answer
30 views

Add or remove locked Unity launcher items from terminal?

I've been building a very thorough script to handle the process of fresh-installing Ubuntu and setting it up just the way I like (as well as adapting it for use at where I work). It's a bash script I ...
2
votes
2answers
79 views

Does bash (or any shell, for that matter) have an 'overwrite' mode?

I'm running similar commands on (e.g.) a set of files. As an example, let's say I'm doing something like this (this isn't what I'm doing, it's just an example): > cat path/to/dir/file01.txt ...