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

learn more… | top users | synonyms (5)

1
vote
1answer
149 views

Multi-monitor setup, only terminal on one monitor

I currently have three monitors hooked up to my computer. I was just wondering if it is possible to have two monitors use the window manager - so, GUI - and have a single monitor not using the GUI but ...
3
votes
2answers
90 views

How to display a message each time eth1 is enabled?

How can I display a message like: eth1 interface has been enabled each time when eth1 is enabled? Let me know if my question make sense.
9
votes
4answers
4k views

How to display time elapsed since last system boot using “uptime”?

I want to display the time elapsed since last system boot using uptime, but I don't want it to display all that info. I just want to know how many hours passed since last system boot (i.e. : 18:17:59) ...
3
votes
4answers
3k views

How do I tell the `date` command to only show the time?

I am trying to display only the current time using "date", not all that information Day, Month, Year etc.. , only the current time. i.e.: 13:45 or 1:45pm Any ideas?
1
vote
1answer
34 views

How to display last 10 logins into the system?

I used last to display last 10 logins, but it displays me all of them. Any ideas? Cheers
5
votes
1answer
8k 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/$ ...
5
votes
4answers
54k views

How to change ip address in ubuntu desktop through command line

In Ubuntu desktop 13.04 changing /etc/network/interfaces file don't change ip address or convert DHCP to static network interface configuration. after changing the file I tried sudo service ...
2
votes
1answer
347 views

Bash function named with the question mark char does not work anymore

In Ubuntu 11.10 I had a bash command/alias/function like: function ?() { xxx $1 } This worked like a charm. Now in Ubuntu 13.04 it doesn't work anymore. When I try to execute the command with ...
5
votes
1answer
128 views

Alias cd and ls with support for spaces and arguments

So I started with this discussion, and it basically does exactly what I want. However, the solution to preserve directory whitespace using quotes fails when using arguments, e.g. cd -P dir. Any ...
5
votes
3answers
2k views

sending commands from Ubuntu to Windows

On our home network we have 1 windows 7 only pc and several computers with Ubuntu 13.04 (dual boot with backup windows 7 for programs that can't be run using wine). We want to be able to send commands ...
-3
votes
4answers
404 views

How do I change directories from the command line?

I'm try to change to my Desktop directory from the terminal. Running cd /home/desktop Gives an error in the terminal saying no directory found. What am I doing wrong?
59
votes
5answers
44k views

Which one is better: using ; or && to execute multiple commands in one line?

In tutorials and how-to's I often see commands combined. For instance, sudo apt-get update && sudo apt-get install pyrenamer There seem to be four possible connectors: &, &&, || ...
2
votes
1answer
3k views

How to combine multiple commands in terminal?

I have the following commands. cd import zcat urls1.sql.gz | mysql -u root -p urls cd /var/www/project1/ nano 1.php As of now I'm executing it one by one. Is there a way to combine those commands ...
1
vote
2answers
761 views

“Unable to locate package” errors for all software [duplicate]

I try to install programs with apt-get install but always it shows same error: unable to locate package. For example I try to install the language-support-fonts-fa ; here's what happens: Reading ...
1
vote
0answers
13 views

What happened to the jockey-gtk command? [duplicate]

I installed the jockey-gtk package using the following command: nathan@ubuntu:~$ sudo apt-get install jockey-gtk Reading package lists... Done Building dependency tree Reading state ...
4
votes
1answer
40k views

Run executable file on terminal

I'm new to Ubuntu and currently on it because of assignment. I would like to ask few questions: 1) How do I make new command to run a shell script? For example, when you type "passwd" on terminal ...
0
votes
0answers
34 views

sources.list, edit root [duplicate]

Today I keep receiving this message with Synaptic: E: Malformed line 220 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read. Go to the repository dialog to ...
-1
votes
1answer
226 views

I am having command line problems in 13.04 [duplicate]

I'm using Ubuntu 13.04 and trying to enter this command sudo add-apt-repository ppa:cairo-dock-team/ppa, but then it asks for my password and I can't type anything. The only thing I can do is press ...
0
votes
2answers
119 views

Terminal of UBUNTU 12.04 [duplicate]

I am new to Ubuntu and i want to learn to use console or Terminal of ubuntu what it can do, uses, and Using Ubuntu?
0
votes
3answers
151 views

How do I open a file that leads into the Terminal?

Let's say put a file on the desktop, and when it opens, it opens in the terminal. If I want to do this, what extension can I use in "Save As" of the Text Editor? (e.g. open.shell) Ubuntu 12.04.2 ...
0
votes
1answer
1k views

How to add a directory to linker command line in linux

I am new to linux and I want to add lib64/librt.so.1 to linker commnad line. Can anyone suggest how can i do this? Thanks in advance
5
votes
1answer
145 views

What is the command for Package Manager | Settings | Repositories | Source code

I tried to do step two of building Banshee from source, but it failed as follows: ~$ sudo apt-get build-dep banshee Reading package lists... Done Building dependency tree Reading state ...
2
votes
1answer
130 views

Why my gnome terminal is set to root by default?

When I try to open up a new terminal in Ubuntu to do some operations, it always defaults to an admin based terminal with [sudo] password for xxxxxxxx: $ I need a regular terminal. How do I do this? I ...
0
votes
3answers
449 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
6k 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
65 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
86 views

Why is $PATH used as a variable?

Couldn't there be a config text file instead?
0
votes
2answers
323 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 ...
6
votes
3answers
21k 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
378 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
26 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.
12
votes
1answer
3k 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
150 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
714 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, ...
14
votes
1answer
19k 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?
2
votes
3answers
537 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
3k 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
521 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
555 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
448 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
473 views

Normalize .ogg audio files with the command line [duplicate]

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
1k 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
90 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
814 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
373 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 ...
15
votes
4answers
5k 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
2k 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
1k 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 ...