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

learn more… | top users | synonyms (6)

0
votes
0answers
15 views

How can I link a command with a word for the commandline?

how can I start an exe program (wine /path/to/file.exe) with bash with only a single command, e.g. statistic? For example, I can start Firefox with firefox in the commandline. How can I achieve this ...
2
votes
1answer
21 views

Deleted $WORK Directory

So I made a mistake working on a school assignment and I'm curious what exactly it is that I did. I used ssh to log in to a supercomputer provided for the class and used scp to copy a file to my ...
1
vote
1answer
36 views

What does this terminal message mean?

I can't get internet on one of my computers. It says connected. I had this similar problem on my other computer and I used this command to fix it: ip route add default via defaultgatewayip It ...
-1
votes
1answer
19 views

groupadd: group 'xxxx' already exist

I have created a group in Ubuntu terminal called terminal using groupadd terminal command and when I list out the groups using groups command it will not show the newly created group name in the ...
0
votes
0answers
11 views

Lock the position of desktop icon 14.03

I was wondering if there is a way to prevent a user from moving a desktop icon but it still be usable? I am on ubuntu 14.03 32 bit. Any help wnd suggestions are appreciated. Thanks.
3
votes
0answers
12 views

D missing from terminal keybinds - have to add it on every login

I have been running Ubuntu Gnome 15.04 on my Thinkpad T420 for a couple months now, and so far it has been great. However, A couple days ago my "d"(lowercase only) key stopped working in any terminal ...
0
votes
0answers
16 views

OpenVPN connect message in script

I was wondering, how do I run a command when my OPENVPN bash script has connected successfully to a network? I know about the: "command;nextcommand" thing do I do something like this so it runs a new ...
1
vote
1answer
17 views

Lubuntu stopped booting desktop, just goes to command line

I was trying to get the text right on my TV monitor so I was messing with xorg.conf. Well, I didn't see one so I ran the command sudo nvidia-xconfig. That added the file so then I added Options "DPI" ...
4
votes
4answers
307 views

Check security mode of connected Wi-Fi network

How do I check the security mode of the connected Wi-Fi network, using the command-line interface? I want to know whether the current Wi-Fi connection is protected with WPA, protected with WEP, or is ...
-1
votes
0answers
17 views

How to access web project files from localhost in ubuntu

I was just following a simple tutorial on pgrouting HERE.My question is about ubuntu through. In the link i have posted, you will see the following 2 commands: cp -R /usr/share/pgrouting/workshop ...
0
votes
1answer
38 views

Unabale to delete .Trash-0 folder

I tried: # rm -r .Trash-0 # rm -rf .Trash-0 But of no use. This file doesn't get deleted. It says "read only file system cannot be deleted".
0
votes
0answers
12 views

Bash Script for Dumping the Android Partition is not consistent

I really need your suggestion about my current problem. I am trying to dump the whole partitions on the Android with netcat. I have created 4 bash scripts for automation process. So, I only need to ...
2
votes
1answer
46 views

Trying to Get Total CPU Usage in Bash

I'm trying to get the CPU's total load with this: IDLE=$(mpstat | grep "all" | cut -c 92-) CPULD=$(expr 100 - $IDLE) echo $CPULD but it always returns: expr: non-integer argument on the second ...
0
votes
1answer
8 views

How do I count the number of times a number satisfies a range (bigger than x, smaller than y) in LibreOffice Calc?

I have this spreadsheet in LibreOffice. I need to know how show the number of times a number, in Columns D and E, satisfies a certain range. For example, how many times a number is bigger than 3 and ...
0
votes
1answer
20 views

AUTODOCK software installation problem

