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

learn more… | top users | synonyms (5)

0
votes
0answers
7 views

why can the terminal not find my executable

Hey all i have been experimenting with make in order to automate the build i have created 2 simple programs test2.exe #include <stdio.h> int main() { printf("%s","Built using make"); ...
0
votes
2answers
10 views

unable to render java script in chromium browser in ubuntu 14.04

while trying to render a simple java script file to print fibonacci table ,I am getting nothing (a blank page) in chromium... as below <!DOCTYPE html> <html> <head> <title> ...
1
vote
0answers
31 views

Help with curl command line?

i've been trying to upload file with curl command line, but this message appear on my terminal curl: (7) SOCKS4 reply has wrong version, version should be 4.
2
votes
2answers
30 views

Ubuntu equivalent of CentOS success / failure

A lot of services in CentOS look like this (except green and red, respectively): $ sudo service blah start Starting blah: [ OK ] $ sudo service notrunning stop Stopping notrunning: ...
0
votes
2answers
28 views

Problem in creating alias, get strange messages

I recently found how I can define aliases for bash in the ~/.bashrc. But since I tried that, I see the followig messages eveery time I open a terminal. I added some bash aliases to my I was trying ...
4
votes
3answers
351 views

For loop with unix find

Trying to do a mass convert from M4A to OGG in a large music collection, I have: #!/bin/sh for i in `find /home/family/Music -name *.m4a -print0` #do ffmpeg -i "$i" -acodec libvorbis -aq 6 -vn -ac ...
2
votes
1answer
41 views

How to install uTorrent v3.3 on 14.04

I've attempted to install utorrent on 14.04 using the Terminal and attempting to install libssl 0.9.8, but with no success. Also, this utorrent version is V3.3 and is located in my Downloads. I've ...
3
votes
1answer
39 views

Desktop file icon hijacks every newly opened terminal window

I have a desktop file that runs the following script: [Desktop Entry] Type=Application Terminal=true Name=MYAPP Icon=/usr/local/myAppDir/AppIcon.png Exec=/usr/local/myAppDir/myApp It does work, ...
-1
votes
1answer
37 views

Copying two files with one command line? [on hold]

Is it possible to copy two files from that are in the same folder to another folder but change every file name ? I have file1.mp4 and file2.mp4 in c:\ and I want to copy these files to d:\folder but ...
1
vote
1answer
9 views

What init files will be read when opening a new tab and a new window of gnome terminal?

If I am correct, I remember that opening a new tab in genome terminal will run .bashrc, and opening a new gnome terminal window also will. Do these two read the same init files of bash? E.g. ...
1
vote
4answers
165 views

How to write the path of a folder with space in it's name? [duplicate]

I can't figure out how to write the path of a folder that includes spaces in its name (in Terminal). I tried: cd /path/path/path/"A Folder"/file cd /path/path/path/'A Folder/file cd ...
0
votes
0answers
24 views

How to make special new folder in right click? [duplicate]

I want to create folder but it's name date of current day. I know how to make it in terminal by this command: mkdir $(date -I) How to add this to right click to be easy?
2
votes
2answers
32 views

How to get the default screenshot tool?

I want to get user's default screenshooter application. Like, in a fresh install Ubuntu, it is gnome-screenshot, or in Xubuntu it is xfce4-screenshooter. Or maybe Distro A's screenshooter is ...
0
votes
1answer
37 views

SH file not executing successfully

I am new in linux. Trying to run sh file which connects the server over FTP or VSFTPD and get some files. Here is my Script #!/bin/sh HOST='IP_ADDR' USER = 'user' PASS = 'password' FILE = ...
0
votes
0answers
25 views

Strange characters inserted before username both in Terminal and Tilda terminal emulator [duplicate]

Started noticing some odd behavior when using Gnome Terminal, Tilda terminal emulator also a couple days ago. Basically whenever I launch a fresh instance of either application (new tabs also) I get ...
1
vote
2answers
51 views

Shell script running but not opening terminal [duplicate]

I'm having a problem executing a shell script in ubuntu, the script is set as executable and I enabled the execute instead of view option in Nautilus and the script does what it's meant to do which is ...
-1
votes
0answers
46 views

