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

learn more… | top users | synonyms (5)

2
votes
2answers
23 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
32 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
33 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
32 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
2answers
29 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
23 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
65
votes
6answers
136k 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
633 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
204 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
20 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
36 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
40 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
7k 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
318 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
29 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
25 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
352 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
40 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
499 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 ...
0
votes
0answers
7 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
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
16 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
34 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 ...
0
votes
1answer
633 views

No TTY after installing NVIDIA Driver

When I first installed Ubuntu 14.04, I used the command line to install the nvidia drivers to my computer. Now, if I try to open any of the 6 TTYs, I lose all display and my monitor cuts off until I ...
0
votes
1answer
36 views

Help Starting Minecraft Server Ubuntu 14.04

My .sh file to launch the server is not working. I have the file named 'craftbukkit.sh' with this pasted in it (from the bukkit set up wiki) #!/bin/sh BINDIR=$(dirname "$(readlink -fn "$0")") cd ...
9
votes
3answers
2k views

What is the difference between “>” and “>>”?

What is the difference between ls > and ls >>? I need to understand this for my GCSE computing but don't know what the difference is.
18
votes
3answers
8k views

Are terminal and shell the same?

I know this might sound foolish but I just wanted to know if there is really a difference between the two words used in the Linux world. I do know that the Shell is a Command Line Interface and has ...
-1
votes
2answers
56 views

Shell Script to check for subdirectory [closed]

A. I used the following code to get the modified date of a file. But this is also selecting the subdirectories and thus returning an error. How can I fix this? for file in $1/*; do echo `stat ...
0
votes
2answers
39 views

multiple file rename based on modification date

I have looked on the web on multiple sites but I can't seem to find a solution and the man page is not clear (I'm a beginner with the CLI). This is my problem: I have about 200 files in a directory, ...
0
votes
1answer
52 views

Use find command but exclude certain directories [closed]

I am trying to run the make command, but it says make: *** No targets specified and no makefile found. Stop. After doing some research, it seems that the error is because I need to run ./configure ...
-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?