I am new user for ubuntu. I have always used windows but have very little knowledge about terminal and command lines. ((As I am a research scholar with medicinal background.) But I have been following ...
0
votes
2answers
15 views

How to install the the “speedtest_cli” module for the speedtest-cli command on ubuntu 14.04

I had an idea to test the internet speed of my local library. Some downloads finish quickly and some don't. Plus, I feel better knowing how to do networking administration from the command line. I ...
0
votes
1answer
31 views

Help with a messed up /etc/profile file?

I altered my /etc/profile and now its showing off some errors whenever i startup my system saying that there's some end of file or something like that missing and the session wont be configured ...
-1
votes
0answers
23 views

Ubuntu graphics

I installed ubuntu 14:04, and I was testing some commands including CTRL + ALT + F1 to access the shell. After i did this, i restarted the system and when I returned to start ubuntu, before ...
0
votes
1answer
21 views

Ubuntu Cronjob Samba Permission and restart

Is it possible in Ubuntu to create a cronjob which does give a certain file 777 permission and restarts the Samba server.
2
votes
1answer
17 views

how to pipe to a kdialog textbox?

echo "hello" | kdialog --textbox - I was hopping that row should pipe the word hello over to kdialog, and by setting the file argument to -, it should have used the piped text as content. Is it ...
1
vote
1answer
19 views

Ubuntu Server LibreOffice Convert to txt Error

Running headless (only option since on server 14.04) trying to convert .doc files to .txt to be able to be ingested by php. Running the soffice --headless --convert-to txt test.doc produces a ...
1
vote
1answer
28 views

I used the terminal to change my password, but it's not applying the change

I changed my password using sudo passwd. It worked fine, with no errors, but my password hasn't been changed. I rebooted, but that didn't fix anything. What am I doing wrong?
2
votes
0answers
25 views

Load theme files in Gnome Terminal on Ubuntu 15.04

It seems that loading the Gnome Terminal theme files is not working anymore in Ubuntu 15.04: gconftool-2 --load terminal-flat-theme.xml This does not change my current theme. The theme file looks ...
-2
votes
0answers
12 views

Cant locate loadable object:YAML [on hold]

I get below error "Cant locate loadable object:YAML" because YAML package is not properly installed.How can i install this on RED had Linux.
0
votes
2answers
31 views

Understanding a complex wget command

I was just going through a tutorial online HERE. If you see the last command in the section: # For workshops at conferences and events: # Download and install from ...
1
vote
1answer
21 views

can not run the command from shell script but it's fine when typing directly into terminal

I am trying to run a shell script with the bellow content ns script.tcl sleep 100 the command ns works fine when typing in terminal but says: ns : not found when runing from the shell script.
2
votes
0answers
14 views

Beep command works but the bell character doesn't

After reading this answer, the beep command successfully makes a sound. http://askubuntu.com/a/168628/445574 But when I print the bell character, it doesn't make any. I've already tried: ...
0
votes
1answer
8 views

sudo subl and desktop entry for sublime text launches different apps

I have modified sublime text with themes and plugins on ubuntu 15.04 and this had to be done with sudo subl because with the unity launcher I had a permission error with package manager installation. ...
3
votes
1answer
92 views

How do I upgrade KeePass2 to the newest version from the terminal?

How do I upgrade KeePass2 using the terminal ? I have version 2.25 and I want to upgrade to version 2.30.
4
votes
2answers
198 views

How to suppress tar error messages in when piping

For example: I extract a tar.bz2 file with tar -xvf instead of tar -xjvf: tar -xvf file.tar.bz2 tar: invalid tar magic and if redirect stderr tar -xvf file.tar.bz2 2>/dev/null it works. ...
-3
votes
1answer
28 views

comment issue with installing windows software ( go figure )

I had some codec issues with the video application...and I tried this commend from the link to update them, ( the comment line is down here as well ) but now I have this problem with this ...
1
vote
2answers
72 views

awk repeats lines too many times

I'm using awk to create a file that contains lines of text & uses an input file of numbers. i want to substitute each number in once, i.e. line 1 gets the first number, line 2 gets the second ...
0
votes
1answer
39 views

Using Grep to multiple find and replace

I have lets say 90 HTML files and I have to put one new JS script link to head section each of them. Now, i could use some F&R engine of some code compiler Like: find: </head> replace it ...
0
votes
0answers
21 views

Locked down guest account

I need to setup a computer so a user can surf the internet and that's it. I want an admin account to make changes, apply updates, ect. I would like the guest account to be locked down with no access ...
0
votes
1answer
31 views

sudo and gsettings

I have read some questions and answers regarding the behavior and some potential solutions to the following issue: When calling gsettings set to update the launcher, even though the command succeeds, ...
-1
votes
2answers
33 views

Python code editor in terminal

How do I use terminal as a python code editor, not a python command line? I know doing this is possible because i have seen people do it before. and terminal has to be the code editor. for example it ...
0
votes
0answers
20 views

Using terminal as login screen

I want to use the terminal to login instead of the usual gnome skin. Is there a simple package or theme that would let me do this or do I have to muck around a bit?
3
votes
3answers
93 views

how to attach pen drive, and external HDD in ubuntu?

Could you please provide commands to: attach pen drive in Ubuntu system unmount command attach external HDD using mount command Thanks.
0
votes
1answer
42 views

Ubuntu Phone (14.10) Terminal Scroll up

i own a Smartphone with Ubuntu Touch 14.10 on it. I got an Error when installing something and the Error Message is that long that i can't see the first lines of it. Is there a possibility in the ...
-3
votes
1answer
27 views

How tosave terminal output to a folder? [duplicate]

am tiring to do a multi operation with a soft ware , then to How do I save each terminal output to a folder?
1
vote
2answers
38 views

How to use the python 2.7 shell in ubuntu terminal [on hold]

I recently taught myself how to code in python. But i dont know how to use the inbuilt python 2.7 IDE. Can anybody help me with this also can you please give me a list of basic commands one needs to ...
1
vote
0answers
24 views

Simple way to delete a file and all its links (simultaneously)

I found a lot of questions on how to delete symlinks only, or delete symlinks based on their contents, but no one has asked how to do what I want to do. Take the following example file-l -> ...
0
votes
2answers
28 views

How to edit a file to add contents in Ubuntu

I am trying to run this code: /etc/apt/sources.list When this is entered into the terminal, it says Permission denied... I found it here, it is a guide for installing Tor. Any suggestion ?
0
votes
0answers
18 views

.bash_history of root account on Ubuntu Server 14.04

Last few hours I'm looking for a solution to enable saving of bash history on root account of Ubuntu Server 14.04. I'm not using root account, because I created my own, but some other users are still ...
0
votes
1answer
22 views

I cannot switch to root password

i have given '$' as one of the charectors in between the pasword for logging in my computer so when i have logged on to the terminal and wanted to shift to user it was giving su authentication ...
-1
votes
0answers
33 views

creating new column based on existing column

ALTER table results ADD result varchar(5); UPDATE results SET result=IF(credits=0,fail,pass); new column 'result' should display pass or fail.if credits are 0 it should display fail and for other ...
6
votes
1answer
197 views

How to run Telegram from Terminal

So I have telegram messenger on my Ubuntu and I'm trying to launch it from terminal and later on set it up as startup program - problem is I cannot find command to run it. telegram/Telegram don't ...
-1
votes
1answer
21 views

How can i open sublime text editor with termial on ubuntu 14.04?

I want open sublime text editor via terminal, already i can it open via subl command, but problem is when i open editor then terminal loading like as below (sublime_text:7397): GLib-CRITICAL **: ...
0
votes
1answer
16 views

Setting action with xbindkeys: sh: 1: Bad substitution and wrong clipboard area

I'm trying to copy the song info (artist - title) to the clipboard in xbindkeys using shell command and the banshee --query-title and --query-artist commands. first I open the xbindkeys with $ ...
3
votes
1answer
126 views

How can I lock my Ubuntu phone using the terminal?

I have the terminal installed on my Meizu MX4 Ubuntu phone, is there a command I can use to lock the phone from the terminal? By "lock" I mean the same thing that the lock button on top of the phone ...