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

learn more… | top users | synonyms (5)

0
votes
3answers
337 views

Cant install Java on Wand Board Quad running Ubuntu 12.04

I picked up the Wand Board and was curios to see on how well it can perform as a Minecraft Server. So i downloaded the JDK 8 from the official site for ARM and extracted it to my OPT folder, after ...
5
votes
1answer
4k views

Script at /etc/init.d does not run at start-up

I wanted to run my Dropbox daemon automatically at start-up. I did it via terminal, that is, I (1) moved it to /etc/init.d, (2) made it executable, and (3) ran sudo update-rc.d dropbox.sh defaults. So ...
0
votes
3answers
61 views

Screen - Do command on start

I cannot find this anywhere on Google/SE, excuse me if it was just my wording. I want to make screen do a command upon start. With pseudo code, doing screen -S SomeScreen -c SomeScript.sh would ...
0
votes
3answers
78 views

Why is $PATH used as a variable?

Couldn't there be a config text file instead?
0
votes
2answers
276 views

How to create command line application in eclipse (c++ or java)? [closed]

How to create command line application c++ or Java? I have some commands which I would like to convert into an application. How to do it in eclipse? Just for example consider: sudo apt-get upgrade ...
2
votes
3answers
5k views

How to find all files with the same extension within a directory

I am beginner in linux and I want to search for all .conf files in /etc/ . I tried grep -r *.conf /etc , but the result isn't the right one, what I am doing wrong.
2
votes
1answer
213 views

how to download a link in links using axel/curl?

shortly, how can I make lynx/links use axel/curl for downloading files that i want to store in my hard-disk?? Longley: I'm a server-manager and always used my ubuntu system and putty so i could ...
0
votes
0answers
47 views

Postfix command line with php page

We created a php page that sends mail with Postfix. It sends email when someone loads the page using Firefox. Now we'd like to automate that process and have Ubuntu load the page once a day, which ...
0
votes
0answers
25 views

When I go in the Ctrl+Alt+F1-F6, the password doesn't work [duplicate]

I can't do commands in the Ctrl+Alt+F1-F6. When I do a command, it asks me my password. When I write it, it doesn't work. I've tried it enough times to know that it's broken/there's a problem.
6
votes
1answer
1k views

What does “Run command as a login shell” do?

I have a few separate programs installed, some of which require me to go into my GUI terminal settings and enable/disable the "Run command as a login shell" option to get either working. Example: I ...
2
votes
5answers
142 views

Command and use the result of it to run another command

