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

learn more… | top users | synonyms (5)

0
votes
1answer
27 views

regarding pattern

As i am new to ubuntu i stuck in a place. how can i get a particular pattern from my terminal and can save to any file like .txt file or any libre office file. file looks like:- [Dec 17 00:00:07] ...
3
votes
1answer
113 views

Linux Console System info program like linfo

There is a nice program written in php5 that displays a lot of system info on the running system. Visit: http://linfo.sourceforge.net/ Is there a comparable tool that runs in a linux console and ...
0
votes
1answer
18 views

text editing using tr command

On using the command: tr -s '\n' ' '< test1 where test1 is a text file. If test1 is written in a manner such that it contains newlines (linefeed characters) and not \n (backslash-n) then the ...
0
votes
2answers
37 views

How do I fix python?

I mistakenly thought that Ubuntu only came pre-loaded with Python 2.x, so I ran the command sudo apt-get remove python-minimal so I could install python3 as default. I soon learned this was ...
0
votes
2answers
37 views

I messed up Firefox, now it's not opening, what to do?

So I downloaded firefox-34.0.5.tar.bz2 manually from Firefox's website, knowing full well that I could've used the Software Updater to update from Firefox 30 to 34. First, I searched for how to ...
1
vote
1answer
24 views

symbolic link in /media

I've tried to create a symbolic link from a file in /media/myuser/nameofdevice/myfolderA to the folder /media/myuser/nameofdevice/myfolderB with the command ln but I get an error. Is possible to do it ...
1
vote
0answers
22 views

Why won't `tail -f` follow my syslog when running live?

I want to monitor /var/log/syslog for any changes in realtime (or within-a-few-seconds-of-time), but tail -f won't update with any new changes. I'm running Ubuntu-based Linux Mint 17 XFCE live now, ...
0
votes
1answer
10 views

How to link to php from xampp installation so i can just use php command instead of full path?

I have xubuntu installation and xampp installed on my pc, and everything works great, but lately i am experimenting a little bit with laravel framework and a lot of tutorials and people just use php ...
2
votes
0answers
55 views

How to change my home directory?

I have a current /home/user/ directory for ~ but I want to change it to be at /user/home/ /user/home already exists. The option of using usermod is not going to work because I don't have access to ...
1
vote
1answer
17 views

My system cant access hard drive HP

I have an HP Pavilion that was running windows 8. I tried to turn it on one day and it wouldnt load windows. The system cant even see my hard drive for Windows recovery. I know nothing about ubuntu ...
0
votes
0answers
40 views

Upgrade from 12.04.05 to 14.04 (LTS) via terminal doesn't allow me to log in

I am a newbie user regarding Linux OS so please forgive me if I cannot explain some things correctly. I will try though to explain you in details what I tried to do and and what was the result. By ...
0
votes
1answer
65 views

Can I make gedit embedded terminal cd automatically to the current file's directory?

How to make gedit terminal itself to change directory to the location of the file which is opened currently in gedit? As by default i have to cd till i get to present file location in my ...
0
votes
0answers
9 views

Couldn't login at shell , nothing show up after login at unity [duplicate]

I accidentally delete Compiz, Ctrl+Shift+T didn't work to open terminal. When I opened shell it says login .. I put my user name and my password but it says login incorrect. Any suggestion ?
1
vote
0answers
22 views

Gedit Gtk warning on ubuntu 14.04

When I open gedit from the terminal by- gedit& I get a warning- Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ...
2
votes
2answers
32 views

Install program with different run name

I recently installed gfortran with apt-get install gfortran, but it turned out to be the latest version 4.9, which is not compatible with software that demanded gfortran in the first place. So I ...
0
votes
0answers
45 views

fallocate failed: Operation not supported

When running, fallocate -l 10G /path/to/file I'm returned the following error: fallocate: file: fallocate failed: Operation not supported Creating the file using dd (if=/dev/zero or ...
0
votes
1answer
9 views

File recovery data copy

