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

learn more… | top users | synonyms (6)

0
votes
0answers
18 views

Help! I don't know what is this and how to change it [duplicate]

If i open terminal there will be hostname like this : user@Gammaries:~$ the question is, if "Gammaries" is the hostname, what is "user" one? and how do I change the "user"? thanks for helping
0
votes
1answer
29 views

Unity Panel not showing in 14.04

when I log in to my account, it only shows the wallpaper and one folder I have on the desktop. I found some answers where they tell me to open a terminal and reset unity settings, the problem is that ...
1
vote
1answer
29 views

Help following instructions (stuck at editing a file)

I'm following these instructions. This is what I've done so far: Installed JDK Downloaded NDK & SDK, extracted them and MOVED them to usr/src Configured my $PATH Ran android and now I'm ...
3
votes
2answers
423 views

\n doesn't work on terminal

\n is not recognized as "change line". It just prints \n. My terminal is gnome terminal 3.6.2. First I noticed it with echo commands,and then with shell scripts. Any suggestions as to why it ...
0
votes
1answer
35 views

Run open and read command on a file within python - not using a script

I'm going through the "Learn python the hardway" - it suggest running "python" from the terminal and using the 'open' and 'read' commands on a file. I created the provided script and sample text file ...
2
votes
1answer
33 views

How to prevent commands being removed from history?

I have noticed that when I go up through my commands using the arrow keys, UP and DOWN, that if I then edit a command, it edits it in history, and I can even remove a command like that, however I do ...
0
votes
1answer
23 views

Installing jmf.bin file in ubuntu

I am new to Ubuntu and want to install .bin file on my pc which generates jar files after completion of installation. It is a jmf (.bin) file which supports Java Media Framework for running the ...
0
votes
1answer
30 views

Terminal opening two instances of Sublime instead of one

When I'm in the terminal in the appropriate folder I wish to open. I type subl . and two instances of Sublime Text comes up. If the folder I'm in is the same folder as my last session then I get ...
0
votes
1answer
35 views

Network traffic blocker by ip and port

I'm getting continues traffic to my AWS ubuntu server. Those traffic increase my bandwidth billing in a high level. Is there any ip port blocker tool or a way to block those traffics?
1
vote
1answer
59 views

How to open a file in text editor through terminal?

I am fairly new to Linux and using Ubuntu. I am trying to set-up a task alert everyday at a fixed time. I am using the "Scheduled tasks" software tool(I have installed this) for the same. This ...
1
vote
1answer
72 views

Automatically Run a Command/script at startup [ yes its a duplicate, no good answer in duplicates] [duplicate]

This question is ALL over ubuntu, with MODS saying its duplicate, but I have found no good answers! I want to run the command, (this will work for script as well) sudo service deluged restart at ...
0
votes
1answer
32 views

running a bash file states:date: command not found

I've installed a version of Ubuntu Server and although I'm fairly still fresh with Ubuntu, I'm trying to create a bash file to run a program in the background. More importantly, I'm trying to get a ...
3
votes
2answers
118 views

How to list all packages installed as dependencies in Terminal, and what installed them?

Is there a way in Terminal to list all programs which have not been installed by me, but other programs as necessary dependencies? And can I at the same time view which programs they were installed ...
1
vote
3answers
318 views

How to extract details from an mp3 file?

How to extract details like the location of the song,artist,album,bitrate,year,genre.. etc using linux command? I have tried mp3info, but it didn't give much information. Please Help. Thank you!
0
votes
2answers
51 views

bash is looking for a missing ' " ' , unexpected EOF

I have problem with bash which is looking for a missing character but I cannot find it. Maybe there is something else wrong? Every time I open the terminal I get this error: bash: ...
2
votes
4answers
126 views

Remove any trailing blank lines or lines with whitespaces from end of file

I want to get delete all of the blank lines and lines with spaces (if any exist (ONLY from the bottom of the file)) and then to remove one more line (also ONLY from the bottom of the file). I have ...
0
votes
1answer
49 views

Remove newline from openssl base64 encode string? [closed]

