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

learn more… | top users | synonyms (5)

0
votes
0answers
3 views

Can't install HoNClient-3.4.3.sh

I'm desktop user. My OS running 32-bit Ubuntu 14.04LTS. The problem I've run into is this: When I try to run the client in the terminal, using the command: sudo sh HoNClient-3.4.3.sh it gives me ...
4
votes
1answer
100 views

Can I create a new script and chmod it in one command?

When writing answers on here, it's often necessary to create a new script and chmod +x it to make it executable. I won't go into whether this is a good thing or not, but explaining to people that they ...
0
votes
0answers
9 views

/usr/lib/pm-utils/power.d script not working

I'm using linux mint petra and trying to get pop-up notifications when power adaptor removed. I placed my script at /usr/lib/pm-utils/power.d and made it executable, but the script seems not called ...
0
votes
1answer
34 views

What is wrong with my ~./profile?

I'm pretty new to Linux. I have been trying to install ant, java, and the android sdk. In the process have been messing with my ~/.profile and also with my /etc/.profile (dangerous, I know). Well I ...
0
votes
0answers
21 views

Lost graphical login after automating script command

I'm running Ubuntu 12.04 LTS and I want to log all input/output from users. So I've simply tried adding script -a -f /LOG_files/Log_file.txt to users ~.profile. The logging works just fine, but ...
2
votes
2answers
195 views

How to text-to-speech output using command-line?

How to get speech output from entered text by using command-line? Also facility to change speech rate, pitch, volume etc using simple command.
7
votes
2answers
6k views

How do I disable a touchpad using the command line?

Is there a way to disable a touchpad using a terminal command?
3
votes
2answers
6k views

connect to internet through 3g dongle in ubuntu server

As the title says, can i connect to internet through 3g dongle in ubuntu server fresh installation Any terminal / manual way? My purpose is to get connection using dongle in ubuntu server minimal ...
0
votes
1answer
48 views

Wine: How to run .bat file and how to set the path in bat files [on hold]

I have .bat File i used to run in windows it uses java file so i have set everything and tried to run using wine cmd. It gives me some error of file not found if possible can any one say the reason? ...
1
vote
1answer
36 views

How do I provide arguments to a command run from gksudo?

I want to add a shortcut for gnome-system-monitor that runs with root access and has very high priority. My command for the shortcut is: gksudo -k -u root nice --20 gnome-system-monitor But this ...
5
votes
1answer
198 views

How to save live log bash input to a file?

When I am teaching a class, some students have problems following my CLI commands and would like to scroll back to be able to repeat the steps in their own speed. So I'd like to log all my inputs in ...
5
votes
2answers
3k views

updatedb & locate command problem - Files from external hard drive are no longer indexed after rebooting

Files from my external hard drive are no longer indexed after rebooting. I have to remount and then run # updatedb after each reboot. The problem is updatedb takes a few minutes for my external ...
1
vote
1answer
33 views

last -t [date] not filtering results by date

If I run: last -t 20150101010101 I still get logins displayed (even though the date is in the future) If I run last -t 20140723123000 I still get logins displayed from months back. I would ...
4
votes
0answers
23 views

Open terminal in current directory with tmux

I have a simple .bashrc file at the moment that allows me to always open the same terminal (reopen, actually) running tmux. The important part is shown below. The essence of this is that when you ...
0
votes
1answer
17 views

Document How to do a one time push with the batch file allowing through files or paths that have the word demo in them

Topic. This is all the information I have currently. The guy who used to do this, whatever it was, was fired and I have to learn it based on that one sentence. Is there a good place to even start that ...
1
vote
0answers
9 views

How to reset errornous font in promt and output of gnome-terminal

I'm experiencing replacement of all occurances of certain characters in the prompt and output of gnome-terminal (3.6.2 in Ubuntu 14.04), e.g. (latin d is replaced with some kind of uppercase D in ...
4
votes
2answers
56 views

Running Dropbox at startup