Terminal Crashed in Ubuntu 14.04 LTS [on hold]

When I open a terminal. I can't input commands directly. I must use CTRL + C first. Then, steven@steven-Latitude-E6540:~$ apears and I can input commands. If I don't input anything before 10 seconds, ...
0
votes
2answers
39 views

Cant make file executable in gui or terminal [on hold]

I have recently installed a fresh version of crouton on my Chromebook with unity and ubuntu. I have been trying to make my files executable in the GUI, but every time I click the box it turns back ...
0
votes
1answer
33 views

Why am I getting a mkdir error with this sudo mkdir /var/www/magento-dev.local/public command?

I'm trying to install Magento on an Ubuntu 14.04 server. I created a file called magento-dev.local in the /etc/apache2/sites-available/ directory. that has the following contents: <VirtualHost ...
0
votes
4answers
45 views

How to open bash files with terminal?

I am new to Ubuntu and I just started learning bash. How can I open bash files through terminal?
2
votes
2answers
24 views

Listing and removing albums with too small audio bitrate

I'm cleaning my music library and got stuck with getting rid of thousands of albums with bitrate <320kbps which gathered there for years. Checking single files bitrate and deleting whole folder by ...
2
votes
6answers
809 views

How to command grep not to display the searched string? [duplicate]

I want to print a part of a line in a file. The whole line looks like this. Path=fy2tbaj8.default-1404984419419 I want to print only the characters after Path=. I have tried grep Path filename | ...
0
votes
1answer
23 views

why i can't upgrade and manage my packages

why when i tried to upgrade or remove something this message comes in: "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem." what should i have to do ...
-1
votes
0answers
313 views

Error In Phonegap and android while creating project [on hold]

error in creating phonegap project Creating android project... /home/akarshnagariya/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:126 throw e; ...
4
votes
2answers
80 views

How to combine multiple text files into one text file ordered by date created?

I'm a newbie so please help: I keep a journal on my iPhone using Scratch that outputs all notes I make to a separate .txt file stored in Dropbox. I have this synced with my Ubuntu 14.04 system, so ...
1
vote
2answers
49 views

How do you clear, delete, or hide a portion of your history in the Terminal?

clear will not work, because that clears your screen. What I am looking to do is just hide, delete, or obfuscate a portion of history on my display in my session, namely a command that I inputted that ...
0
votes
0answers
51 views

Another “Some index files failed to download”-error, but there's no 404 error

everyone. I know that there have been other error reports similar to this one, but none with quite my same experience. I'm running Ubuntu 14.04 (32-bit) on an Acer AspireOne with 2 GB RAM, an ...
1
vote
3answers
25 views

split string with a certain character to form a path

I have a string abc_d_e75_f10_xyz_l_11 I want to split it so that I want to construct a string of an existing directory from this string to cd to it. So in this example abc_d_e75_f10_xyz_l_11 I want ...
2
votes
3answers
82 views

Search for a files that matches another file name in another folder

I have some files in a folder, which are named ***_code_c**** (where * represents any letter or number). I have another folder that have many files, folders and subfolders inside it. What I want to do ...
0
votes
1answer
12 views

cannot start Ubuntu desktop from console

I am trying to re-enter my ubuntu desktop 12.04 LTS after an upgrade that failed due to the computer going out of power during the upgrade. Since then, when I log in with my password, I get onto the ...
3
votes
3answers
264 views

Delete files and folders with specific name from a certain directory

I have a folder /home/userA/folderA this folder contains many files and folders and subfolders. What I want to do is to delete all files that have certain names data.txt and glass.txt. I also want to ...
0
votes
2answers
43 views

Rename files in subfolders with parent folder names

I have a main directory that has four folders f1, f2, f3 and f4 each of these folders has 10 folders, and each of these 10 folders ff1...ff10 has some .jpeg images with some names lets say image1.... ...
0
votes
1answer
14 views

Folder path in terminal too long [duplicate]

When i'm in a deep folder hierarchy the entire list of folders are seen before $ How can i make this short even though i'm in the same folder.
0
votes
1answer
97 views

How to print out the command result right front of command prompt?