echo -n 'HelloWorld' | openssl base64 | pbcopy That command give me a newline after paste it. I thought the -n removed the newline but don't remove when use base64. so how can get my output string ...
0
votes
2answers
63 views

Menus and Software Center in Chinese

I recently dual booted Ubuntu version 15.04 alongside Windows 10 on my Dell Inspiron 3451. I got the .iso file from Ubuntu's main site, and I used a live USB install in UEFI mode. I am a new Linux ...
6
votes
4answers
398 views

Alert when terminal program finishes running? [duplicate]

I am running Xubuntu 15.04, but maybe this question has a general solution for all Ubuntu flavours. I usually leave long computations running in a terminal window, which may take from a couple of ...
4
votes
2answers
150 views

how to update an individual app through terminal

I want to update Firefox alone without updating all applications. And I want to do it through terminal. Is that possible? Because I have a slow internet connection. I'm using Ubuntu 15.04 with a ...
2
votes
3answers
81 views

shell sript to read source file and use the key in the script

#!/bin/bash source /data/output/QAScripts/conf.ini var=$($1path) echo $var conf.ini is the config file which has LSTpath=/data/bb/loader I get below below error. Where am I going wrong. ./file ...
4
votes
3answers
2k views

Syntax error near unexpected token `('

When I use below code in Ubuntu terminal, it works fine: rm !(*.sh) -rf But if I place the same line code in a shell script (clean.sh) and run the shell script from terminal, it throws an error: ...
0
votes
1answer
29 views

Steganography/Execute command

I made a program that encrypts commands and executes on the remote system, but after that I wanted to learn steganography and I have one question: Is it possible to attach a script to a PNG or JPG or ...
2
votes
2answers
225 views

How to run an executable without prepending ./

I'm fairly new to Ubuntu and I do believe in jumping in head first into issues to learn. I know that I can run some GUI applications with Putty+Xming on headless Ubuntu Server. But I can't run Visual ...
-1
votes
1answer
95 views

how to remove app that has been install from terminal

I have installed an app called telegram using terminal but right now i cant Remove it i tried every thing but nothing worked please help me here is how I did install it please tell me how to remove ...
1
vote
3answers
31 views

How to run perform different actions from one script

How can I run different commands from one script? For example, if I want to run myscript new filename to create this file, and run myscript del filename to delete this file. At this moment I have a ...
1
vote
1answer
29 views

Losing environment info when using /usr/bin/sudo and /bin/bash

My question is why do I lose environment information like $PATH when running the following command: /usr/bin/sudo -H -u <user> /bin/bash -l -c '<command>' I'm trying to add the ...
0
votes
1answer
41 views

How to get a command to output the contents into Terminal, and my system clipboard [duplicate]

Let's say I have an alias on my system which I often use to tell me my system information, the alias is systeminfo, and it executes lsb_release -a which outputs: No LSB modules are available. ...
0
votes
2answers
48 views

Run python script when a file has been added to a folder?

Is it possible to run a Python script when a file has been added to a folder? In my scenario I have a folder that contains movies and the Python script gets the details (name, year, plot, rating, ...
0
votes
0answers
31 views

Reliance Netconnect+ not working

I have always used Reliance Netconnect by using the sudo gnome-ppp but recently I have this error message coming. GNOME PPP: Connecting... GNOME PPP: STDERR: --> WvDial: Internet dialer version ...
0
votes
2answers
46 views

Concatenate multiple files without header

I have several directories ("amazon", "niger",...), in which I have several subdirectories ("gfdl", "hadgem",...), in which I also have several sub-directories ("rcp8p5", "rcp4p5",...). In this last ...
0
votes
0answers
14 views

Package required to install for opening .grb files [duplicate]

I don't know which package is required to open .grb files. Please help me. best. bsourav69.
0
votes
0answers
15 views

Terminal gets really small when I double click the window

When I'm on Terminal I double click the menu bar on the window to downsize the window it gets really tiny to only the X is showing. Sorry if i am not explaining this well but I will include a ...
0
votes
1answer
44 views

Determine if current login is first for the month in Bash

This is a continuation of my post here Although A.B. provided me with the correct answer, which is by utilizing the output of last and checking if it's the current log in, it did not solve my ...
18
votes
6answers
635 views

How to edit multiple text files with a single command?

I want to remove the first line of multiple text files and replace it with another line. Is there a way to do this using the terminal? I know how to use vim, is there a way to automate it with it? I ...
0
votes
0answers
24 views

Dropbox downloaded zip contains same foldernames twice

I'm not sure if this is a Ubuntu related question. The problem: when I download a folder from dropbox, the files are spread over folders with basically the same name except for the folder name ...
0
votes
0answers
30 views

Access to X server denied from command line

I just installed Ubuntu 15.04 and the Gnome 3 desktop environment. If I try to run a GUI program from the command line (like Gedit), I get: XXXXX:~$ gedit No protocol specified ** (gedit:3299): ...
1
vote
1answer
29 views

combine audio and photo using command line in Ubuntu

What is the best way that I can make a video from one photo and one audio file like Mp3 I’m using an Ubuntu headless server, so I need a command line version for this... I tried with avconv but I ...
1
vote
0answers
39 views

Cron not working but manually run in terminal works

I placed a command in a script file called app.sh that simply execute an application. sh app.sh When I run it with terminal directly works fine!! but when put it under cron does not work..I tired ...
2
votes
1answer
216 views

How to install R version 3.2.1 – collect2: error: ld returned 1 exit status

I'm trying to install R version 3.2.1. I executed the following code ./configure --enable-R-shlib followed by make command. But the following error is obtained. /usr/bin/ld: ../appl/dchdc.o: ...
0
votes
0answers
19 views

how can i compile source code with scapy in ubuntu 14.04

I want to make reassembly of fragmented packets which I had received,so that I searched through google and found that "scapy" can make reassembly of those packets.now i downloaded "scapy software for ...
1
vote
0answers
36 views

As root, I can use su to make dconf changes for another user. How do I actually make them apply?

The scenario below assumes we booted up the computer and logged in as the user bort at the login menu. This is on 14.04.2. If I open up a terminal, as the user bort I can list a dconf setting, for ...
1
vote
0answers
36 views

connecting an Ethernet which needs a password and a user name?

I have an account through a wired network (Ethernet) internet provider - a person that have an internet LAN and share it with neighbours in exchange with money - every one of us have an account and a ...
2
votes
1answer
28 views

Remove list of files from different subfolders

I have a folder (call "folder"), composed of different subfolders ("subfolder1", "subfolder2",...). I would like to remove a list of files in all the subfolder of "folder", while some files are ...
2
votes
1answer
44 views

using wget to download xml for conky script won't keep html tags

So I'm trying to setup a conkyrc for weather, using the following script: #!/bin/bash station="KRAP.xml" wdir='/tmp/weather' update_xml() { if [ ! -e "$station" ]; then ...
2
votes
2answers
79 views

How to install tint2 on gnome

I am trying to install tint2 on my ubuntu-gnome 15. Here is what I have done: sudo sh -c "echo 'deb http://ppa.launchpad.net/killeroid/ppa/ubuntu jaunty main' >> /etc/apt/sources.list" sudo ...
2
votes
1answer
35 views

Copy/move a list of files to a new directory

I have an huge amount of files (e.g. 110011basz.dat, 110012basz.dat, 110013basz.dat,...) inside a folder, call folder. On the other hand I have a list related to the files I need to move to another ...
12
votes
2answers
712 views

Is there an easy way to log all activity that a shell script does?

Is there an easy way to log all activity that occurs from a shell script to a file? I have a script. It outputs things like echo "instructions", as well as other program output. I know the commands: ...
3
votes
2answers
910 views

How to roll-back a shell command once executed?

I would like to know if there is a way to roll-back shell commands : for example rolling back a rm -rf command.
2
votes
2answers
155 views

Installation of Skype for Ubuntu 14.04 x64 with Terminal

I'm new to Ubuntu and try to install the latest version of Skype from terminal windows. Can anybody help me please, How to do this?