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

learn more… | top users | synonyms (5)

2
votes
1answer
12 views

Is it possible to enter password for sudo only once, and configure it to not require for password on other terminals?

I enter my first sudo command. I enter my password. For a while, I wont have to enter my password for subsequent sudo commands. Now the question. I am someone who opens a lot of terminals. It would ...
0
votes
1answer
5 views

No Vboxautostart-service scripts in virtualbox?

On a 14.04.2 server, I have installed the Ubuntu fork of VirtualBox 4.3.10, with extpack 93012, in the standard manner using: apt-get install virtualbox I've been trying to enable the autostart ...
0
votes
0answers
6 views

Standard LXC Container configs for shell scripting in Ubuntu?

I would like to do computation in neutral environment. I got a tip about Linux containers here. I am not sure how this project about Linux containers is managed, like who is the central board. ...
0
votes
0answers
4 views

How to turn off Logitech K810 keyboard back light automation

I could not find terminal command to turn off the back light of keyboard. For example the following commands do turn off my laptop keyboard back light : sudo chmod 777 ...
1
vote
3answers
27 views

Remove whitespace from all array elements

I have a array called arrayvar . Which is being defined as arrayvar=( $(awk '/'"$vovar"'/,/}/ {gsub("'"$vovar"'"," "); gsub("}"," "); gsub("{"," ");gsub(","," ");print}' temp1 | tr -d '\n' | sed ...
7
votes
2answers
202 views

Non-sudo alternative to /usr/local/bin for common scripts

I'm used to putting common scripts in /usr/local/bin so that I can execute them from anywhere with the terminal. For example, I make a shell script named 1, make it executable with chmod +x 1 and put ...
1
vote
1answer
24 views

Shell script to remove unity launcher(if present in Ubuntu 14.04 ) and/or the xfce panel (in the case of xubuntu)

Just want shell script to remove unity launcher(if present in Ubuntu 14.04 ) and/or the xfce panel (in the case of xubuntu). If anybody has idea about the same then please let me know. Thanks
-1
votes
1answer
24 views

what is aptd, apt, apt-get and what are 2758,2936 and 3673 as shown below

2758 ? 00:00:05 aptd 2936 ? 00:00:00 apt 3673 ? 00:00:00 apt-get This is what is being shown when i type ps -e | grep -e apt -e adept | grep -v grep I am very new to ...
5
votes
3answers
156 views

How to remove domain part of each line from text file containing email addresses

I have a text file with one email address per line. How can I remove the domain part but not the TLD part of each line? In here, we would define TLD to be the last element of the string after the last ...
0
votes
0answers
6 views

vlc failed play rtsp video from command line

I am using Ubuntu and VLC for an application which needs a tiled-of 5X4 videos in the screen. The video source are ip Cameras and it transmit videos as RTSP streams. the sample URL to access the feed ...
0
votes
3answers
43 views

Can someone give me a rundown of the 'cat' command and what it's used for?

I'm an intermediate, possibly more on the beginner side, user of bash and the terminal. I've seen the cat command come up in some online stuff, and I was just curious as to what it did, and what it's ...
0
votes
1answer
8 views

ECS not an option in AWS CLI?

I'm just getting started with Amazon EC2 Container Service and I'm trying to follow this guide: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_AWSCLI.html I'm on puTTY (ubuntu) and I ...
1
vote
1answer
27 views

Command runs at ssh login, don't want it to

When I SSH into my ubuntu server, I get the normal system info splash thing, but then a command runs immediately after, and I can't seem to track it down. Last login: Tue Jun 30 15:20:22 2015 from ...
0
votes
2answers
37 views

How to unzip a file in terminal and spit it out with specific file name?

I know I run sudo unzip file.zip -d /path/to/dir, but is there anyway to specify the output file name?
1
vote
1answer
24 views

How to use shell variables after doing sudo su

I am writing a script to fix a missing 'F' letter in a mail log file. The mail log file is continuously updating. I am getting a file name, after that I am doing 'sudo su' to get superuser access. ...
0
votes
0answers
22 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
44 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
21 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
30 views

Storing some strings in a array

I have this sCSISmart1 TRAP-TYPE ENTERPRISE cyclone VARIABLES {cycHostAdapterNumber, cycHostAdapterID, cycManagerID} DESCRIPTION ...
2
votes
1answer
23 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
35 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
30 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
16 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
12 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
46 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 ...
12
votes
0answers
259 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
25 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
115 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
175 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
265 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
37 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
26 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
33 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
21 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
73 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
22 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
54 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
19 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
50 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 ...