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

learn more… | top users | synonyms (5)

0
votes
0answers
4 views

Steam Terminal Packages Not Loading

thanks for taking the time to look into my question (my first one). I'm loving that Steam now has 700+ games on linux, and downloaded Ubuntu 14.04 and am now really trying to switch to this as much ...
2
votes
3answers
49 views

How to auto-complete commands by typing first letter?

In the terminal, how can I show history while typing? Is this possible? what is the library that I have to install? I think this will boost my productivity while using the terminal, currently I ...
1
vote
3answers
27 views

How to add executable bash script on ubuntu startup

I have created a executable bash script (using chmod +x) for monitoring my system and it works perfectly with out any error. Now i want to add this script on my start up in order to executing the ...
4
votes
3answers
112 views

Use Terminal after opening process [duplicate]

I am new to Linux and using Terminal. If I open an application within terminal, I noticed that it renders my terminal session to be unusable and I can't enter any more commands.The Terminal session is ...
1
vote
2answers
28 views

.sh ffmpeg works manually, not with CRON

I make a movie from jpeg pictures with the script: #create movie ffmpeg -i /home/philippe/Dropbox/Public/Cheiron/day/%d.jpg -r 25 -q:a 5 -pix_fmt yuv420p ...
0
votes
3answers
41 views

append .mp3 at end of every file in a folder [duplicate]

I have a folder with multiple files in it, and I want to append .mp3 extension at end of each file. is there any way to rename all these files with one command.?
2
votes
3answers
48 views

How to delete all lines before and after the specific strings in the file?

I have played with Powergrep and regular expressions but I don't know how to do that: I have the text file (source code of webpage) and I want to delete all text (a lot of lines) before the specific ...
0
votes
0answers
20 views

sed error Bash script

So here's the deal I'm trying to do some auto editing of a file with sed in a bash script. Here's my code: systemdate=$(date) sudo mkdir "/tmp/autoupdate" sudo echo "$systemdate" > ...
0
votes
1answer
17 views

How to execute a script from trusted shell

I am new to Linux. I have copied the bash program from bin to a thumb drive. I have renamed it to "ebash". Now I connect this thumb drive to other Linux machine. I have mounted this drive and ...
0
votes
1answer
24 views

Change name in terminal to something shorter

So on every line in terminal, it leads with something like this: bs7280@bs7280-Lenovo-IdeaPad-U530-Touch:~/path/to/dir$ is there a way to make this shorter, without all of the useless text out ...
0
votes
1answer
33 views

How to monitor battery condition and pop-up notification?

Essentially, I would like this comment into a working answer. I know how to extract the battery percentage from How to check battery status using terminal?: upower -i $(upower -e | grep BAT) | ...
0
votes
0answers
8 views

PC doesn't go into sleep mode

laptop doesn't goes into sleep into as it is pretty irritating to make it shutdown and power-on situation for let the PC be on power saving mode for sometime can anybody help. samsung-NP300E5X-S02IN ...
2
votes
1answer
28 views

Join two files keeping the element order of one of them

I have two files File1 03873 03872 03871 03870 ...... File2 00001 0.867 00002 0.855 00003 0.864 00004 0.855 ... 03870 0.825 03871 0.852 03872 0.326 03873 0.852 I want to ...
1
vote
0answers
40 views

Achieve manager like view of compressed files in Terminal [duplicate]

If I can, I will avoid using the GUI to get around my system, and recently what I have found very annoying is that I seem unable to view the contents and open the contents of a compressed file without ...
1
vote
1answer
55 views

Error with sudo apt-get -f install (ldconfig not found)

I am using 14.04 LTS. When I type sudo apt-get -f install into the terminal I get this error: Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16. Use of ...
0
votes
3answers
34 views

Need clarity on output of ls -l command

Need help to understand the output of ls -l command. I created one file testa in my home directory. When I run the ls -l command it shows up with two similar names. What does the symbol (~) mean with ...
1
vote
1answer
24 views

Error when sudo apt-get upgrade

I run Ubuntu 14.04 LTS. When I type sudo apt-get upgrade into the terminal I get this error message. The following packages have unmet dependencies. cups : Depends: libc-bin (>= 2.13) E: Unmet ...
2
votes
1answer
43 views

Are there any simple app to sync a folder with google drive?

I have a folder where i save my scripts, netbeans projects i write etc. Im tired of uploading it after every new project or every edits i make. I saw some clients but i dont want to use them. Is ...
3
votes
4answers
45 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 input file has multilines. I tried something like this in my bash script: SALT=`cat salt.txt`; sed ...
2
votes
4answers
56 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
2answers
53 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
0answers
26 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
50 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 ...
9
votes
5answers
458 views

Launch nautilus in location navigated to in Terminal [duplicate]

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
48 views

Use terminal to run programs scripts a short and practice 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
29 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
91 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
11 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
38 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
16 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
33 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
340 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
2answers
110 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
29 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
29 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
35 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
11 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 ...
2
votes
2answers
440 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
21 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