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

learn more… | top users | synonyms (5)

1
vote
2answers
88 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 ...
0
votes
1answer
44 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
74 views

How to open bash files with terminal? [duplicate]

I am new to Ubuntu and I just started learning bash. How can I open bash files through terminal?
2
votes
2answers
30 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
863 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
25 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 ...
4
votes
2answers
96 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
58 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
83 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
32 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
86 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
15 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
283 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
61 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
19 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.
1
vote
1answer
34 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
7k 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 ...
10
votes
1answer
183 views

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
31 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
30 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 ...
6
votes
2answers
184 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
15 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
22 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
50 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
58 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
26 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
2answers
39 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
28 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
88 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
241 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 ...
-2
votes
0answers
27 views

what does the return “Cc:” mean after exectuting a bash script? [closed]

I have written a bash pipeline for NGS analysis which worked well. I then tried to make it work for multiple input filenames with the following at the beginning of the script: for i in filename1 ...
0
votes
0answers
32 views

Bash Script for adding Keyboard Layout to available Layouts

I am writing a bash script to add a layout (Urdu as input language) to the available keyboard layouts. The current status is: script automatically detects the current layout, as a string. adds te ...
1
vote
0answers
24 views

Ubutnu 14 Terminal is not found in search in VM

I am pretty new in ubuntu 14 I have UI version running on VM VritualBox. I didn't install ubuntu and I want to open its terminal its not shown in search. i dont know why, is it allow? Following is the ...
0
votes
1answer
46 views

Console errors are not being shown

The problem is no errors are being shown even when I type wrong command as shown. There are several cases: bash> blablabla bash> man blablabla The output of lsof -a -p $$ -d0,1,2 gives the ...
-2
votes
0answers
44 views

I am getting error when open terminal

when I am opening terminal I am getting this error can you please help:- Command 'lesspipe' is available in the following places * /bin/lesspipe * /usr/bin/lesspipe The command could not be ...
0
votes
2answers
52 views

How do I write a CD/DVD from the shell to save emails etc?

Was wondering if there is a simple way to save emails, etc... to a CD/DVD from terminal when the upgrade to ubuntuu 14.04 has delivered an icon and bar-less desktop with a program error message? ...
0
votes
3answers
52 views

How do you view file permissions?

I want to know how to see the permissions a particular file has. Which command should I type in the terminal? However, I don't want to change it.
-3
votes
2answers
61 views

How do you call g++?

I wanted to use g++. However, when I type in g++ in the terminal, it says, "fatal error no input files". I have asked a similar question before but to avoid extending the discussion in the comments, i ...
0
votes
1answer
34 views

lost access to executable file (file not found)

I am trying to execute a file that I have recently run. However the system says file is not found? The file was taking a long time to execute and in the end I had to close the Terminal window that ...
1
vote
1answer
25 views

shortcut to send selection to terminal in geany

So i've set up the geany to use with the terminal. My next question is how to set up a keyboard shortcut to send the currently selected code to the terminal?
0
votes
1answer
45 views

How to send an email attachment from terminal?

I am using Ubuntu 14.04. I think the mutt command is not available with this version of Ubuntu. Then how can I mail an attachment using terminal commands?
4
votes
1answer
79 views

Adding unread message count to terminal command prompt

I want to see the number of unread messages in my unix mail messages account in the command prompt. How can I do this? Update: Here is the output from mail and mailx when I have sent myself two ...
1
vote
2answers
38 views

Command to identify running computer

Based on development level there are three computers on which I work at. My personal computer has a different version, and the other two are a development and production servers with similar ...
0
votes
0answers
67 views

Unable to resolve (even ping) hosts on command line while reaching them in browser

I am trying to perform some actions in a Ubuntu (12.10) inside a Virtual Box, under Windows 7 I can perform most tasks, access any needed repositories ... except for some, and I don't understand ...
0
votes
1answer
17 views

How to save newly created commands in the terminal

is there anyway to save newly created commands in the terminal? Every time, I exit the terminal, all of the commands I created are lost. Thank you.
0
votes
0answers
16 views

What pnum to specify when applying a unified patch file

I have a patch file that has the header: diff -Naur '--exclude=*.mod.c' '--exclude=*.o' '--exclude=*.ko' '--exclude=*.cmd' '--exclude=*.git' '--exclude=.git' ...
2
votes
4answers
196 views

How do you find and use programs that have been installed on Ubuntu? [duplicate]

I recently installed a program using the terminal command sudo apt-get install, and I want to locate and use it, and delete it. (I only did it as a test and had no actual use for the file). Where can ...
0
votes
1answer
28 views

echo “${txtred}Text${txtrst}” color not always working

I have a .sh file through terminal and I'm using echo "${txtred}Text${txtrst}" as a display of what's happening when running the script. But sometimes the color is not red, although I used {txtred}. I ...
0
votes
1answer
35 views

Script Not Running Properly On Server

I am having an issue with my webserver. I am testing it out on a new kernel build and it seems as if I can't get one certain part running on it. All of my scripts work except this one. Every file ...
1
vote
0answers
47 views

proxy system wide configuration from terminal applied to gui

we began installing ubuntu desktop 14.04 lts in replacement of xp desktop. the problem is after installing few desktop with the required applications and softwares it takes so long, so we are trying ...