This is my first time using Ubuntu, and I'm using it to recover data from the drives of my dead READYNAS. The commands used to access/mount the RAID were obtained from here: ...
0
votes
1answer
45 views

sudo chown -R $OWNER:$OWNER command error

When I try to create new domain on Ubuntu 12, I used these commands: sudo mkdir -p /var/www/domain.com/public_html sudo chown -R $OWNER:$OWNER /var/www/domain.com/public_html but my mistake when I ...
-1
votes
1answer
27 views

Ubuntu showing error messages when started

I am relatively new to Ubuntu. Once i wanted to download a text to speech software through terminal , and while doing it , i left it in the middle. And from then when ever I start my computer i am ...
0
votes
1answer
30 views

How do I get a graphical installer for Ubuntu GNOME?

I'm trying to install Ubuntu GNOME over my vanilla Ubuntu installation. I've downloaded the amd64 version of Ubuntu GNOME through torrent (since I have a 64-bit processor), and the md5sum checks out. ...
0
votes
1answer
21 views

Long listing a Directory

2 Questions: 1) How should I long list a directory. Kindly guide me if there's are multiple options to do this .? 2) How do I sort based on the file size?
1
vote
2answers
40 views

Difference between apt-get remove -y and apt-get purge -y?

apt-get remove <name of program> apt-get purge <name of program> and apt-get purge -y <name of program> Research indicates the running either "remove" or "purge" performs the ...
2
votes
4answers
209 views

How to execute a task in background?

Is it possible to run a task or script started from terminal at the background?
0
votes
0answers
22 views

How to launch app from terminal, close terminal, keep app running? [duplicate]

what is the easiest way to launch an app from a terminal without terminal window remaining open? In other words - I want to launch an app from a terminal and close the terminal window so it doesn't ...
3
votes
0answers
35 views

Managing remote server connections via Nautilus

Is there any way to manage remote server credentials while using Nautilus remote server connect feature? The Recent Servers works for couple of connections, but not for 20+. Also it seems that if I ...
0
votes
1answer
42 views

Terminal server on 12.04 and 14.04 [on hold]

Does Ubuntu 12.04 and 14.04 versions come with Terminal server? How can I install Terminal server in this versions? I tried to look at Ubuntu software center and did not find anything there. ...
1
vote
1answer
34 views

gzip: stdin: not in gzip format when gunzip is used with pipe

I uncompress file in the following way: gunzip file.gz But when I do it with pipe, it returns the error. echo file.gz | gunzip gzip: stdin: not in gzip format What's the issue here? ...
4
votes
1answer
43 views

Difference between commands for removing empty directories

What is the difference between rm --dir <directory> and rmdir <directory> with respect to removing empty directories? Also, if they are similar, is there any advantage of having an rmdir ...
2
votes
1answer
26 views

Longlisting Files & Directories

I would need to know if there's a way to differentiate files & directories . Note : Without using longlisting
0
votes
0answers
15 views

How to make modprobe ideapad-lenovo permanent / run on startup (Ubuntu)? [duplicate]

I have an Ubuntu 14.10 installed on my Lenovo g40. Ever since I installed it I am having a problem with my wi-fi connection because it is disabled and I cant turn it on. The only solution I found so ...
0
votes
0answers
10 views

Reliance Auto Login Help

i want to run this script https://github.com/pteek/reliance-auto-login-script but i get this error in lubuntu " Traceback (most recent call last): File "./reliance-login.py", line 27, in ...
0
votes
1answer
19 views

getting different version of java in ubuntu

I am getting different version of java when i run java -version and javac -version. for java-version iam getting java -version java version "1.7.0_65" OpenJDK Runtime Environment (IcedTea 2.5.3) ...
0
votes
3answers
35 views

Problem with environment variables

I tried creating a shortcut to easily change into some of my Windows partitions. After mounting them, some works fine, some not. Here's what happens. My ~/.bash_aliases contains: export ...
-1
votes
2answers
21 views

.rubyconfig doesn't open from terminal

i installed ruby on ubuntu14.01LTS.how to open .rubyconfig file from terminal using gedit? it asked denied permission..how to open .rubyconfig file using terminal?
2
votes
1answer
21 views

