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

learn more… | top users | synonyms (5)

0
votes
3answers
26 views

Replace string with multiline file content

I need to replace string "SALT" in a file with content of another file. Problem is that the inputed file has multilines. I tried something like this in my bash script: SALT=`cat salt.txt`; sed ...
1
vote
4answers
38 views

Find and replacement of the numerical part of a particular string with increased value using terminal command

The inputfile is, test00.dat test07.dat test03.dat aram22.dat test09.dat aram09.dat test13.dat I need the output file as test01.dat test08.dat test04.dat aram22.dat test10.dat aram09.dat ...
0
votes
1answer
33 views

Navigate the web with the terminal

I'm trying to learn how to use the terminal, and I want to try sending and receiving data from a common website like Amazon or Google. I want the terminal to enter a string into a website's search ...
-3
votes
1answer
23 views

Move files using shell expansion characters

Working on a review for an upcoming exam in my Linux class. I keep getting this answer wrong and shell expressions are my worst so far in this class. Please weigh in. Here is the problem: Move all ...
0
votes
3answers
41 views

Batch rename, add extra “.” character at position 3 in filename, recursively

I've been struggling to make this work but I am not very good with regex. This is what I tried to do and it didn't work (after 50 minutes, still going on with no visible change): while IFS= read -r ...
0
votes
0answers
10 views

How would I go about sending a command to a headless Linux device through ssh, closing the connection, and still have the command run? [duplicate]

I have sent a command to my headless Linux device though ssh but I would like to close the ssh connection, and still have the command run. Example: Running this command though ssh "aria2c -i ...
6
votes
5answers
295 views

Launch nautilus in location navigated to in Terminal

I find it rather hard to travel through my system using nautilus and much prefer using the cd etc commands in Terminal to get around my system, but I find that sometimes I do need to look at a list of ...
0
votes
0answers
33 views

Use terminal to run programs scripts a short way [duplicate]

in window I know make this withe the cmd but in ubuntu it's not good I have a question about the Terminal. I want to ask how to call a program in the terminal $ ...
0
votes
0answers
8 views

how to open my second HD in terminal? [duplicate]

Would like to move files into my second harddisk, did gparted, please help (/dev/sda) Partition File System Mount Point Size used /dev/sda1 ext4 /hdd ...
-1
votes
0answers
28 views

How to use the Terminal while X Desktop is running

so... got to Linux Ubuntu 14.10 last Friday (the first time ever using Linux) und now having a very dumb question, I'm afraid of. So... That was a Minimal-Installation which called himself "Standard ...
1
vote
2answers
83 views

Ubuntu 14.04 : Cannot access internet via terminal

I am able to connect to both wired and wireless networks and able to browse via a browser. So I don't think there's any network issue. However I cannot run any internet based command from my terminal ...
0
votes
0answers
8 views

cannot enable Asterisk Manager Interface (AMI)

How do I enable the AMI for Asterisk? thufir@tleilax:~$ thufir@tleilax:~$ sudo cat /etc/asterisk/manager.conf [sudo] password for thufir: ; ; Asterisk Call Management support ; ; By default ...
0
votes
0answers
23 views

Arduino 1.6.1 installation

I unpacked the Arduino archive. I have jdk, jre installed properly. When I am trying to launch Arduino 1.6.1 IDE I get the following error and I have no idea where to start from to solve it. Any ...
0
votes
1answer
15 views

Bootable partition

I usually create a bootable live image of a CD on USB devices with this command: sudo dd if=image.iso of=/dev/sdx The problem is that after using this command, I cannot copy additional files on the ...
0
votes
3answers
33 views

Can't Access Terminal, Menus or Sidebar

I posted a while ago with this problem: 14.10 Upgrade: No access to menus or sidebar, which I cannot find a workaround, especially as I can't access the Terminal via Ctrl Alt T, and none of the ...
0
votes
1answer
32 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
10 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
327 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?
0
votes
3answers
109 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: --- ...
1
vote
0answers
23 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 ...
-1
votes
0answers
12 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 ...
-1
votes
0answers
21 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
27 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 ...
0
votes
2answers
32 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 ...
0
votes
0answers
15 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
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 ...
1
vote
2answers
407 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
1answer
19 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
3answers
179 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 ...
1
vote
2answers
52 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
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
2
votes
3answers
133 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
2answers
124 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 ...
0
votes
3answers
69 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
43 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 ...
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 ...
1
vote
0answers
16 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
24 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
26 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 ...
0
votes
0answers
23 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. ...
1
vote
1answer
35 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

certain colours represent different attributes, but I am very confused in what colour and highlight means what [duplicate]

in the command line, certain colours represent different attributes, but I am very confused in what colour and highlight means what. e.g. ping6 is highlighted in red (I take it that means ...
1
vote
0answers
16 views

IpProtocols firefox add-on with gnome-terminal and multiple tabs

I want to use Firefox with IpProtocols 0.2.3 to launch telnet sessions from browser. It is working well for me with xterm terminal emulator, but i wish to use multiple tabs. Now I try to use ...
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 ...
-1
votes
1answer
39 views

When I start the computer, it only shows the terminal

When I opened my computer, it shows the terminal interface. I don't know why but I think it's due to the many times I opened te terminal and typed lots of commands to fix my wireless network and ...
0
votes
0answers
15 views

Switch mouse pointer buttons

I have laptop and I would like to switch the primary and secondary left/right click buttons from the terminal and further in a script. I have followed this post How do I swap mouse buttons to be ...
0
votes
1answer
25 views

Run a multi-line script in Screen

I want to run this script in a screen: #!/bin/bash while true do java -server -Xms2G -Xmx2G -jar craftbukkit.jar echo "If you want to completely stop the server process now, press Ctrl+C ...
0
votes
0answers
18 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 ...
0
votes
1answer
23 views

ssmtp doesn't recognize ctrl+d

I'm trying to send emails from an ubuntu-server (14.04.2 LTS) via the command-line and later inside small scripts. To do so, I want to use ssmtp with an external mailserver, inside the network, that ...