Is it possible to get the result of echo command right after command prompt without printing them in new line and below command prompt? Something like this: kasiya@kasiyaPC:~$ echo 'Hello World!' # ...
1
vote
1answer
33 views

How to enter part of a command automatically, after another command executed?

I want to create a function for grep-ing my command line history by history | grep {keyword}. And after seeing the list and choosing the command by line number ,I want to execute it by !{line_number} ...
1
vote
1answer
4k views

ShellShock - bash already updated?

I'm trying to fix this new ShellShock bug on my PC (running Ubuntu 14.04). From what I've gathered, the simplest way to do this is to just update bash via the terminal (I've tested my system for the ...
5
votes
1answer
64 views
+100

How to mute sound effects in 14.04 via the command line?

Using the command line, I want to mute the sound effects in Ubuntu 14.04. The GUI way of doing so is going to System Settings (unity-control-center), then going to the Sound Effects tab: The answer ...
0
votes
1answer
26 views

error while install app from terminal [duplicate]

many masters in here. I just have some problem while installing software via terminal. for example, I want to install wine with the code sudo apt-get install wine. But terminal said this: Reading ...
0
votes
0answers
23 views

How does gedit detect the encoding of a text file?

How does gedit detect the encoding of a text file when opening it? I notice that gedit can always find the correct encoding when opening a text file of mine, while chardet can often fail to and ...
0
votes
0answers
6 views

Linux User Group in Ventura County, CA [on hold]

(I hope this webpage allows me to ask this...) Anybody in Ventura County, CA (93010) can come if they want to, to the Linux User Group in Camarillo. Jsut contact me at troysweeney@programmer.net or ...
5
votes
2answers
147 views

How can I delete numbered files in a given range?

I have folderA that has some files with a number sequence starting with a_000000. What I want to do is to delete files starting from a specific number: let's say a_000750 till the end of files in this ...
-1
votes
0answers
14 views

After security upgrade on 12.04 I lost several setup.sh files in root directory

Toady, after applying an ubuntu upgrade and restarting my computer, when i first open the terminal, bash began to tell me that a setup.sh did not exist. I thought this to be strange. When I went to ...
0
votes
0answers
20 views

Creating an alias with tab completion

I know how to create a permanent alias, just edit .bashrc . I created alias forsudo apt-get install <appname> . As you may not know the exact name of app or want to check the dependency u can ...
1
vote
0answers
39 views

How to copy or select current string in terminal? [duplicate]

I want to copy current string (or select and then copy with help ctrl+shift+c) to clipboard. How do I make this?
1
vote
1answer
35 views

Ubuntu 14.04 won-t pass login screen after update and terminal won't accept password

So, I've been using Ubuntu 14.04 for several months now [still a newbie] and today, disaster has struck. I installed an everyday update, not really sure which, the kinds that I'm prompted for all ...
0
votes
1answer
18 views

save number of lines of a text file in a variable shell file

I'm working on terminal and running a .sh file and I want to count the lines in another file and save it as a variable to be used in this .sh file. I'm using this command sed -n '$=' /lines.txt when I ...
0
votes
1answer
14 views

Problem starting Gnome-Shell after login

I am using Gnome-Ubuntu desktop 14.04. I have a Intel i7 processor, 6g ram, and over 2.5t of disk space. I am loading the Gnome-Shell by DVD. I am current using Windows XP because I cannot launch ...
0
votes
1answer
26 views

Ubuntu install from USB issues

I have downloaded Ubuntu to my USB but am having trouble with the install. I reboot my computer and boot from the USB. Then the Ubuntu screen pops up and I select install ( also have tried the demo ...
2
votes
2answers
81 views

how to see the PID for currently running command?

while reading about linux I got : By default, variables created within a script are only available to the current shell; child processes (sub-shells) will not have access to values that have ...
5
votes
2answers
200 views

How to do: underline, bold, italic, strikethrough, color, background, and size in Gnome Terminal?

How to do: underline, bold, italic, strikethrough, and color in Gnome Terminal? Bold Italic u̲n̲d̲e̲r̲l̲i̲n̲e̲ s̶t̶r̶i̶k̶e̶ ̶i̶t̶ ̶l̶i̶k̶̶e̶ ̶i̶t̶s̶ ̶h̶o̶t Color background font < (its mono ...