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

learn more… | top users | synonyms (5)

0
votes
2answers
51 views

Problems accessing my Ubuntu system

I have a problem accessing to my Ubuntu 13.04 system. Recently I updated from 12 to 13 and after some hard work I am able to input my password and user name, but I can't get any further, because the ...
2
votes
2answers
131 views

How can I keep vpn running even after exiting terminal?

I have a program that runs on Ubuntu (14.04) whether I am in the terminal or not. This program relies on a vpn connection, for which I am using vpnc (cisco). I have added vpnc to my reboot and start ...
1
vote
4answers
78 views

How to find the list of all available packages along with the lastest version number available in the repositories?

I want to list all the packages(installed or not installed) along with the latest version number available in the repositories. For example: The output of apt-cache policy chromium-browser shows ...
8
votes
4answers
11k views

How to check the process is already running or not

I want to check the particular process in already running or not. I refereed this Q&A. But I didn't get any specific solution. Following is the example that I tried: I have created abc.sh file ...
1
vote
2answers
277 views

How to create a script which opens the browser and logins to a particular Gmail account?

I have created a bash script login.sh. I want it to open the browser and login to my Gmail account. I tried using the following command to open the browser with www.gmail.com. xdg-open ...
21
votes
3answers
3k views

Why does “A=10 echo $A” not print 10?

This command: A=10 echo $A prints an empty line. Why not 10? Why doesn't the in-place temporary environment setting work? I want to know the reason and explanation rather than solution. I used ...
1
vote
1answer
98 views

Parse git log by modified files

I have been told to make git messages for each modified file all one line so I can use grep to find all changes to that file. For instance: $git commit -a modified: path/to/file.cpp/.h - 1) ...
1
vote
2answers
1k views

bash: config.sh: No such file or directory

Whenever I open my terminal, it displays bash: config.sh: No such file or directory followed by the command prompt in the next line. My .bashrc file contains: source config.sh I mainly use Ubuntu ...
1
vote
1answer
2k views

ln works on command line but not in script

I try this: for file in `ls -1 ../files/file_??_??.dat` ; do echo "$file" ; ln "$file" ; done And for every file it gives this error: ln: failed to create hard link ‘./file_01_am.dat’ => ...
0
votes
1answer
149 views

Bash script not adding variables to session [duplicate]

I have a bash script that I have added as a startup application. It does a bunch of exports and alias assignment. #! /bin/bash alias devhm='cd ${DEV_HOME}; ll'; alias wlhm='cd ${WL_HOME}; ll'; alias ...
0
votes
2answers
726 views

Rufus compiling error

vivek@vivek-N61PB-M2S:/usr/local/src/rufus-1.4.7$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe ...
3
votes
1answer
44 views

alias multi commands as one alias

I made an alias for youtube-dl with some options like that yd="youtube-dl -cit -f 18" so I can download it like yd URL I want to modify it to show only the two lines from the output using ...
0
votes
1answer
276 views

Sudo won't accept my password even with Caps Lock off and the right password

First, I just want to say that I did check for caps lock and I know for a fact that it was the correct password and everything was fully correct. I even entered the sudo command a second time and ...
0
votes
0answers
438 views

Is someone aware of any multi threaded unrar program?

I was searching in the past (past few weeks) for a program/software which is multithreaded and it is able to extract rarparts using multi threading. What software's i've already tried? unrar, ...
4
votes
3answers
2k views

Deleting first column with vim

