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

learn more… | top users | synonyms (5)

0
votes
0answers
5 views

How do I enable desktop notifications, including audio, of when terminator is finished executing commands?

I know that on Fedora you get popups and audio notifications that appear whenever a command has finished running in GNOME Terminal. I was wondering if something similar was possible on Ubuntu in ...
1
vote
2answers
19 views

How can I convert mp4 and mkv to 3gp?

I've a directory with 28 mp4's and 2 mkv's. I want to convert them all to 3gp using avconv. How do I do that?
0
votes
0answers
16 views

How to restore the default factory name of my device?

I had change my device name, and I would like to get back to default name that comes when I buy it. I know how to change the name by command-line, but is there a command to restore the device name to ...
0
votes
2answers
49 views

Shell script options with parsing arguments

I have the shell script CONTROLLER_IP="" if [ "$#" -eq 1 ] then CONTROLLER_IP=$1 else echo "Usage : create_endpoint.sh --controller-ip <Controller IP>" exit 1 fi but its executing ...
0
votes
1answer
24 views

how to write c program code to display directories in linux terminl [on hold]

i want a c program to get all the directories from bash terminal.also i need to color different types of files in different colors. eg:-executable files should b displayed in green color, ...
1
vote
0answers
23 views

.desktop launches app with custom icon. why not shell?

I have a .desktop file that launches an app, and it uses the .desktop icon: [Desktop Entry] Name=My Ro Type=Application Comment=Web Application Exec=/path/to/myapp -test Icon=/opt/giteye/icon.xpm ...
1
vote
1answer
11 views

Problem with Comodo Installation

After installing Comodo, though logged in as adminstrator, tried to run /opt/COMODO/post_setup.sh and it says Please run this script with adminstrative priviledges even though I am logged in as ...
0
votes
1answer
41 views

How to execute the tar file without any error? [on hold]

tar (child): ushare-11a-netou.tar.bz2: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now ...
2
votes
7answers
462 views

Remove duplicated dots from file name

I have a dir with tons of files inside which have been named in malformed such as file..txt ,file2..txt ,etc... So how to easily remove this second . from file names? Any applicable method is ...
1
vote
0answers
28 views

Accessing root files on Ubuntu Phone from my eOS based on Ubuntu. [duplicate]

I'm wondering if its possible to access the root files on my Ubuntu Phone E5 from my computer. I know I can access them from the terminal on the phone but its not ideal using that touchscreen to ...
0
votes
0answers
33 views

Script for Opening Two Terminals and Execute Three Consecutive Commands [duplicate]

I intent to open two terminals and execute three consecutive commands in bash script. Basically, the first terminal will execute first command, second terminal will execute second command, and back ...
1
vote
4answers
34 views

Ubuntu 14.04: New user created from command line has missing features

I am trying to create a new user in Ubuntu 14.04 LTS from the bash command line. I use the following commands: sudo useradd -c "Samwise the Brave" sam sudo passwd sam Enter new UNIX password: ...
0
votes
3answers
51 views

Use of the Rename Command

I have a two part question. I have a series of files with the names "file.pdb.#", where # is an integer. 1.) How can I script to rename all the "file.pdb.#" to "file_#.pdb", where the integer is ...
1
vote
1answer
17 views

Execution error with .so file

When running a server and trying to connect to a web socket I have an execution error: ./cameraserver: symbol lookup error: ...
1
vote
2answers
25 views

Missing argument to -exec

This is the command I'm entering. find /home/things/backups -mtime +0 -exec echo "{}" >> /home/things/logs/backup.log \; -exec echo "Hourly rotate successful: $(date). {} was deleted." ...
0
votes
0answers
34 views

What is wrong with my code so far? [on hold]

I'm attempting to make a DNA translation script in bash that will take an input file, iterate through the file, and convert every three characters into the proper protein code it corresponds to. Thus ...
2
votes
1answer
31 views

How can I be sure “apt-get install” successfully finished its work?

I have Ubuntu 14.04 and I intend to download Skyrim. So I put the command into the terminal sudo apt-get install playonlinux. Everything was loading fine and it seemed to be working, however before ...
0
votes
0answers
10 views

Installing YADR on Ubuntu 14.04 error - prezto: old shell detected

I have a fresh install of Ubuntu 14.04 on VirtualBox, and I am trying to install YADR (https://github.com/skwp/dotfiles), which works really well on Mac OS X. However, after I finished installing and ...
0
votes
2answers
34 views

How to use the terminal commands? [duplicate]

when I type any command the terminal asks for password and then when I write nothing show up .. how can I solve that ?
0
votes
0answers
12 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. ...
2
votes
3answers
51 views

Find all files that contain a given clause in their names

This is a general question but my case is that I have installed (I beleive it got installed!) the gcc arm compiler but I can not find it anywhere in my system. I tried the command below but it returns ...
4
votes
1answer
38 views

Recursive directory renaming

I need to recursively append the same suffix to all sub-directory names in a directory. What is a simple and safe way to do this?
0
votes
0answers
5 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
37 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 ...
11
votes
2answers
439 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
36 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
-2
votes
0answers
29 views

what is aptd, apt, apt-get and what are 2758,2936 and 3673 as shown below [on hold]

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
225 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
10 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
48 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
11 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
28 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
49 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
25 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
45 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
24 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
24 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
37 views

Cannnot run a .sh file in terminator [on hold]

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
26 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
43 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
11 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
20 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
14 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
47 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 ...
16
votes
0answers
342 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
20 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 ...