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

learn more… | top users | synonyms (5)

1
vote
1answer
34 views

Starting program via terminal and putting it immidiatly in the bg / bashrc

So i am trying to start a Programm by using the terminal but i also dont want it to be locked to the said terminal. i added an alias inside the bashrc for easy startup: alias tksuite='sudo sh ...
1
vote
1answer
13 views

Available updates not shown when login to terminal Ubuntu 14.04

When I login to my server terminal over ssh I just see: Using username "username". Ubuntu 14.04.1 LTS Authenticating with public key "mykey" from agent Last login: Wed Oct 22 09:17:02 2014 from ...
0
votes
1answer
15 views

Ubuntu Server and Desktop GUI Simultaneously

[I am a Linux n00b.] I know that it is POSSIBLE to do this, and from my research, the drawback is just that your system is bogged down from the GUI. All I want to use my server for is hosting ...
0
votes
0answers
25 views

Error in terminal while trying to install

I was trying to install unity-tweak-tool and I get this error: error in 'Config-Version' field string '2:0.116.2042+git178455c-1ubunt�1': invalid character in revision number I know I need to fix ...
0
votes
2answers
29 views

mount multiple hard drives to one folder as one drive

I'm pretty new to this and have been searching for this a while now.. I need to be able to mount multiple hard drives as "one drive" at /mydata folder. How do i do this as easy as possible in ...
1
vote
1answer
31 views

Batch renaming files from the commandline [on hold]

I have files with the following names: 1_shahlirtsb_p.mp3_103899.mp3 2_shahlirtsb_p.mp3_103898.mp3 3_shahlirtsb_p.mp3_103897.mp3 4_shahlirtsb_p.mp3_103896.mp3 5_shahlirtsb_p.mp3_103895.mp3 ...
0
votes
0answers
36 views

What is an argument? [on hold]

I need to add a new argument containing this "The new arguement will be a path for a folder you want backed up. Your script will replace each instance of /var with that arguement. You should be able ...
0
votes
0answers
18 views

How can I change audio output to HDMI from command line?

Backstory This thread suggests pacmd list-sinks and switching to a different sink with pacmd set-default-sink "SINKNAME", but my laptop only appears to have 1 sink, so that didn't help me. This ...
0
votes
0answers
14 views

Failure during ssl handshake while sending mail using openssl

I am trying to send mail from terminal using openssl by connecting to gmail's server using ssl on the port 465. Things are fine until i enter from address and authenticate. But when i enter RCPT TO, i ...
6
votes
2answers
529 views

Ending tail -f after print n lines

I have the following. A Java process writing logs on file A shell script starting the Java process. I need to read the log file after start Java process to check correct starting. I have try with ...
1
vote
2answers
32 views

Custom keyboard shortcut to lauch a terminal and run a command without exit in the end [duplicate]

I want to create a shortcut to run a command with keyboard shortcut But when I press "alt+ctrl+a" terminal open and immediately close. Please help me to edit below command for prevent from close ...
0
votes
1answer
17 views

Login welcome message but no shell?

I've created a user on my Ubuntu machine so that some people can log in and set up SSH tunnels and also so they can download some files from the system. I don't want them to have shell access at all. ...
0
votes
1answer
34 views

Failed to Fetch Trusty?

so here's my problem, i update every once in a while but this time it's different, it throws me an error: W: Failed to fetch cdrom://Ubuntu-GNOME 14.04.1 LTS _Trusty Tahr_ - Release amd64 ...
9
votes
2answers
208 views

Deleting input back to the last forward slash

I will very often be flitting between several files on a server. I will run the following example commands in sequence: nano /web/site/path/to/file /web/site/script.py nano ...
1
vote
1answer
31 views

E: Command line option 'V' [from -V] is not known

Getting this error while running apt-get --yes -V -c $CONF_FILE update command. This error is coming with ubuntu 14.04 only. For earlier version is working fine. Man page says : -V, ...
1
vote
2answers
99 views

How to change visudo editor from nano to vim? [duplicate]

When I use visudo, it always opens it with nano editor. How to change the editor to vim?
3
votes
2answers
56 views

Unable to type in a terminal