Please excuse a simple question from a new Linux user. Running Ubuntu 12.04 on a Dell Pentium(R) Dual-Core CPU E5800 @ 3.20GHz × 2. I installed Dropbox OK with the command: cd ~ && wget ...
1
vote
2answers
37 views

Shell scripting, [duplicate]

I made a simple update script. Now My question was is it possible to run it automatically by loggin in on the Ubuntu Desktop and automatically provide my password (sudo) for this so I don't have to do ...
2
votes
3answers
67 views

Completely Messed up sudoers file and su Operations

I am in a really bad condition right now.I am jotting down the steps I did to get myself into this situation. My objective was to disable sudo on my machine. I am running Amazon Ec2 Ubuntu 12.04 I ...
3
votes
1answer
2k views

Aliases: difference between .bash_rc, .bash_aliases and /usr/local/bin

Playing around with Terminal, I noticed that there are many ways to create permanent aliases. I'm a Linux newbie, and from what I know, doing: sudo ln -s /path/to/esecutable ...
-1
votes
1answer
35 views

Shell scripting add slashes in file name with space

I am a newbee and want to write a shell script in which I will look up in a certain directory for zip file and unzip it to certain directory. File name can have spaces like this "Harry's 20 july.zip" ...
1
vote
1answer
37 views

Run root script or command as root in startup application in Ubuntu 14.04

I have a wireless adapter that used to work in ubuntu 13.10 (dwa 171) after installing drivers for it. Now it won't work the same way anymore since I upgraded to ubuntu 14.04. I've found the only way ...
53
votes
10answers
65k views

How to check battery status using terminal?

I would like a command that check the battery status through the terminal
2
votes
1answer
38 views

How to run backintime as a user

To allow users to run backintime. I am usually running backintime-kde on ubuntu in the following way: sudo su ssh-agent bash backintime-kde4 --config /root/.config/backintime/config --profile-id 1 ...
96
votes
5answers
10k views

How can I tell, from the command line, whether the machine requires a reboot?

When you install certain updates (e.g. a new kernel) in Ubuntu Desktop, you get an indication that a reboot is required (in Lucid, the logout icon turns red). How can I check, from the command line, ...
0
votes
2answers
26 views

find mac address of all connected systems [duplicate]

How can I find out how many system are connected to the local network and how can I get all IP and mac address of these systems. Is their any command/package to show the IP details? Can I use this ...
3
votes
1answer
28 views

GNU watch without erasing previous outputs

gnu watch is a very useful tool for inspecting a program output: It executes the program and shows the output full-screen every 2 seconds. Sometimes, I don't want the previous output to be erased, ...
2
votes
1answer
28 views

Why does “man x-terminal-emulator” return the output of “man gnome-terminal”?

I know what x-terminal-emulator is and does, but I don't understand why there isn't exist a special manual page for it instead to be redirected to the manual page of gnome-terminal. I would like to ...
4
votes
3answers
729 views

Converting Celsius Processor Temperature to Fahrenheit

I'm editing a Conky theme. I would like it to output the processor temperatures in degrees Fahrenheit instead of Celsius. In the ~/.conkyrc file, the command sensors | grep 'Core 0' | cut -c18-19 is ...
0
votes
0answers
11 views

how to use axel download manager with proxy?

How to use axel download manager with proxy?? example host: 100.100.100.100 , port:8080, username: admin, password: admin2
0
votes
1answer
23 views

14.04 Unable to install correct package

I'm attempting to configure an oculus rift for this I need to execture ./OculusConfigUtil_i386 This gives me the following error: ./OculusConfigUtil_i386: error while loading shared libraries: ...
67
votes
4answers
248k views

How to delete a non-empty directory in terminal?

