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

learn more… | top users | synonyms (6)

27
votes
6answers
20k views

How can I get mv (or the * wildcard) to move hidden files?

I am migrating my home directory from an old system to a new one, and the tarball I made contains everything, including hidden files like .bashrc. However, when I move the contents of the unpacked ...
1
vote
2answers
20 views

How to navigate to directory which file system object has just been moved to?

I often find when using mv somefile somepath I often need to go to the location which the file had just been moved to. basically mv somefile somepath && cd somepath is there a way to ...
1
vote
1answer
13 views

How to use FQDN instead of just the host part at command prompt?

My current Ubuntu 14.04 command prompt is like username@host being the server FQDN host.domain.com but I want the command prompt be username@host.domain.com. How I can do that?
0
votes
0answers
30 views

Weird numbers and codes, help!

When I start my ubuntu computer, I see these options. "Ubuntu", "Ubuntu more settings", Memory test (memtest86+)", And Memory test (memtest86+, serial console 115200". When I press enter on the ...
1
vote
3answers
3k views

Can I install pantheon terminal in ubuntu 14.04?

Is it possible to install Pantheon terminal from elementary os on my ubuntu 14.04? If yes, how can I?
8
votes
1answer
203 views

gedit top menu invisible when started from terminal and using x11-Forwarding

Given: I'm using export $(dbus-launch) in my /etc/bash.bashrc file as I'm normally running under a non-admin user and need to su - admin to do anything dangerous. Normal behaviour: Go to dash, open ...
0
votes
0answers
26 views

Is there a way to find out my SSD's controller from the terminal?

I tried using hdparm but I'm not seeing anything using the -I option that lists the controller that my SSD uses. Whether or not I can find the controller my SSD uses in its manual, I'd still like to ...
2
votes
1answer
29 views

Open new Mate-Terminal in home folder

I'm not sure if this is default behavior for mate-terminal. When I cd into a directory and then open a new terminal tab, it opens in the same folder. I'd like this to default to home instead of the ...
0
votes
0answers
7 views

NSFilter Service is not running, please go to Status : Services and start the service

I have properly installed NSFilter in PFsense and when trying to start it, a dialogue is coming saying that PFSense had been started but the status still remains inactive. Kindly Advice on this.
5
votes
2answers
48 views

How to get [TAB] to work with arguments of aliases to autocomplete as can be done with the actual command

I have many aliases that I created in my .bash_aliases file, and they are very useful, so if I want all info on a package I do something like: allinfo software-center And that does the equivalent ...
0
votes
0answers
28 views

Ubuntu 12.04 VSCode will not run

I have tried everything in the following: Microsoft Launches Visual Studio for Linux Unzipping and run Code in terminal... I get command not found. I tried Code, sh Code, sudo Code and sudo sh ...
18
votes
3answers
20k views

youtube-dl is not working

I am using youtube-dl to download some videos from youtube. But when I write: youtube-dl http://www.youtube.com/watch?v=rn_YodiJO6k I get: [youtube] Setting language [youtube] rn_YodiJO6k: ...
0
votes
2answers
85 views

Terminal exits after pressing <Enter> or <Tab>

When I open terminal and press Enter or Tab multiple times, terminal exits i.e. when i type ls and press Enter or cd and press Tab all the terminal window get close. How can I solve this problem?
2
votes
2answers
173 views

What shows you the package you can install to get a command?

I have noticed on other Ubuntu machines when you don't have Maven and you try mvn it tells you to install maven or maven2. This does not happen on my xfce, how do I enable it?
0
votes
1answer
21 views

Issues installing SRILM (Ubuntu 14.04) [Solved]

I have been trying to install SRILM to use with Kaldi and have run into a particularly frustrating issue. To create a clear timeline of actions, here goes: I downloaded the tar.gz from the SRILM ...
-1
votes
1answer
31 views

Can't delete a folder even with sudo su

I used the Ubuntu customization tool and the terminal stopped so I decided "Oh well, I'll just close it!". Now the 2 folders it made 'remaster-iso' and 'remaster-root' both have a lock sign on the ...
39
votes
6answers
148k views