How to run a complex command by xfce mail-watcher

I just installed the xfce4-mailwatch-plugin I would like to use the option "Run on click" to either switch to Thunderbird, or to open it if it is not currently running. The command I use for this is ...
1
vote
0answers
22 views

Save on webpage with command line like in google chrome

I need to grab one webpage (single page, not all site) with all his assets(images/css) in command line. I really like how google chrome do it - if I save webpage I get single html file and single ...
1
vote
2answers
30 views

How to have terminal repeat with different IP?

Would it be possible to get terminal to repeat nslookup starting from 192.168.1.2 through 192.168.1.20 to look at all the computers in the network without having to go into the server. Is this ...
2
votes
2answers
354 views

Using '$' in shell

I am new to ubuntu, and tried to use OpenFOAM Installation worked OK; after that I copy-pasted the very first example, worked also OK. but I cannot understand how. There are funny commands like: ...
0
votes
0answers
14 views

error while installing GRACE on ubuntu 11.04

./configure command was completed, and after giving the make command following error was there in terminal: make[1]: Entering directory `/home/administrator/Desktop/grace-5.1.22/cephes' gcc -O2 -m486 ...
0
votes
1answer
18 views

Run application nohup-like

Currently I have command pycharm to start Pycharm IDE. I use it like sudo pycharm and this launches Pycharm, but I have to keep terminal from where I've launched it open, because if I close it Pycharm ...
1
vote
1answer
22 views

gnome--terminal -e option not executing?

I want to open my terminal with some commnads executed in it on bootup. So I wrote a script with following line in it: gnome-terminal --tab -t "MyPC" -e "sh -c 'firefox &;exec bash'" --tab -t ...
4
votes
2answers
135 views

Batch/Multi rename only files with a specific number range

I have a situation where I have the following: file01.ext . . . file99.ext file100.ext . . . And I want to (using rename ) insert the '0' for the files 01-99 (so that they become 000-099) but not ...
0
votes
0answers
25 views

How can I set up a 802.11ac card with ath10k driver in my lab environment?

I'm working on a project about setting up a lab environment of 802.11ac and measure the performance of it. I have to say, I'm a rookie about wireless on linux,but I really want to accomplish this ...
1
vote
5answers
82 views

How to run command every 15min? [duplicate]

I want to run a command every 15min. Here is the command I want to run: sudo bash -c "sleep 1h; pm-suspend"
0
votes
0answers
19 views

Open app by command and bring to top [duplicate]

Is there a command that I can use to start an app on top? I created a keyboard shortcut super+e to open nautilus, But it opens in the background and not in the front. thank you :)
1
vote
1answer
36 views

How can I open pdf files by default with foxit?

I'm new to ubuntu as I come from Win7. In win7 I was using Foxit Reader to open the pdf documents. Searching online I found this method to install Foxit. cd Downloads/ tar -xvf ...
1
vote
1answer
26 views

rsync throwing mkdir: cannot create directory ‘/data/dir_1/dir_2/dir_3/’: No such file or directory

I mounted a disk at /data. This is empty at the moment. I need rsync to perform mkdir -p than mkdir as the file I needs to be at at level 4 i.e. /data/dir_1/dir_2/dir_3/filename when dir_1, dir_2 ...
1
vote
2answers
15 views

Handling wildcards in linux shell script

I have a directory named "directoryname". If i give the command: cd direc* it will go straight into that folder and that's fine. What I want to do is, get the name of the directory from this. As i am ...
1
vote
0answers
23 views

Ctrl-Alt-t opens root terminal instead of normal terminal

I installed Terminator and made it my default terminal with this solution, but now Ctrl-Alt-t opens Terminator as a root terminal. How do I get it to open Terminator as a normal terminal?
0
votes
0answers
24 views

How can I download a file without using wget? [duplicate]

I have to download an object file in /tmp and rename it in world.o https://github.com/systems-cs-pub-ro/uso/raw/master/tema1/help/hello.o How can I do this thing without using wget?