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

learn more… | top users | synonyms (5)

0
votes
1answer
21 views

Packaging bash script with dh-make

I have installed dh-make by installing other packages as recommended by this page which depend on it (I am listing all packages which could have installed it as well because I am not certain which one ...
1
vote
0answers
6 views

Trying to scroll in terminal produces : 64;65;15M65;65;15M65 output instead

When I am trying to scroll up and down in my ubuntu 14.04, my shell outputs this instead of scrolling: 64;38;17M64;38;17M64;38;17M64;38;17M64;38;17M What is going on? How do I fix this?
1
vote
5answers
104 views

Where is the terminal in Ubuntu Phone?

Just got the BQ and things are good. I just can't find the terminal. Does anyone know how to start it?
1
vote
3answers
51 views

How to use 'cut' command for finding temperature using tlp?

I have installed tlp in my system to prevent laptop over heating and i used this code to retrieve currtent cpu temperature. tlp-stat -t the output for above command is something like this: --- ...
14
votes
4answers
35k views

Opening the file browser from terminal

What's the command to open the file browser? I want it so that I can assign a keyboard shortcut to open a specific folder.
0
votes
0answers
20 views

localhost cannot access my newly created folder [duplicate]

I'm using Ubuntu 14.04. I use to copy projects like wordpress and codeigniter and work in them. At the beginning after installing Ubuntu 14.04 I granted all privileges to access the /var/www folder. ...
4
votes
4answers
8k views

No Terminal Library Found when Compiling Vim

I am running Ubuntu 12.04. I'm trying to a get a particular plugin for vim working and it requires that vim has ruby support enabled (the plugin is command-t). People tell me that I must go into my ...
1
vote
0answers
13 views

Ctrl+L on terminal doesn't work anymore

Usually on the command line you could write Ctrl+L and this would clean the command line, but now it doesn't. The command does nothing at all. How can I restore it to the way it was? I'm using Ubuntu ...
0
votes
0answers
10 views

ubuntu machine had postgresql folder blown away manually

i have a machine where a user deleted their postgresql folder from the command line in an attempt to uninstall postgres. when they go into the Ubuntu Software Center, they are continuously prompted ...
10
votes
5answers
15k views

How to avoid prompt password for sudo?

I know I can go root (super user) via the su command but I have to authorize it after firing the commands. Is there a way I can go root and authorize (with password) in one line
0
votes
2answers
51 views

check status of services and daemons

I installed some services such as ntpdate and reportbug. How I can check their status and start/stop them? These don't work with service commands.
0
votes
2answers
118 views

Open a file at a certain position and read one byte in bash

Since two persons already voted to close this post, I'll try to make the question as clear as possible. A file on a physical device is represented as a binary sequence. That being said, what I need to ...
3
votes
1answer
3k views

How to automate execution of commands in separate terminals?

I am new to LINUX operating system. I am using ROS (Robotic Operating System) where I type few commands in separate terminal windows for doing the setup. ie Before I run my program, I have to do ...
4
votes
2answers
3k views

How do I navigate to folders with spaces in their names? I get “no such file or directory” when I try

I'm completely new and lost in Ubuntu 12.04, I'm having trouble navigating to my Sublime folder which I know is in my /opt folder. Yet I've tried to no avail to navigate into it via Terminal window. ...
0
votes
2answers
2k views

How can I change the wireless pasword from the terminal?

Hello I've recently installed Ubuntu 10.04 and entered a wrong password for my apartment's wireless network. Upon entering the network options to edit the password it will allow me to delete it and ...
2
votes
3answers
129 views

Multiple File Extension Rename with single command

I received some important files via mail. There are about 150 files like these. The extensions of the files are named as zip1,zip2,zip3, zip_ etc. I just want to change the extension of these files ...
0
votes
1answer
115 views

shutdown 5:30pm every day

for a five thirty pm shutdown, should I change this: 30 02 * * * /sbin/shutdown -h now to: 30 17 * * * /sbin/shutdown -h now see also: Crontab Shut down command didn't work
0
votes
0answers
20 views

Schedule shell script including sqlplus

How to schedule script with sqlplus. When i m running shell script it is working good. But while scheduling it is not working. Nd when creating cronjob for norml folder creation it is working. But ...
0
votes
1answer
24 views

Error when i do ''make'' in cado-nfs map

When I’m in terminal and in the map cado-nfs. Then I do make. It will run for a second or two and then I gives a stops and gives this error: CMake Error at config/python.cmake:32 (message): Did ...
0
votes
1answer
22 views

Problem mounting my external hard disk

I'm unable to access any data from my external hard disk, because I can't mount it. namrata@fighter:~$ lsusb Bus 001 Device 003: ID 125f:a31a A-DATA Technology Co., Ltd. Bus 001 Device 001: ID ...
50
votes
13answers
32k views

Running a .desktop file in the terminal

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder. If I open that ...
3
votes
1answer
15k views

How to make terminal autocomplete when there are several files/directory?

If I have several directories, like: afoo abar sometimes my terminal will refuse autocomplete when I press tab (e.g. "cd a" then tab), and print the list of directories instead. Sometimes it even ...
0
votes
1answer
26 views

How to search ASCII text with Ubuntu Terminal

I have a file in which when I use the file myFile I get returned myFile: ASCII text, with very long lines I then proceeded to open it up as a .txt file and it opens up in notepad as a lot of ip ...
2
votes
3answers
3k views

Gedit embeded terminal showing both background and foreground in white color

I am using Ubuntu 12.04.I am using Gedit with one of the plugin called Embeded Terminal which is used to place the terminal attached at the bottom part of the Gedit.Now my problem is in that embeded ...
1
vote
3answers
178 views

How to see users in alphabetical order?

I want to know how to see the users by alphabetical order when using this command: cut -d: -f1 /etc/passwd I get a list with a lot of names including mine but it's very long. I want to order it ...
0
votes
0answers
14 views

Ubuntu 14.04 desktop disappears suddenly

After I boot my Ubuntu 14.04, it shows desktop successfully. Then I browse internet and open terminal, all work fine. But suddenly, when I try to scroll up or down the browser the desktop blinks and ...
0
votes
0answers
10 views

cheese burst weird errors

When taking pictures in 'burst' mode with cheese I get errors such as these: (cheese:7899): GLib-CRITICAL **: Source ID 348 was not found when attempting to remove it (cheese:7899): GLib-CRITICAL ...
0
votes
1answer
6k views

install virtualbox guest addition terminal

I would like to install Virtualbox guest addition using the terminal. Because that is most easy to reproduce and to document. On the server I have Ubuntu 12.04.2. LTS I have Virtualbox 4.3.16 I have ...
1
vote
1answer
18 views

Command-line perl regex replacement: replacement string contains utf8

Say you have a file named test.txt with the following lines: ಕದಂ.ಬ कदम्ब. Then, suppose you want to replace each dot following a devanagarI unicode character (ie in कदम्ब) with a ।. Then, you might ...
1
vote
2answers
406 views

Command Line - Move here [duplicate]

I would like to move a file via the terminal using the mv command. The syntax is mv file_old_dir file_new_dir I am already in the directory where I want the file moved. I just did mv file_old_dir ...
1
vote
2answers
51 views

Is there a command to round decimal numbers in txt files?

I saw this post, but I was wondering if there is a simpler command to round decimal numbers. I have a file with milions of numbers: 0.1 1.2 3.8 I want to round them to integer 0 1 4 Is there a ...
1
vote
1answer
42 views

Find and replace regular expression (matching unicode character class Devanagari) in multiple files

Say you have a file named test.txt with the following lines: ಕದಂಬ कदम्ब Then, suppose you want to replace each devanagarI unicode character (ie in कदम्ब) with a D. Then, you might think that the ...
0
votes
3answers
64 views

Linux equivalent for «cmd /C start “Title” “C:\Folder\file.bat”» [duplicate]

I have a Java program that runs a batch file on Windows with Runtime.getRuntime().exec() using the following command: cmd /C start "Title" "C:\Folder\file.bat" The Java program ends quickly since ...
1
vote
1answer
19 views

How to print an octal value's corresponding UTF-8 character in bash?

I expected printf %s '\<octal_character_value>' to do the trick, but it doesn't: printf %s '\101' Outputs: \101
8
votes
2answers
1k views

Why I can't uncompress a .bz2 file using tar?

So I have this wikipedia dump sized at about 10gb and named as "enwiki-latest-pages-articles.xml.bz2". I have been trying the following commands in the terminal to unzip the dump: tar jxf ...
2
votes
1answer
11k views

How do I create a symbolic link [duplicate]

I was wondering how to create a symbolic link in Ubuntu (12.04 LTS). I've done this before but this time it is a little different. This command worked before. user@desktop:/media/backup/folder$ ln ...
0
votes
1answer
91 views

Start phablet-shell connection to Ubuntu Phone

I see in a few places [1,2,3] that I can securely connect from my Ubuntu desktop to my Ubuntu phone using the command phablet-shell from the phablet-tools package. Yet, from a terminal on my desktop, ...
0
votes
0answers
10 views

Make KNetworkManager follow radio status set on the command line

I have installed the KDE desktop on my Notebook. However, when I enter into airplane mode on the command line by nmcli r wifi off the GUI of the KNetworkManager does not show the little airplane ...
0
votes
0answers
23 views

How to get a variable from a .cfg file and place it to an xml file? [closed]

I wanted to write a shell script for linux. I will use it for soapui projects of mine. Assume that there is a variable in a.cfg file, a.cfg file #var=1.2.3.4 I wanted to get this variable and ...
0
votes
2answers
384 views

Open files with vim in terminal

Is there any way to open file with vim in the terminal without typing file name, but for example then I see in the directory my file, go with arrow keys or something like that? I think I saw one of ...
0
votes
4answers
5k views

How can I make Eclipse work (bash permission)?

Well , I've tried to compile and install Eclipse 3.6.2 using the instructions in : How to update Eclipse 3.5.2 to 3.6.2? . But Eclipse doesn't open. user@s-HP-550:~$ eclipse bash: ...
1
vote
1answer
68 views

Print a list of “full” relative paths of all the files present in a directory and in its sub-directories

I need to print a list of "full" relative paths of all the files present in a directory and in its sub-directories. I used to do this with du and grep: du -a <path_to_directory> | grep -Po ...
8
votes
4answers
339 views

Print output of code in the middle of the screen

The code below will output whatever in file word by word on the screen. For example: Hello will be displayed for 1 second and disappear. Then, the next word in the sentence will appear for a second ...
1
vote
0answers
15 views

How to keep terminal for installation of debugging symbols of apport's local investigation alive?

apport allows to investigate crashes locally and to either start a gdb session, get a backtrace or install debugging symbols in that local investigation. When choosing the latter a gnome-terminal is ...
0
votes
0answers
22 views

How do you terminate the process “Mitmproxy”

I have recently been messing around with mitm proxy as it interests me. And this is a simple question that I couldnt find an answer for. How exactly do you terminate the mitmproxy? I tried sudo ...
0
votes
0answers
25 views

ubuntu 14.04.02 LTS Gtk warning

after screen freeze at sign on yesterday, I attempted fix thru Terminal commands (apparently I am way too much of a noob) currently in terminal I am unable to use gedit (confirmed newest version is ...
1
vote
1answer
34 views

.zip file not getting extracted

I have downloaded linux game Urban Terror using flareget download manager which is 1.7 GB. The download seems to be completed without errors but it is not getting opened with archive manager and I get ...
0
votes
0answers
16 views

EtherApe outputs “No D-BUS daemon running” error randomly

I have installed EtherApe with: sudo apt-get install etherape But now randomly (mostly when it is first run after startup), it doesn't work and I get this GUI error: sudo etherape I find that it ...
4
votes
7answers
220 views

Delete files that aren't in a list of patterns

I run a car sales website for a client. They are constantly adding and removing cars. When a new one comes in, they add a batch of images and the website generates a thumbnail for each. The site ...
5
votes
2answers
129 views

Total video time in a Directory

Is there a script(bash, python etc.) that outputs the total duration time of all video files in a Directory(recursively) ? For e.g on executing the following : script mypath it gives x ...