When I open a terminal no cursor appears, and no text, I just get a blank black screen. I am able to run commands by pressing Ctrl-Alt-F2. I have minimal understanding of typing code etc. (Using ...
1
vote
1answer
41 views

is software update application in ubuntu like sudo apt-get update?

Does software update application in ubuntu 14.04 like sudo apt-get update command?
-1
votes
0answers
12 views

Where are properties of mate-panel in Linux Mint Mate 17 Qiana? [migrated]

There is mate-panel in Linux Mint Mate 17 Qiana based on Ubuntu 14.04. Panel properties appears when right click mouse on it. Is it possible to run it via Terminal command? For example, we can run ...
0
votes
1answer
65 views

Gtk-Message: Failed to load module “overlay-scrollbar”

I am using Xubuntu 14.04 (Ubuntu + xubuntu-desktop), The following Message shown many times (such as executing mousepad , zenity etc). $ mousepad Gtk-Message: Failed to load module ...
0
votes
0answers
18 views

Download through terminal stopped halfway in Ubuntu 14.04 [on hold]

I was downloading a game when it stopped/paused in halfway. I tried to cancel and try again, but it got stuck at the same point. What should I do. I am using Ubuntu 14.04.
1
vote
1answer
76 views

How do I run only first command in backgound?

I want to send only first command to run in background. How can I do that? For example for this commands sudo apt-get update & && apt-get upgrade My first command must run before ...
12
votes
3answers
829 views

What is the 'command' command and what is it used for? [duplicate]

I was trying to learn new terminal commands. Then I tried to write command to test what happens. Strangely, looks like it's a valid command, but what does it do? It didn't return anything.
1
vote
2answers
115 views

How to grep for groups of n digits, but no more than n?

I'm learning Linux, and I have a challenge that I seem to fail to solve on my own. Here it is: grep a line from a file which contains 4 numbers in a row but not more than 4. I'm not sure how to ...
0
votes
3answers
21 views

Software update issue using terminal in Ubuntu 14.04

I have been getting this error ever since I messed up my repository list and updated to xubuntu DE on ubuntu 14.04 LTS. I also tried updating the sources.list file. I also tried removing the package ...
0
votes
1answer
39 views

shutdown 5:30pm every day

for a five thirty pm shutdown, should I change this: 30 02 * * * /sbin/shutdown -h now to: 30 17 * * * /sbin/shutdown -h now see also: Crontab Shut down command didn't work
2
votes
1answer
46 views

How do I save a line in terminal without runninig it?

Is there an option to abandon the current command and later go back with the up arrow? Sometimes when I want to open multiple files at once I want to check "dir" to see if I got the right paths. How ...
0
votes
0answers
19 views

Ubuntu Gnome terminal won't start

Seems like my gnome-terminal won't start every time I press Ctrl Alt T nothing happens so as when I manually try to open it from the apps list. I tried using Alt F2 and typing xterm and running the ...
0
votes
1answer
17 views

Weechat error: unkown command “script” (type /help for help)

While trying to set an autoloading python script in ubuntu, I received the error listed in the title. A google search returned no similar issues and when I type /help scriptthe output returns: No ...
0
votes
1answer
22 views

Auto copy on double click in Terminator

I used to be a heavy user of iTerm2 and one of it's most useful features I found was to auto-copy the text to clipboard when I double click and select something. I recently transitioned to Ubuntu and ...
0
votes
2answers
17 views

Run PHP script from command line?

How can I Simply Run a php script in the command line? Also is it possible to run it like it would be if the Url was typed in?
3
votes
1answer
23 views

Why doesn't yes fill up the buffer?

Say I do something like yes | apt-get install foo. I know that yes will non-stop print a bunch of y\n's to stdout. But apt-get can only process a few of those. Why doesn't yes fill up the buffer? Does ...
-2
votes
0answers
28 views

VESA: Intel® Sandybridge/Ivybridge removal

I accidentally installed very outdated drivers, I have been tricked into installing this old graphics driver and I need the original default drivers the computer came with! I really need help with ...
0
votes
0answers
27 views

How to set the path to xstream in Ubuntu 14.04

I am using Ubuntu 14.04, and installed my version of jdk using sudo apt-get install openjdk-7-jdk Now I installed xstream 1.4.7, but whenever I compile any java files using the package, I get an ...
1
vote
1answer
17 views

How to tweak “dpkg -l” output

I need the fields returned by dpkg -l to be tab separated but without the headers and the "ii" column. The default output: $ dpkg -l grep Desired=Unknown/Install/Remove/Purge/Hold | ...
0
votes
1answer
31 views

Month names are written in Hebrew and not in English in terminal

When I ls -l, the output is printed on screen by in a line similar to drwxrwxr-x 3 yotam yotam 4096 יונ 29 10:27 mnt the יונ part is Hebrew for JUN. I want it to be in English, that is JUN I ...
3
votes
0answers
14 views

How can I mute an individual application from command line? [duplicate]

I can see a list of applications currently playing sound: And I can mute them by clicking the On/Off slider. How can I do thi from command line? I want to be able to mute google-chrome, so that I ...
-2
votes
2answers
32 views

Which command is to take for to find out about program, which else programs are initialized by this one program? [duplicate]

Yes - this concerns the question which commands in terminal are possible, for to find out which programs are initialized (visible and non-visible) - by program1. (for example - when I only want to ...
0
votes
3answers
37 views

How do you change/edit reboot command to “rebooot” (Edit pre-existing terminal commands) [duplicate]

Where does the terminal command (reboot) live? If I wanted to change it to "rebooot" or "rbt" what would I need to do? Without creating a separate bash script for a completely separate command.
-2
votes
2answers
61 views

How do you create custom terminal commands [duplicate]

For instance if I wanted to type $Ctrl+Alt+Delete and it would return the same as $reboot this way when editing custom taskbar launchers we can execute key commands via terminal. Would I write a ...
0
votes
1answer
22 views

Can we implement some new functions for terminal ie. typing the word Tab will result in key stroke Tab

Ok Im wondering why in terminal we cannot input these commands and get the same output as the keystroke? Is it possible to some how add them to list of acceptable commands in my terminal. Tab = Tab ...
1
vote
0answers
16 views

Thinkfan refuses to start

Thinkfan used to work before, but when I try to start it now, I get the following error messages. Does anyone have experience with that issue? I can't make any sense of it. [~] $ sudo ...
4
votes
2answers
62 views

Difference between echo -e “<string>” and echo $“<string>”

What is the defference between using echo -e "Hello\nWorld" and echo $"Hello\nWorld" don't they both output: Hello World
0
votes
0answers
26 views

Sublime-Text 3 build and run in terminal

So I'm using sublime-text 3 for programming. I write PHP, Python and C++. I like that Sublime-Text is able to compile my code. But problem is that when I want to use input in C++ or Python, then ...
1
vote
2answers
40 views

Open an existing file in Vim

I would like to open a file that already exists while already in Vim. What is the command to do this?
1
vote
2answers
48 views

gibberish command not found on bash terminal startup

I have run across an issue that I just cannot seem to figure out. When I start my terminal in ubuntu (14.04) I get the message sdfsdfsdi: command not found As you can see it just looks like ...
0
votes
2answers
34 views

Command line file rename with date and time

I want to do a weather cam web page I have the command line to take the photo from the webcam then upload it via FTP but I want to do a backup of the photo with time and date as the file name so ...
0
votes
2answers
36 views

Install Sw in /usr/local but bash terminal doesn't see programs

I'm a newbie Ubuntu 14.04 User. I need Netbeans to develop software so I decided to install the 8.0.1 version. Since the pkg installer doesn't have the latest version, I downloaded the .sh file from ...
0
votes
1answer
25 views

inotifywait don't have access to folder

I got a problem with my folder rights/groups settings. One folder does have 755 and a group 'xyz'. I am in that group 'xyz' and I can actually see it's contents when I list it on terminal. By ...
5
votes
1answer
891 views

I accidentally removed my Trash and can longer put items into it, how can I get it back?

I did a stupid thing. I was having issues with certain files in my trash that my system was not allowing my to delete, meaning I could no longer empty my trash. These were not super important files, ...