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

learn more… | top users | synonyms (5)

0
votes
1answer
655 views

How to use espeak command in ubuntu? [duplicate]

I would like to know how to use this command , and what is its benefits for a user . I know its for speech and can read documents , but how to use it ?
55
votes
5answers
52k views

How can I empty the trash using terminal?

I am not able to search trash anywhere. Can you please tell me a command or anything like that to empty the trash using terminal ?
4
votes
1answer
279 views

How I can download PDFs of a website by using only the root domain name?

I am using this command: wget -nd -e robots=off --wait 0.25 -r -A.pdf http://yourWebsite.net/ but I can't get PDFs from the website. For example I have a root domain name: www.example.com and ...
6
votes
5answers
859 views

How do I view the man pages?

I'm new to Linux. I got the "Unix And Linux System Administration Handbook" It speaks of several verisons of linux and unix, and the commands for viewing linux man pages and not specific to ubuntu. ...
0
votes
1answer
69 views

Understanding some ubuntu shell commands

for a computer science work i need to understand how a script that was given to me works. However there are some commands that i have no idea what they do and ive tried googling them but had no luck.. ...
0
votes
1answer
33k views

starting a terminal in desktop (ubuntu 14.04) [duplicate]

Anyone know how to start a (Linux) terminal in Ubuntu 14.04 desktop? I could not find an icon for it on the task menu bar along the side of the desktop. :( Thanks ahead!!!
2
votes
1answer
1k views

guvc video capture commandline

I know how to use the -h option, I just don't see any commands to start video capture with file incrementation unless I press the video capture button. What is the command line to start video capture ...
13
votes
1answer
3k views

How can I ensure a service is disabled on boot? [duplicate]

For some reason I need to disable a system service on boot. In my case this is the Avahi Daemon. I just don't want it to start on boot. In previous Ubuntu releases (e.g. 12.04) I could do sudo ...
11
votes
4answers
14k views

How can I find my User ID (UID) from terminal?

The title says it all. What command I need to run from a terminal to find my user ID (UID)?
0
votes
1answer
162 views

How to launch .sh from third party program?

I have the program Lutris installed on my computer and I am going through adding all my linux games. However some are .sh execs others are .bins and executables which both added fine. the .sh ones are ...
0
votes
0answers
77 views

“Error:Unknown option -D” while Simple Query Interception

I am working on MySQL proxy using lua.So i am trying for simple query interception.Using this link,i have done the following. I created a file example.lua,with the following code function ...
3
votes
3answers
823 views

Open pdf in tar.gz without extracting

I have a tar.gz which have pdfs in it I want to open a specific pdf without extracting it Is this possible using terminal through some command (I know we can do it using GUI but I want to use ...
0
votes
1answer
714 views

Netbeans installation doesn't work

While trying to install Netbeans 8.0 in my Ubuntu 14.04 I get the following error: Can`t initialize UI Running in headless mode Exception: java.awt.HeadlessException thrown from the ...
0
votes
1answer
48 views

How download in ubuntu with specific date?

how can I download the contents of a website in Ubuntu considering the the time they are uploaded for example from 2012 on? (for example with Wget or ......)
0
votes
1answer
215 views

terminal user and guest account logged into gui interacting with each other

What we have: I want to connect to a remote linux box via ssh with an account with superuser privileges. This linux machine has one current logged in user who is using a GUI on a guest account. ...
3
votes
1answer
299 views

How to append command output to multiple files?

How can I append a command's output to multiple files? For example, the command man ls, I need to append its output into three different text files using one command in terminal.
0
votes
3answers
50 views

Append an output of a command to a txt file and place it in non writable directory?

If i try for example : directory A i don't have write permission on it sudo ls -l > /home/A/a.txt bash: /home/A/a.txt: Permission denied Then how can i do this trick , any Suggestion is ...
3
votes
3answers
3k views

How do I get back to nano after hitting Ctrl-Z if I have no shell prompt

I'm using nano inside a MATLAB session that is running inside a screen (-x) terminal. I accidentally hit Ctrl-Z and it immediately leaves nano, prints "Use "fg" to return to nano", but does not show ...
1
vote
2answers
226 views

After being root, the custom .bashrc file no longer runs?

I modified my .bashrc file to customize my terminal. I modified the else PS1 statement to the one I needed and it works fine but when I login as root it switched back to the one it originally had. How ...
1
vote
1answer
111 views

What commands the suspend item in system menu really launch?

On my laptop trying to go in sleep mode using the Unity Sleep item (or closing the lid for what it is worth) does not work well (it goes in suspend mode very slowly and after that I am unable to wake ...
6
votes
2answers
955 views

Which is better printf or echo?

For displaying message and print data there are two command available printf and echo. Then how differently they used? Which is more preferable?
1
vote
0answers
465 views

how to Connect BlueTooth device running Serial Port Profile (SPP from command line

I have the device with Blue-Tooth on the board. The firmware in the device runs Serial Port Profile (SPP) stack on it. It works well when I connect to this device from my laptop by means of ...
2
votes
1answer
1k views

What's the difference between the TTY and the GNOME terminal?

I know that terminal can be started by Ctrl+Alt+T. But sometime users say about command-line with Ctrl+Alt+F2. So, Is there any difference in working between them? And when should I use between them? ...
2
votes
1answer
3k views

Cannot open output file: Permission denied

so I'm completely new to Ubuntu. I've set up a shared folder with a few c programs and when I go to compile in Ubuntu, such as: gcc file.c -o fileTest I get the following error: /usr/bin/ld: ...
-2
votes
1answer
46 views

Stuck on Intro to linux lab Ubuntu 10.04

I am currently in an intro to Linux class. We are using Ubuntu 10.04 and I am stuck on a lab problem. Here are the instructions: Create a script called get_dirs that lists the directories in a ...
2
votes
2answers
4k views

bash: /home/user/.ssh/authorized_keys: No such file or directory

Create a ssh key: Command: ssh-keygen -t rsa –P "" Moving the key to authorized key: Command: cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys bash: /home/user/.ssh/authorized_keys: ...
0
votes
0answers
183 views

Uninstalling Wine Software - Superantispyware

I was wondering if anyone knew of a command for the terminal to uninstall the program "superantispyware" that I installed through wine on Ubuntu 14.04 LTS using Wine; I attempted to do by using ...
4
votes
1answer
3k views

How to pause with specific time between two command in script?

I want to do such as following: #!/bin/bash command1 pause 30 seconds command2 exit This is only example script with pause of 30 seconds between run of 2 command. How to do this?
5
votes
2answers
1k views

Is there a command to view hard drive specs

I noticed that my Ubuntu is lagging EXTREMELY badly but only the first time I do things after what I did gets loaded into RAM the lag stops totally. I ran some tests and I guess one of my laptop hard ...
3
votes
1answer
507 views

Get Quotes for stock prices in GnuCash using Finance::Quote

I have followed the instructions here, using the exact example, to have automatic stock price updates in GnuCash. When I click price editor -> Get Quotes it returns in a warning Unable to retrieve ...
0
votes
0answers
25 views

How do I connect a mysql client? [duplicate]

I'm trying to run mysql in Ubuntu by running mysql -u root -p in the terminal and getting this error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
8
votes
4answers
712 views

Deleting specific files in command line

I have files fileName_1, fileName_2 ... fileName_100000 where the fileNames are numbered sequentially. How can I delete the files of index greater than, say 100?
5
votes
2answers
2k views

Find and delete all files without extensions witin a folder and its subfolders

I have a folder without around 500 subdirectories. There is a lot of trash to be found in it and I want to clean it up. I have already deleted certain filetypes that I don't want, like images, with ...
0
votes
2answers
54 views

argument-aware alias command?

I want to create an alias for curl which automatically writes the file it curls into a file with the same name in the current directory. For example: % curl https://bootstrap.pypa.io/get-pip.py ...
1
vote
1answer
442 views

Delete certain filetypes and empty folders within a folder and subfolders

I have a folder that is full of files and subdirectories. A lot of that is trash, but some of it I want to keep. Therefore, I want to delete all files of a few certain types (which are the files I ...
1
vote
1answer
372 views

Why I got 'unable to resolve host' when I do 'sudo'?

Whenever I do 'sudo' I get an error saying 'sudo: unable to resolve host HP-Pavilion'. I recently change my hostname to "HP-Pavilion". I wonder if I screw up something. $ sudo mkdir SourceCodePro ...
2
votes
4answers
71 views

Quickly navigate from one path to another

I noticed that frequently I have to do something like this: I am in a path: /very/long/path/1 and I have to go to /another/long/path/ to do some things there. Than I have to come back to my ...
2
votes
2answers
237 views

Executable text file (like a bat file) that will automatically run in a new terminal when you open it

Basically I want to make a file that when I open it normally, it opens a new terminal and runs a set command that I preset into it. Here's an example: I open a file with gedit, I type in, Sensors, ...
0
votes
1answer
39 views

How to get autocompletion with “>|”?

When trying to empty a text file with >| filename why doesn't bash's autocomplete work for the file name? Is there anyway to allow autocompletion like any other terminal command?
0
votes
0answers
874 views

Difference between & , disown and nohup?

Lets take for example a program name X : In terminal : X & Or : nohup X Or : X & disown Question here What is the main difference between each command aren't they aim for the same ...
0
votes
1answer
241 views

Why won't the terminal change to my shared folders directory? [duplicate]

I have tried cd Desktop/Shared Parallels Folders/Home/Downloads, but linux does not recognise these directories, No such Directory etc. Why?
0
votes
1answer
45 views

Quick way to dump a Wordpress database without digging through configuration files?

I've got a load of Wordpress sites to move around and modify this afternoon. Yay. Like any good developer, I want to back up things before I Hulk-out and break everything. The site's files are mostly ...
1
vote
0answers
55 views

On Trusty, what is CL program to create desktop configuration file?

On Precise, I used to create a desktop configuration file with my own GUI wrapper which called the gnome-desktop-item-edit command line program (part of the gnome-panel package) which had the ...
6
votes
2answers
323 views

Piping with Moreutils ts

I have an incoming stream at a serial port, with new lines appearing about once per second wren@Raven:~$ cat /dev/ttyUSB0 A_Sensor1,B_22.00,C_50.00 A_Sensor1,B_22.00,C_50.00 ...
0
votes
2answers
232 views

Fire fox can connect to WiFi but terminal can't for my college's Network settings

I'm quite new to Ubuntu so please be precise. In my college, I've specific Wi-Fi settings with username and password, as well as LAN settings with proxy server. In my Network Settings and in the ...
1
vote
2answers
56 views

Help, Locked Out of My Computer

Well, I screwed up my installation of Ubuntu again, got the thousandth time, and I was hoping someone could help me out. Basically, I altered the xorg configuration file, which seems to be clashing ...
1
vote
0answers
40 views

set up windows on a workspace

I'd like to set up a command that can restore all of my windows after a reboot. I typically have a set of windows per workspace (multiple monitors) for a particular task. After I reboot (which is ...
2
votes
2answers
200 views

Un-auto-complete Terminal

In the terminal, one can use the tab key to help auto-complete typing out a directory or file name. However, if I make a mistake and mistype the beginning of the directory and "tab it out", I end up ...
1
vote
1answer
2k views

Get total diskspace usign du for multiple directories

I know about du -sh which gives me total disk space used for given directory. My problem is the directories I am interested are scattered in lot of subdirectories. I have right "find" command that ...
4
votes
1answer
695 views

Reset Keyboard Preferences

When I first installed Ubuntu it worked flawlessly and the sound control buttons on my keyboard worked as expected. But now I just configured volume up, volume down, and mute to other key combos but ...