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

learn more… | top users | synonyms (5)

0
votes
0answers
14 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 ...
0
votes
1answer
9 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 ...
1
vote
0answers
15 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, ...
1
vote
1answer
223 views

Install GoPanda2 on Ubuntu

I am trying to install GoPanda2 into Ubuntu. The download file is a tar.gz and can be found here. I extracted the folder to my desktop and then used the terminal to run the install.sh file. When that ...
2
votes
2answers
71 views

Sed matching problem, output not as expected

What I need to accomplish: I want to recursively match everything from string1 to fixed_string (both included) on text_files and output the results onto a result_file. My command is as follow: sed ...
2
votes
0answers
52 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 ...
0
votes
0answers
40 views

how to make gedit terminal itself to change directory to the location of the file which is opened currently in gedit

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 ...
1
vote
1answer
16 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
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 ...
0
votes
0answers
31 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
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
19 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 ...
0
votes
4answers
68 views

How does one read the contents of a text file located on the desktop using the terminal? [closed]

I recently failed to properly upgrade from ubuntu 12.10 to 14.10 and I'm having all sorts of GUI issues with Unity, Gnome & other interfaces as soon as I log in. I don't have access to most basic ...
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 ...
3
votes
0answers
33 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 ...
190
votes
6answers
164k views

How do I determine the total size of a directory (folder) from the command line?

Is there a simple command to display the total aggregate size (disk usage) of all files in a directory (folder)? I have tried these, and they don't do what I want: ls -l, which only displays the ...
0
votes
0answers
42 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 ...
11
votes
3answers
9k views

Can't make ZSH the default shell

I am trying to set ZSH as my default shell, however it keeps reverting back to bash. I have tried this code: sudo chsh -s $(which zsh) I've also tried: sudo chsh -s /bin/zsh Also tried these ...
29
votes
10answers
94k views

How can I create a select menu in a shell script?

I'm creating a simple bash script and I want to create a select menu in it, like this: ./script echo "Choose your option:" 1) Option 1 2) Option 2 3) Option 3 4) Quit And according to ...
25
votes
7answers
49k views

Find number of files in folder and sub folders?

I want to find the total count of the number of files under a folder and all its sub folders.
18
votes
6answers
1k views

increase padding in gnome terminal

I'd like to increase the padding in the gnome terminal, because the default has no padding and hurts my eyes. (Padding as in: I want space between the window border and where the text input/output is ...
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. ...
-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
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: ...
96
votes
15answers
208k views
66
votes
6answers
137k views

A command to list all users? And how to add, delete, modify users?

I need a command to list all users in terminal. And how to add, delete, modify users from terminal. That could help in administrating your accounts easily by terminal.
2
votes
5answers
18k views

Why is the “apt” command not found?

sudo: apt :command not found What does this error mean? The apt command is not working, and I've lost the Software Center.
0
votes
1answer
634 views

Permission denied from avgscan and when copying to folder from OS X

Two questions: (1) I've just installed Ubuntu 10.04.2 on my Mac Pro and I've also installed clam and avg virus apps. When I scan my home folder clamscan works fine but with avgscan ~/ I get ...
11
votes
6answers
22k views

How to make Terminal semi-transparent?

I am running Ubuntu 11.04 with gnome 2.3 and I would like my terminal window to be transparent. The problems is the transparent settings in my terminal just shows the desktop background and not the ...
2
votes
1answer
5k views

Is there a way to force format write protected pendrive

My USB is a Sandisk Cruzer 8 GB drive with USB 2.0. It says it's write protected when I try to format it. Is there a way to force format it ? I try'd some of this ways : varun@varun-pc ~ $ sudo ...
2
votes
4answers
208 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
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?
3
votes
1answer
156 views

Gracefully close appications on shutdown

How to automatically close an application on shutdown (graceful close, not kill)? I try to call wmctrl -c "App" in powerbtn.sh, but it does not work. The same wmctrl command works perfectly when ...
1
vote
2answers
39 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 ...
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. ...
4
votes
1answer
8k views

Proxy authentication with terminal Ubuntu 14.04

I would like to access the internet to update files etc. from the terminal on a secured proxy network. I've already tried the following: Adding to /etc/apt/apt.conf, /etc/apt/apt.conf.d/01proxy, ...
1
vote
5answers
2k views

How to kill only if process is running?

Currently I use line like this in my sh script file: kill `ps aux | grep -F 'myServer' | grep -v -F 'grep' | awk '{ print $2 }'` But I wonder how to call it only if process (myServer here) is ...
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
3answers
323 views

Changing colour of text and background of terminal?

I can change the colour through preference , but how can I change the background colour and text colour of terminal through the command line?
1
vote
1answer
33 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? ...
3
votes
3answers
24k views

Airmon-ng command not found

In the terminal I get Command not found when I type: airmon-ng start wlan0 What can I do to access the airmon-ng command?
1
vote
1answer
26 views

Is there a log of the output of “bash install.sh [ ]” available for Ubuntu server?

Following the advice of someone on this site I attempted to update a wireless device driver with: bash install.sh [] which I ran while in sudo. The update didn't work and I'm wondering if some ...
4
votes
2answers
353 views

Run several xdotool commands in one line separated from each other

I'm trying to run xdotool type word then xdotool key Return from Startup Aplications Preferences. But if I use && or ;, xdotool evaluates it as continuation of input.
3
votes
1answer
41 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 ...
0
votes
2answers
65 views

how to always use rgrep with color

Replace grep command with grep -n --colour? is there anything similar for rgrep auto color?
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
2answers
5k views

Copy file to External Hard Disk

My UBUNTU (desktop part) does not boot completely because of low disk space; I logged in to terminal using my username and password, try to copy some file from /home/UserName/Desktop to my external ...
3
votes
1answer
510 views

Are there commands to control the Spotify for Linux preview? (e.g. Pause)?

I am trying to be able to play, pause, chose next track or previous track from command line, but unfortunately no one seems to know how to do this (I have goggled repeatedly). I need it to be a ...
0
votes
2answers
394 views

How to make sudoreplay work?

I recently discovered sudoreplay whose manpage says that it replays sudo session logs. But I am not sure how do I make it work. For whatever little commands I ran it kept on saying that ...
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 ...