I want to make ls and cd to first or second directory it shows, whatever name the first one or the second would be (dir1 or dir2, in this case): $ ls { + some command like | grep which would get me ...
3
votes
0answers
55 views

How to automatically install applications/commands when they are run in the Terminal? [duplicate]

When you enter a command for an application in ubuntu in the terminal and the application in not installed on the system then you get a message saying The program 'application name' is currently not ...
2
votes
2answers
375 views

How to run commands if unity is not working?

I'm running ubuntu 13.04 on a compaq pressario cq56. After system update unity and terminal will not load. I've read some forums on how to fix the unity problem but without terminal I can't use them, ...
7
votes
1answer
8k views

Undo functionality in nano

I use the commmand line text editor nano. How do I undo an action while editing text? For example: I typed some text and then changed my mind. Now I want to return to previous state. How?
0
votes
0answers
369 views

'Error while loading shared libraries' while running portable linux app

I downloaded many portable app images from http://portablelinuxapps.org and works fine in Ubuntu 10.04. When I run it on Ubuntu 12.10 I get error like error while loading shared libraries: ...
2
votes
3answers
262 views

Problem with text deletion in vi editor

When I am writing C code on the vi editor, I am not able to use the backspace keys or my arrow keys to delete or navigate through lines. Some unexpected special characters occur on the screen that is ...
7
votes
3answers
991 views

How can I recursively copy files without overwriting existing permissions?

When I copy files from one directory to another, the directory permissions get reset (e.g: from 0755 to 0775), and this causes problems, forcing me to go back and manually reset directory permissions. ...
11
votes
1answer
372 views

Restoring a Unix Tar File with Ubuntu

I have all of these old DDS3 and DDS4 tapes that I need to restore the files off of. The only information that I really know is that they were put on the tapes about 10 to 20 years ago using Digital ...
0
votes
1answer
320 views

lircd works when run from command line, not when run from init.d/service

I'm configuring a system for use as a media centre, running Mythbuntu 12.04. Everything is working, short of the remote. I've configured my remote, and it I start lirc from the command line, it works ...
1
vote
2answers
269 views

Linux copy command

For example I have two users A and B and A has admin privileges. I am logged in as B and I want to know how can I copy /etc/sudoers in B home directory in a single command and after /etc/sudoers is ...
3
votes
2answers
289 views

Normalize .ogg audio files with the command line

I'm trying to normalize (and or compress) around 100 .ogg files which have audio level really too low. I know that by hand I can use Audacity ... but that will be too much clicks! Instead I was ...
12
votes
4answers
483 views

Restore 'cd ..' functionality after following a symbolic link

If I create a symbolic link in the terminal with a command like ln -s /path/to/some/directory symbolicLink and then follow the link with cd symbolicLink the terminal appears to think that the cwd ...
19
votes
2answers
1k views

How do I run an application with arguments from the command line without losing the terminal?

I use dwm as a window manager on Ubuntu, I like tiled windows and I like them as few as possible. I sometimes need to run an application (let's say it's the pdf viewer mupdf in x11) from the terminal, ...
0
votes
1answer
78 views

which else commands does command passwd involve? [closed]

Have thought that command passwd uses for encryption of input the command mcrypt ? But instead it is crypt resp. encrypt ? Source-code of crypt/encrypt is not available ? When am not confusing this ...
1
vote
1answer
422 views

terminal emulator vs terminal

I am a having a little trouble understanding the difference between running the terminal emulator from the GUI (gnome) and booting straight into the terminal. I have been a system/network ...
1
vote
1answer
192 views

How do I uninstall USB wireless divers that didn't work?

Computer/OS stats: Old (5 yrs?) Dell desktop computer Ubuntu 12.04 is the ONLY OS installed Mem: 1.5GiB Processor: Intel Pentium 4 2.8GHz OS type: 32 bit Disk: 37.8GB Background info I moved my ...
13
votes
4answers
2k views

What is the functional difference between sudo su and sudo -i?

Why is one preferred over the other in this example? sudo su echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf exit Please provide links to Ubuntu documentation.
3
votes
1answer
1k views

Change the background color of command line in zsh when I change the prompt theme

I installed the zsh package. So, now when I type zsh in terminal it switches from back to zsh. Also, I downloaded the oh-my-zsh framework to customize zsh. When I change theme name in .zshrc file to ...
1
vote
1answer
666 views

Set CLASSPATH for python

I want to execute a python file called "ex1.py". The execution works fine, the program does, what it ought to do. The problem is the following: This file is stored in the folder ...
0
votes
1answer
43 views

unable to access mounted iso through terminal

Can anyone tell me please what I'm doing wrong? thanks. P.S since I don't have enough reputation for posting pics (very annoying!) I attacheed a link for my dropbox ...
0
votes
0answers
89 views

How to tell which colour is which in Guake

I'm using Guake for my terminal, but every now and again, it produces some weird colour combinations which make stuff impossible to read. I just want it to be black and white, but I can't figure out ...
1
vote
1answer
337 views

How to return to the shell/terminal?

Sometimes after I accidentally typing something in the terminal, e.g. after invoking a "tee" command I am unable to quit from that program to get back to the terminal. I usually try typing :q, quit, ...
0
votes
2answers
109 views

How do you know, using the CLI, the type of partition that corresponds to its id?

fdisk, and many other partition programs list the partition tables using a code or id for the partition type of each partition listed. How do you know the type of the partition, the type name (in ...
0
votes
1answer
264 views

Lubuntu: .desktop shortcut works on the desktop, but doesn't from the menu

I've created a simple shortcut.desktop in my Lubuntu 13.04 /usr/share/applications: [Desktop Entry] Type=Application Name=shockwave Icon=/home/zane/Pictures/Evil Decepticons.png ...
0
votes
1answer
398 views

.sh file is not running changing directory command

my contents of .sh file are sudo -i cd /home/madhu131313/Documents/ I run it ,then it asked for root password, it changed to root, but it doesn't execute the changing directory
5
votes
1answer
227 views

View GPU processor activity in real time?

I wanted to know if there is such a terminal command or application that allows one to view the progress of the processes running on the GPU in real time. Basically, something like 'top' for the GPU. ...
0
votes
2answers
72 views

Shell script compsrison does not work as intended

The follwing code is for to compare two strings or variables. But, I cannot do it. I did a lot of googling, but no use. Here, output doesn't depend upon the changing of inputs. Can any one correct ...
3
votes
1answer
327 views

How do I make a shell script in Ubuntu Terminal?

Now I don't know if that is exactly what it is called, so please forgive my bad terminology and correct me if I'm wrong, but I'm looking for a way to shorten this bit of code: gcc -o hello hello.m \ ...
1
vote
1answer
357 views

Creating new user, inconsistent bash prompt

I've created a new user profile with: useradd kitty passwd kitty mkdir kitty chmod 0700 kitty chown -R kitty:kitty adduser kitty sudo #when I did it I initially didn't ...
3
votes
2answers
1k views

How can I use grep to view only part of BFGMiner which is being run in screen over ssh?

Okay, bear with me on this. I'm using a program called BFGminer, which hopefully you know is a bitcoin mining program. Anyway. It updates every second a few lines that look like this: DEVICE 0: xxxx ...
3
votes
1answer
3k views

Configure & Connect wireless network through the command line in Ubuntu 12.04

The wireless networks are detected, but I am unable to connect to them. Here is the code I've tried: sudo iwlist wlan0 scan (Working) iwconfig wlan0 essid "Network name" key s:"key" (Error for ...
0
votes
1answer
89 views

Strange message now appears when I open up my terminal

I was recently installing MySQL and everything seemed to go just fine, however, when I opened up my terminal to test a few things out, I got a strange message: No command '“alias' found, did you ...
1
vote
1answer
218 views

How to see all directories from remote?

I am on Ubuntu 12.04 server, after I login as sudoer from remote, I try to see all directories with ls command nut nothing happens. I can switch to the home directory by using cd /home and I see ...
0
votes
2answers
722 views

Changing current directory to shared filesytem using linux terminal

I have a shared filesystem (E: in my installation of Windows 7) in which I keep my programming codes. I want to shift from Windows to Ubuntu for programming mainly because I like the linux terminal ...
1
vote
2answers
124 views

Help I broke terminal

I tried the below "tip" trying to learn different things I could do with terminal and it does not work. Now I get an error message when I open terminal. How can I delete what I did? Thank you! ...
0
votes
1answer
155 views

Command to restore files from an unknown file format?

I have many directories inside a parent directory and using dd i gave the parent directory .img extension as following: dd if=/home/xyz/parentdirectory of=/home/xyz/backup_parent.img How do I get ...
2
votes
2answers
185 views

Terminal command to remove unknown file

What is the command to remove unknown file from terminal. Edit after following answer: Example: I have two files يا مهدي- Times-يا محمد Events.html مهدي Events.html how do i only first file?
0
votes
1answer
413 views

How can I manually install gcc tarball file in Ubuntu 12.04? [duplicate]

How can I manually install gcc tarball file in Ubuntu 12.04?
0
votes
0answers
825 views

Usb Block Eurptor Setup/code

I am trying to set up my Usb Block Eruptor on Ubuntu 32bit. I am very new to this so, I am reading tutorials and all types of stuff to get use to Linux. I have this tutorial to start Bitcoin mining ...
0
votes
1answer
208 views

How do I setup php and mysql cronjobs on ubuntu 12.04 server?

just made a lamp install adn got sftp working. My question now is how do I setup cronjobs in ubuntu server? I need to make some cronjobs for my php/mysql application. Look for un-activated users in ...