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

learn more… | top users | synonyms (6)

0
votes
2answers
72 views

Root permissions or logon [duplicate]

I know this sounds naive but, why can't I log on as root or give my ID root permissions? Why do I have to use Terminal? I mounted a drive and now want to give permissions to other PC on my network to ...
2
votes
1answer
50 views

Customising terminal environment

I want to customise the command prompt. I've added: PS1='\[\e[1;30m\][\[\e[1;34m\]\u@\h \[\e[0;36m\]\A\[\e[1;30m\]]\[\e[1;37m\]~\W\[\e[0;37m\] \$ \e[0;100m' to ~/.bashrc. It is all good except ...
2
votes
2answers
408 views

Displaying TTY name in Terminal name

I am wanting to know how I can display the TTY a terminal is currently using in the window name of the Terminal. I don't see any options in Terminal Preferences to display such thing on the Terminal ...
0
votes
1answer
75 views

Locate two variable strings and write one as a file [closed]

I have a text document that contains 2 lines of information. Line 1 contains a filename, and line 2 contains an reference ID. The document contains additional strings other than the desired ...
5
votes
2answers
107 views

Disable Control+Alt+End

Background In xfce4, pressing Ctrl+Alt+End hotkey cycles to the next workspace. The settings for this can be displayed from the command line using: xfconf-query -c xfce4-keyboard-shortcuts -lv | ...
1
vote
0answers
28 views

Reading Cronjob Output [duplicate]

I have a task setup to run on my cronjob where I need to read the output. What I need from the output is the starting character (let's say A) and the ending character (let's say Z). A helps me ...
0
votes
0answers
31 views

Terminal question linux [duplicate]

im new in Linux and in my terminal i got this Downloads$ before typing a command. Is there a way to change it or remove it? For example: elementary@elementary-laptop: ~/Downloads$
0
votes
0answers
19 views

Change your password on the command line 14.04 [duplicate]

How can I change my password on the command line with Ubuntu 14.04
0
votes
1answer
366 views

How do I autorun terminal commands at startup in Lubuntu 14.04 LiveCD?

I'm doing some remastering of Lubuntu 14.04 LiveCD, and need to run the following command at startup: /sbin/ifconfig eth0 10.10.10.1 netmask 255.255.0.0 First, I tried modifying rc.local as ...
1
vote
2answers
168 views

Why does my script work when started from console but does not work when started via upstart?

I am running Ubuntu 12.04. Here is what I am trying to do: I copied and adapted a shell script from here: http://yatse.leetzone.org/redmine/boards/2/topics/2088. It listens to UDP port 9 for ...
0
votes
1answer
546 views

Add custom script to PATH

I know there are quite some answers about that, but still could not make my way around it. I read all this and tried to follow the example under System-wide environment variables (for my case of ...
0
votes
3answers
140 views

Where do programs installed with apt-get come from?

I haven't been able to figure this out by searching. If I use: sudo apt-get install package_name where does that package actually come from? How can I tell if it comes from a trusted source? ...
0
votes
0answers
152 views

How to send email with sendemail without MTA?

Perl 5.18.2 Ubuntu 14.04 We use a commercial SMTP service. Need to send email from command line via cron. So no user intervention is important. No DNS going, no incoming connections or mail, this ...
3
votes
1answer
760 views

In 14.04 how do I run a bash script I wrote without opening a terminal?

I use terminal a lot. I wrote a script and have it in ~/blah/script.sh now. How can I run the script from Unity (Dash?)? A long time ago I would have used ALT-F2 and typed my command, but that ...
1
vote
1answer
130 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 ...
2
votes
1answer
805 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
2answers
86 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
40 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
309 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
71 views

Batch renaming files from the commandline [closed]

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 ...
3
votes
1answer
1k 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
1answer
201 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 ...
8
votes
2answers
1k 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
113 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
79 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
2k 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 ...
13
votes
3answers
555 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
122 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, ...
5
votes
2answers
6k 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
298 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
192 views

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

Does software update application in ubuntu 14.04 like sudo apt-get update command?
6
votes
1answer
8k 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 ...
1
vote
1answer
140 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
0answers
893 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
5k 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
256 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
170 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
64 views

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

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
292 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
141 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
187 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
71 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?
4
votes
1answer
42 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 ...
1
vote
2answers
420 views

How to move files based on first word in file name?

In a folder, I have thousand of files, such as: cat eats mouse.jpg cat chases mouse.jpg gorilla eats banana.jpg gorilla is sleeping.jpg elephant is huge.jpg elephant has trunk.jpg (and so on...) I ...
1
vote
1answer
236 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
2answers
142 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 ...
4
votes
3answers
594 views

Can I pause YouTube in Chrome from the command line?

I can pause Spotify by pausing all system programs playing (well, toggling). How can I do something like that to pause/play YouTube videos in Google Chrome?
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 ...
-3
votes
2answers
54 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
52 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.