I have a text file. number 1_1 \t number1_2 \t etc number 2_1 \t number2_2 \t etc I want to remove the first column of this file (corresponding to number1_1, number2_1 etc, ie the numbers before ...
0
votes
0answers
57 views

Can't resize font with “ctrl [ shift ] +” and “ctrl [ shift ] - ” in wmii

In my company, I have a Ubuntu 14.04 installed in a virtualbox, I installed wmii on it, everything works fine. But at home, I'm using legitimate Ubuntu 13.10, and installed a wmii on it. The font ...
2
votes
2answers
350 views

How can I compare two directories recursively and check if one of the directories contains the other?

I have two directories, they contain common files. I want to know if one directory contains the same file as the other. I found a script on the net but I want to need improve it to do recursively. ...
2
votes
1answer
70 views

How to find programs that are appropriate to open a file?

Is there any command line command or any program which tells you or suggests you which programs you have installed on your system in order to run your passed file. For example when I write command ...
2
votes
3answers
227 views

How to split the contents of a file?

I have a text file which contains exactly thousand lines. I want to split the file into 1000 different files by writing each line to a separate text file. And i want the name of splitted files to be ...
0
votes
1answer
58 views

Force mousepad to block terminal

I'm using mousepad as my default editor. However, recently mousepad does not block the terminal when it has been called up from there. How can I restore this behavior?
1
vote
2answers
100 views

What are the standard Environment variables ($) in Ubuntu?

I know some useful environment-variables like $HOME, $UID, $BASH, $LOGNAME etc. which is useful to get information in terminal/command-line with using echo(ex: echo $LOGNAME) I want to know what are ...
5
votes
1answer
2k views

What does echo with “>>” symbol do?

I've seen some command like echo '* - nofile 65535' >> /etc/security/limits.conf I know echo print something on the screen. and limits.conf was a file in that /etc/security path. But want ...
0
votes
0answers
55 views

Run command as login shell

Where is the option for "run command as login shell" in the terminal? cause my terminal has no :edit:menu: stuff in the top bar as I see in some guides.
6
votes
2answers
307 views

Renaming a bunch of files using Command-line

Suppose I have a folder with thousands of photos named all randomly. How can one rename them as photo1, photo2,...,photo1000 from the command-line/terminal?
1
vote
1answer
2k views

Converting hundreds of jpg to PDF using Terminal

I know that the command convert *.jpg myPdf1.pdf can convert multiple JPEG files into a single PDF. But I would like to convert multiple JPEGs into multiple PDFs, for example: myJPG1.jpg → ...
0
votes
2answers
229 views

Is there a shortcut for long folder paths in terminal? [duplicate]

I've just started using Ubuntu 14.04 since yesterday so i'm quite a newb as you can imagine. Thing is i was wondering if there is anything out there that helps one shorten the paths to specific files ...
35
votes
5answers
9k views

Shortcut to clear command line terminal [duplicate]

Is there a shortcut to clear the command line when typing in it instead of keeping backspace pressed for a few long seconds? I ask because I regularly use the Tab key to automatically fill in file ...
2
votes
1answer
86 views

How can I choose the audio output device using the terminal?

I have a digital headphone set and an analog pair of speakers. Is there a way for me to switch between them in the terminal in Ubuntu? I ask that because I would like to create a keyboard shortcut for ...
2
votes
0answers
154 views

Ubuntu server 14.04 quotations marks display wrong

When ever the character ' is displayed in my terminal it displays as â. I have never had this with the previous versions of Ubuntu. For example: rm: cannot remove â/etc/init.d/novncâ: No such file ...
0
votes
1answer
2k views

How do i find all the truecrypt encrypted container files through terminal?

I have created many encrypted container files through truecrypt and stored it in different locations on my Hard drive. Now i want to list those. How do I list all encrypted container files along with ...
0
votes
1answer
218 views

email body empty when I use “echo” in mutt commandline mode with root account

I have use mutt to send mails. It works fine when I use my own user account: e.g. echo "foo bar" | mutt mymail@mymail.com However, when I put the above command in /etc/lightdm/lightdm.conf (I want ...
1
vote
1answer
422 views

Is it possible to use secret-tool to lookup existing seahorse passwords?

I found this post about getting passwords from the gnome keyring from commandline (How do I get passwords from the keyring in the terminal for usage in scripts?), and I found that secret-tool is the ...
10
votes
5answers
20k 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
1
vote
3answers
417 views

Python command in bash does not find -c flag

I have two python lines in my bash script, both should run with -c flag, but once I run the Bash script it tells me that it could not find -c flag that is needed for python to run the command in Bash. ...
1
vote
1answer
219 views

How do i find the recently used files through terminal?

I want to see the recently used(accessed) files along with their path through terminal. How could i get that files list? Note: This question is not a duplicate of Show recent modified/created files ...
-2
votes
1answer
46 views

any way to track an application [duplicate]

I have a software which when I go its directory path in terminal I run ./myprogram and my application start so I want to know how to understand which files are reading by my program which is not ...
0
votes
1answer
119 views

problem with installation matlab

I want to install maltab to 32-bit version , so i follow the instructions , and i have write this command sudo /media/MATHWORKS_R2012A/install -glnx86 -v but it give me sudo: ...
0
votes
1answer
442 views

How can I make a folder in a Pen-Drive using terminal?

I had opened a Pen-Drive in my system and I thought to open my Pen-Drive from terminal and copy the needed file from system to Pen-Drive from terminal only. But I was wondering how I can do that. Can ...
3
votes
1answer
186 views

Show “Open with…” dialogue using a command

Is there a way to show Nautilus' or Thunar's (or whatever) "Open with..." dialogue directly from the commandline? I am using muCommander and need to open files with non-default applications once in a ...
-3
votes
1answer
106 views

How to copy a file's content to an other without erasing the destination file's content? [duplicate]

I run cat source.txt > destination.txt. All the content of the destination file is overriden. How can I copy a file's content to an other file without erasing the destination file' content ?
0
votes
1answer
46 views

What all can I learn while using Ubuntu? [closed]

I have been using Ubuntu for 3 months now. I was using Windows 7 before that. My experience with Ubuntu makes me to forget about Windows. I am learning commands and the ways to do each and every thing ...
-3
votes
2answers
1k views

How to save command line output to text file? [duplicate]

There has been several situations where I needed to save the output of a given command line directly to a text file. Is there a way to save the output of any command line I run on Terminal into a text ...
1
vote
0answers
39 views

How to find the directory on which a particular command is executed? [duplicate]

I already installed nautilus-open-terminal package. So i can openup terminal from any directory. Like that i opened a terminal from a directory(i forgot it's path) and executed apt-get download vlc ...
0
votes
2answers
188 views

unable to copy the following message shows: “no such file or directory”

I just recently installed Ubuntu 14.04 server to host an open source human resources software with 20 computers on our office network. I am new to Linux and I really need everyone's help! sudo cp -R ...
0
votes
0answers
209 views

Ubuntu terminal and system monitor close unexpectedly

When I execute certain commands on the terminal, even typing just "find", the terminal closes instantly. I also can't open system monitor without it closing (but the window does flash for a second). ...
2
votes
1answer
83 views

how to play video downloaded from terminal

I have downloaded a youtube video using the terminal but now I don't know how to play it. I have checked the download folder but I didn't find anything. So, how can I play this file?
0
votes
1answer
2k views

Install Dwarf Fortress?

I'm trying to install Dwarf Fortress, and you have to unpack the file in a certain way. Here are the instructions they give: Unpacking: Dwarf Fortress is shipped as a (bzip2) compressed tar ...
2
votes
2answers
65 views

how to count the result

How to count the result? when you write a command and some result appears. any way to count them. For example If I want how many result I have for applications which have python word . dpkg -l | ...
4
votes
6answers
547 views

Go back to the last command

Suppose you type a command in terminal after Enter you will see a list which more than one page. Now you want to read the result from the beginning and you should scroll up. So if you put some ...
13
votes
4answers
413 views

How can I get a list of all packages in a repository section from command line?

In Synaptic, one can list packages by section. For example, in the image below all packages of the "Amateur Radio (universe)" section are listed. How can I get such a list (edit: with package ...