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

learn more… | top users | synonyms (5)

0
votes
0answers
2 views

bash: ./configure: No such file or directory

I am real noob in ubuntu. I am currently working for my university project where I am supposed to install "ns miracle". It has a prerequisite, "ns allinone 2.xx", which I installed successfully. But ...
0
votes
0answers
10 views

Ftp login without shell access

I am using proftpd. Uncommented in /etc/proftpd/proftpd.conf: RequireValidShell off But now, even a user with right shell acess /bin/bash cannot log via FTP. I am getting this error: ...
1
vote
1answer
25 views

How to fix this after command sudo apt-get upgrade

uugana@Hunnu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to ...
2
votes
1answer
24 views

How to make the terminal autocomplete based on previously entered commands?

It's normal when using terminals that pressing up and down cycles through previous commands entered chronologically. I learned from a site how to add to that behaviour by autocompleting what I'm ...
2
votes
3answers
25 views

SED \n and \ into nothing

The people on this forum have been a tremendous help! Thank you so much! Here is my string ...
0
votes
1answer
24 views

Help decoding Base64 using base64 -d

**** This post links to Windows-Based malware executables!!! DO NOT EXECUTE DECODED SAMPLE **** I hope I can post this here without having it pulled down. I have 2 seemingly identical base64 ...
1
vote
1answer
13 views

Monitor folder contents changes

I can monitor the content changes of a file using tail -f command Is there a similar way of monitoring the changes of a directory structure the way tail -f monitors file? I have a long running ...
0
votes
2answers
25 views

Root permissions or logon

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
23 views

Customising terminal enviroment

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 ...
1
vote
2answers
27 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
2answers
58 views

Locate two variable strings and write one as a file

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 ...
3
votes
0answers
23 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
22 views

Reading Cronjob Output

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
28 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
17 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
41 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
28 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
43 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
41 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
14 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 ...
1
vote
1answer
56 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
votes
0answers
10 views

downloaded ubuntu 14.04.1 LTS chrubuntu tty1 [on hold]

Chrubuntu login: user Password: user Then showed login details documentation: https://help.ubuntu.com/ User@chrubuntu:$_ What should be the next command or how could i launch the ubuntu with my ...
1
vote
1answer
45 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
32 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
18 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
28 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
45 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
32 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
37 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
1answer
28 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
21 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 ...
7
votes
2answers
589 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
41 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
19 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
55 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
250 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
34 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
102 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
59 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
48 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
2answers
104 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
25 views

Download through terminal stopped halfway in Ubuntu 14.04 [closed]

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. It showed downloading at 16% ...
1
vote
1answer
80 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
862 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
122 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
24 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
44 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
48 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
20 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 ...