How do I connect to a WPA wifi network using the command line?

So basically, I'd like to use iwconfig to connect to my wifi network when I'm not inside X. But I just don't see a way to do it in the man page. Any idea?
0
votes
0answers
34 views

Yakuake not responding after hitting F12

I'm using Yakuake (it's a drop down terminal emulator) to manage my terminals and work in multiple terminals, switch between them... First you must launch the application and by clicking on F12 the ...
0
votes
1answer
39 views

How to run a web url script in a terminal

I am attempting to launch a script via my terminal. It runs fine in my browser but not in the terminal. Ive tried... sudo curl https://www.example.com/myscript?info=1 sudo wget -q -O- ...
0
votes
1answer
36 views

Adding Android SDK platform-tools to PATH downloaded from umake

I am using Ubuntu 14.04 Trusty Tahr, and I downloaded Android Studio with the umake tool provided by Ubuntu. This downloaded Android Studio at /root/tools/android/android-studio, and ...
1
vote
1answer
204 views

How to create a script to sync notes to files using Geeknote

The problem I want to create a directory with my notes from Evernote in files with the Markdown format. I found out that this can be made using Geeknote, but for each notebook every time. How to ...
0
votes
2answers
36 views

How do I reset user to default settings

Long story short, I accidentally ran sudo rm -rf ~ and as a result removed most of my home directory. In a panicked state, and with a bit of research, I attempted to recover what I could with ...
0
votes
1answer
50 views

failing to install RVM while trying to install RoR

I am trying to install RoR on my system. I am following digital ocean's tutorial. While I try to install RVM \curl -L https://get.rvm.io | bash -s stable with this command I am getting the below ...
2
votes
3answers
108 views

Bash for loop - how can I include blank newlines? (IFS) [closed]

Please note this is pseudocode, and I am not trying to count lines this way, this question is to figure out how to include completely blank newlines in a for loop. cat file word word Since ...
1
vote
1answer
42 views

What causes the changes in output of ps for GNOME Terminal in 15.04?

Working on this answer, I found out that the output of ps commands has quite changed in 15.04. A few examples in 14.04, the output of ps -e shows on gnome-terminal: $ ps -e 19006 ? 00:00:00 ...
6
votes
4answers
33k views

How to get the hostname using terminal command-line?

I have used arp-scan in terminal to get the ipaddress as well as mac address, is there anyway i can get to know the hostname of the ipaddress that are there in the terminal? for example there are A-pc ...
1
vote
2answers
76 views

In terminal, what is the path of my HDDs?

I have 2 * 500-GB HDDs. What is the path for each of the disks? On OSX I can just do: $ cd /Volumes/DiskName/FooDirectory How can I do that on Ubuntu? How can I navigate to files in a HDD using a ...
0
votes
3answers
42 views

Why does asterisk produce unexpected results?

I'm new to bash. From the Finding Files documentation: You want to find every file in ~/mydir and all its subdirectories, recursively, with a file extension of .htm (or .HTM or .Htm...) and delete ...
-1
votes
3answers
61 views

Clearing the file by cat > filename

The files may be cleared using cat /dev/null > filename. Is it the same special file that is working whenever cat > filename is done?
2
votes
1answer
99 views

Convert from one archive type to another using CLI

If a particular archive type has to be converted into another format (eg - tar.gz to zip), then one can open the archive using file-roller and go to - Archive -> Save As -> (select the extension) ...
0
votes
0answers
48 views

Running Java as another user

I have a directory called Minecraft for Minecraft servers. I've set it's owner and group with chown to minecraft:minecraft. This user and group exists. /etc/passwd contains ...
-1
votes
4answers
2k views

How Do I Remove Multiple Files Using The Terminal

I am using ubuntu 12.04 lts and i want to remove the following files using the terminal: /etc/apt/sources.list.d/google-earth.list.save /home/jatin/google-earth-stable_current_i386.deb ...
41
votes
9answers
195k views

How to remove all files from a directory?