I am new to Ubuntu. How do I delete the following directory? I typed: rmdir lampp This error comes up: rmdir: failed to remove `lampp': Directory not empty Is there a command to delete all the ...
0
votes
1answer
15 views

don't have permission or doesn't exist

I'm trying to configure an Oculus rift and I have a configuration script that needs to be executed: GLADOS@deathbox:~/Desktop/OculusSDK/Tools/OculusConfigUtil$ ./OculusConfigUtil_i386 bash: ...
0
votes
1answer
16 views

Check user input is alpha numeric

Hi Im not any sort of programmer but found myself creating an install script which installs mySQL which works fine. I would like to improve the script by asking the user to enter text that will be ...
26
votes
2answers
2k views

Why does the command “xterm xterm” create an infinite recursion?

I am running Ubuntu 14.04 (64 bit). When I first found out about the command xterm, I tried the command xterm xterm, and it started infinitely opening new xterm windows. ctrl + C stops it immediately ...
1
vote
1answer
26 views

Write a Script to install an application under wine

I have a non-techy friend who's giving Ubuntu a shot and I'm basically undertaking the challenge of trying to make it as painless as possible. He would like to install iTunes on his machine but I'd ...
0
votes
0answers
15 views

Script to automate launch of various terminals and various commands [duplicate]

I am trying to use a script to automate various proccesses when I launch the script. I use this to restart postgresql and metasploit services then launch armitage echo -e "\033[32mRestarting ...
0
votes
0answers
17 views

How to complete a svn commit process inside the terminal?

I am a begineer at using svn and linux. I want to remove the test files from the repository URL. These files were added by the import command. Now when I remove these files from the local svn dir ...
0
votes
0answers
10 views

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem [duplicate]

was copy/paste from "things to do after installing lubuntu 14.94 in the terminal a microsoft EULA presented -- could not find a way to "ok" or even move on from there. since then the above noted ...
3
votes
3answers
396 views

What does host% mean in command line?

I see this a lot in terminal commands and didn't understand what does it mean. also the terminal doesn't recognize it.
0
votes
1answer
232 views

How to make the command line / terminal mirror the GUI? [duplicate]

When using the GUI and making actions I think that users would like to see how those actions are being reflected in the terminal using command lines. I can imagine that there are different layers of ...
1
vote
0answers
23 views

Problem with `sudo airmon-ng start wlan0`

I have Ubuntu 14.04 on Macbook Pro. I've tried to run: sudo airmon-ng start wlan0 then the result was: Found 5 processes that could cause trouble. If airodump-ng, aireplay-ng or airtun-ng stops ...
220
votes
6answers
611k views

How can I add a new user as sudoer using the command line?

After I add a user using adduser, I can't see it via System->Administration->Users and Groups unless I logout and then login again. Is that normal? Also, can I set a newly added user as a ...
2
votes
2answers
99 views

How to properly quote piped command for “watch”?

I want to keep an eye on a file as it is created. So I used this command ls -hal ./file |awk '{print $5}' which gives the size of the file I am looking for. I use awk because I don't need other ...
1
vote
0answers
22 views

App not opening from terminal after installation

I'm trying to install Leksah IDE. I followed the instructions on the leksah website and it said it installed correctly, but now it won't open. After installing, I entered: jase@Jase-PC:~$ leksah ...
0
votes
0answers
14 views

out sound from the terminal

In a lot of Hollywood movies when the ace hacker has just created a script to bring down the bad guys network the terminal makes a sound as the script outputs, a sort of digital typing that the ...
0
votes
0answers
18 views

Terminal Opens to Home Directory

This may be solved by a simple navigation command, but all of a sudden my terminal opens to [username:/home/username] $ instead of the normal username@computername:$ is this a configuration error or ...
0
votes
2answers
3k views

Copy file to External Hard Disk

My UBUNTU (desktop part) does not boot completely because of low disk space; I logged in to terminal using my username and password, try to copy some file from /home/UserName/Desktop to my external ...
0
votes
2answers
37 views

Running a .sh to execute multiple commands

I was curious how I would go about running multiple commands via shell script. For example, just to try it out, I'd like to be able to connect a .desktop to a .sh that will run all the update codes ...
0
votes
2answers
25 views

Running a .sh from a .desktop [Making an icon for Minecraft.]

Rather recently, I've decided to add minecraft to my dock. I play it enough to want it on my dock. I created a .desktop file, and I gave it an icon, name, and such. I figured that point the exec at ...