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

learn more… | top users | synonyms (5)

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
24 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
19 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
28 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 ...
3
votes
1answer
27 views

Running terminal commands 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 ...
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
23 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
727 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
10 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
19 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
246k 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
14 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
25 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
395 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 ...
219
votes
6answers
609k 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
96 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
21 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 ...
0
votes
0answers
19 views

How to create partition on SSD for booting Ubuntu and Windows 7

I just completed a computer build, and I installed Ubuntu 14.04 on the 250GB Samsung SSD that I will be using to boot both Ubuntu and Windows 7. I would like to put some other programs on the SSD, and ...
1
vote
2answers
33 views

How to run perl script in background

I am new user to ubuntu... Putting & and in the end is putting the application on background, but not really, it still gives me the output of the perl script in my command line even though it is ...
2
votes
1answer
48 views

Is there any reason to use 'kill' instead of 'killall'/'pkill'?

Starting my adventure with Linux a couple of years back, most tutorials and older, more experienced colleagues suggested using the command 'kill', sort of like a replacement for the Process Manager ...
2
votes
1answer
3k views

view transmission status through cli

I have installed transmission, and i have added a torrent to it, now how will i be able to view the details of the torrents. i have tried transmission-remote on local system. m@m-170:/home/m/$ ...
45
votes
6answers
55k views

How do you select the fastest mirror from the command line?

I want to update my sources.list file with the fastest server from the command line in a fresh Ubuntu Server install. I know this is trivially easy with the GUI, but there doesn't seem to be a simple ...
2
votes
1answer
60 views

How to unzip .tgz file from /media directory using terminal?

I've downloaded mongodb-linux-x86_64-2.6.3.tgz file using windows 7 and kept it on D:\Amra\Software\Developing Soft location. When I right click this .tgz file using Ubuntu and see property it shows ...
1
vote
1answer
51 views

How to install a downloaded third party software (Nero Linux 3) via command line?

I am a recent convert to Ubuntu (14.04) and still quite a novice. Looking for a DVD writing software, and dissatisfied with both Brasero and K3b, I downloaded Nero Linux 4. This works pretty well ...
0
votes
0answers
15 views

how to install ksymoops on Ubuntu 14.04

I want to analyze kernel crash(Oops) using ksymoops. I am trying to install ksymoops on Ubuntu 14.04(LTS) 64 bit using command sudo apt-get install ksymoops but unable to install. Below mentioned ...
0
votes
0answers
69 views

Black screen when accessing Ubuntu remote host via VNC and vino-server

I have a headless server and I am trying to setup a VNC connection in order to access it with a GUI. Now I have only root access via ssh. I have followed most of the instructions given here Enable ...
2
votes
1answer
166 views

What is difference between commands (like:cat,ls,cp) and gvfs commands?

I recently found following gvfs commands : gvfs-cat (1) - Concatenate files gvfs-copy (1) - Copy files gvfs-info (1) - Show information about files gvfs-ls (1) - List ...
3
votes
1answer
32 views

How to disable popup “Close this terminal?” when closing terminal?

Each time when I want to close terminal there is a popup with question "Close this terminal?" because some process is running in terminal. I don't care about this process. How to prevent terminal from ...
2
votes
3answers
234 views

Setting a randomly generated password to a variable?

I'm using the following line to create a randomly generated password in a bash script, but it doesn't look like the string is actually being set to the variable. #Generate random password ...
1
vote
2answers
30 views

Terminal shortcut to go to beginning of command? [duplicate]

For example, forgetting to put sudo and having to go back to the beginning of the command.
0
votes
0answers
25 views

Rectangle is flickering while dragging mouse on screen

I wanto make a screencasting program. I want to make a screen part selection to grab coordinates of the screen location. I found a nice prototype here I am on Ubuntu 14.04 platform, I compiled and ...
3
votes
0answers
22 views

Connect to a VPN with a password from the commandline

I can trigger the start of connection to my VPN by saying nmcli con up id WORKVPN But I have an RSA SecurID that is part of the authentication, which means I can't store a password. Without a ...
1
vote
1answer
28 views

detect Ubuntu runs in Virtualbox client [duplicate]

Ubuntu behave sometimes different in Virtualbox client then standalone. I want, in terminal, to detect if Ubuntu is running in Virtualbox client. Even if Virtualbox Guest additions are not installed. ...
6
votes
2answers
5k views

How can I see a history of the terminal output, not just commands entered?

I'm trying to do some debugging in Android and I am running a live logcat in the Terminal, but the problem is that there is too much information generated so that when I am finished and try to copy ...
0
votes
0answers
23 views

access to all of the written on the terminal [duplicate]

I know there is .bash_history file on the home directory that stores all of the commands whom user has interred them. But I am looking for all thing which we see on the terminal. .bash_history file ...