The closest I've gotten is # rm /path/to/directory/*.* but that doesn't work for files that don't have an extension...
24
votes
9answers
70k views

How to remove all files and subdirectories in a directory WITHOUT deleting the directory in bash?

Is there a command to remove all files and subdirectories in a directory WITHOUT deleting the directory? For example if I have directory "dontDeleteMe" with subdirectories "1", "2", "3" and each ...
0
votes
2answers
29 views

history erase shell script not working

I am creating shelll script that is erase history of commands in the terminal. But the script is not erase the history of commands in the terminal. I follow below procedure 1. My script contains ...
1
vote
2answers
53 views

In Bash or ZSH, is there an opposite to the `clear` command?

Typing clear into a shell creates a bunch of new lines until the output history above is all but hidden. Is there a command or method that does the opposite of clear? That essentially moves your ...
3
votes
4answers
66 views

How to copy a line in vi and paste it to console?

There is a text file with bash commands. Is there a way to copy a line from that file using vi and paste it to console? It may be nano as well. It is console only server installation. No mouse to be ...
4
votes
2answers
60 views

How to reset errornous font in promt and output of gnome-terminal

I'm experiencing replacement of all occurances of certain characters in the prompt and output of gnome-terminal (3.6.2 in Ubuntu 14.04), e.g. (latin d is replaced with some kind of uppercase D in ...
13
votes
5answers
894 views

How to kill all processes apart from specific one

On my local server, many java processes are running, and at the same time I am using Eclipse. Now when I need to restart my processes (I start processes through a shell script), before every start I ...
0
votes
3answers
67 views

How do I run Nautilus as administrator, and go to the next command line?

I'm on Ubuntu 14.04. Here is what happens when I run "nautilus /". The program runs, and the terminal goes to the next command line. Perfect.(http://postimg.org/image/9cpyfjqvp/) But here is what ...
3
votes
2answers
51 views

Funny TTY/Terminal behavior when sudo-ing as a user?

I set up an Ubuntu VPS from Digital Ocean recently. When I log in as root, I'm able to navigate around the terminal properly When I sudo as any other user, I get some extremely strange terminal ...
40
votes
12answers
124k 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 ...
2
votes
1answer
190 views

What does the number in brackets after a command in the manpages mean?

Often, I read something like command time(1) or printf(3) in the manpages. What do the numbers in the brackets stand for?
-4
votes
4answers
49 views

copying a file from documents folder to home folder using cp command [closed]

I am trying to learn how to copy a from one folder to other using command prompt using 'cp' command,file is getting copied from "home" folder to "documents" folder but i am unable to copy from ...
4
votes
1answer
3k views

shut down linux server and turn on automatically at specific time

I'm having an assignment where the lecturer is asking me to create a bash script to shut down a server at 11pm and turn it on at 6am. I'm able to do it by using sudo shutdown -h 23:00 and it works. ...
0
votes
1answer
24 views

How does terminal autocomplete for arguments works? [duplicate]

I find the auto-completion feature of the terminal real amazing! And sometime I ask myself "where does the terminal get that information" For example a have coded a small C-Script with a few ...
2
votes
5answers
3k views

How to remove special 'M-BM-' character with sed

I have file that was created by copying content from DOCX document with LibreOffice into text file. I have modified file with sed to remove additional spaces and other stuff but then I noticed space ...
0
votes
0answers
23 views

Connecting to WiFi whilst in console

I currently have a raspberry pi running Ubuntu 14.04. I want to be able to connect to WiFi whilst in console with no GUI. I can currently connect to my universities eduroam WiFi when in the GUI, ...
1
vote
1answer
42 views

BusyBox v1.21.1 error

As I am new to the forum, I don't know where to ask this question, or even if there is a particular place to ask the question. Anyway, I have recently burned ubuntu 14.04.2 to a DVD and rebooted my ...
6
votes
1answer
170 views

How to know current status of recording device?

I have a device that records the audio and video using ffmpeg. And I am using Ubuntu 12.04 for that device, but I want to find out if the device is currently recording or if it is in idle state from ...