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

learn more… | top users | synonyms (6)

4
votes
3answers
6k views

How to rename multiple files sequentially from command line?

How to rename file as below AS1100801000002.RAW7AGS AS1100801001008.RAW7AH4 AS1100801002001.RAW7AH9 AS1100801003002.RAW7AHE AS1100801004009.RAW7AHT AS1100801005002.RAW7AHY AS1100801010002.RAW7AJ3 ...
17
votes
2answers
25k views

How to open the additional drivers window using command line

How can I launch the additional drivers window from the command line?
5
votes
1answer
10k views

Call Ubuntu settings with command line

What command can I use in the terminal to open the settings options?
2
votes
1answer
1k views

Replacing some characters in the previous command

Sometimes, being rushed, it is possible to type some characters wrong in a command-line. If the command is long, the mistake correction may be cumbersome (using arrow keys). So the problem is: how can ...
0
votes
1answer
216 views

No command 'update' found, what should I use instead? [closed]

I had a problem while booting my PC, the same as this one: "The disk drive for /dev/mapper/cryptswap1 is not ready yet or not present" error at boot. I tried with these instructions, but I'm stuck at ...
1
vote
1answer
5k views

Downloading Dropbox from terminal with wget makes command crash.-UBUNTU SERVER 12.04

I have downloaded Dropbox manually on many instances on Ubuntu systems.Today I tried to use it on an Ubuntu 12.04 server edition, so I used the command wget -O - "https://www.dropbox.com/download?plat=...
0
votes
1answer
145 views

Why is wi-fi not working with terminal downloading?

I usually use internet in my college where we have to use college proxies for downloading. As a result , I had updated my apt.conf file to include the information for the college proxies so that I ...
6
votes
2answers
47k views

How to run shell script via terminal using ubuntu 13.04?

I just upgraded to 13.04. Before this when I click on a shell script file it'll give an option to run via terminal but now the option is no longer available and when I click the file it'll directly ...
3
votes
2answers
1k views

List files having more than 100 lines in a directory and in all it's sub directory

How can I list files having more than 100 lines in a directory and in all its sub directories? An example of such a terminal command will be very helpful. Is there a tool to count the line numbers of ...
80
votes
10answers
7k views

Run same command again but as root

Sometimes when I run a command I don't notice that I needed to run it as super user to have enough permission. Is there a way to run the same command again but as a super user?
3
votes
2answers
1k views

How can I copy files that are not bigger than 200MB using the terminal?

The question says it all. I want to copy files in the terminal, but there are a few big files I don't want to copy (because they are backups). Is there a command to do that? Something like cp --max-...
0
votes
2answers
5k views

How to open the command line in Chrubuntu?

I would like just in case I need to make Chrome the default again, to open a terminal window. Where is the terminal applications located in Chrubuntu? Is there any key-shortcut that allows me to ...
6
votes
2answers
13k views

Copy the content/file to all subdirectory in a directory using terminal

I want to copy a file to all subfolders in a folder. How can I do this with the command line?
0
votes
1answer
122 views

GUFW for console?

I like the GUFW, but need something similar for console. I mean an interactive software without need to remember all the command line keys. Could you suggest one?
3
votes
2answers
3k views

How to save config change on chntpw and quit Terminal?

So, I used the chntpw to clear my Windows 8 Admin password, but it does not apply the change when I restart the computer. I read in some places that the config needs to be saved before closing the ...
1
vote
1answer
2k views

How to switch keyboard input language through ssh terminal on the remote machine? (Alt-Shift analog for ssh)

I'm looking for a way to change the language I give as input to the remote machine in an ssh session. All I want is an analog of the Alt+Shift shortcut, but for the remote machine. Specifically, the ...
2
votes
2answers
998 views

Detecting if folder exists and renaming by pattern

Me again with another command-line script question :) I made a helper script that looks like this echo 'target.bak -> target.old_bak' mv target.bak target.old_bak echo 'target -> target.bak' ...
1
vote
2answers
362 views

Where is the /etc/login.conf file in Ubuntu 12.10 and latest?

Where is the file for the general login for to configure it? /etc/login.conf seems to be outdated in 12.10 ? I want to adjust maximum number of login attempts. e.g. in sudo from 3 to 1. same for kdm,...
0
votes
2answers
130 views

How to execute a terminal command at boot

What i want to do is get this custom screen resolution with xrandr to run at every boot so i don't have to enter it myself or copy and past it this is the code i want to run at every boot cvt 800 600 ...
2
votes
2answers
320 views

have ubuntu want kubuntu

Earlier today i was messing around with ubuntu and found a package that gave me a graphic box with different version in it like ubuntu xubuntu kubuntu and so on. I found it very useful as you could ...
3
votes
1answer
2k views

Generating a single LaTeX file by merging different LaTeX files

I have a main LaTeX file which inputs many other LaTeX files i.e. for example \documentclass{article} \begin{document} \input{input1.tex} \input{./Input_folder_1/input2.tex} \input{input3.tex} \input{...
0
votes
1answer
259 views

How to modify an input in bash script?

I want to do the following on a bash script: I want the user to enter a file name and the bash script must move the file to another file as follows. If the user enters input.tex, I want to move this ...
14
votes
4answers
79k views

Proper way to change terminal resolution in Ubuntu Server 13.04? [duplicate]

I'm running Ubuntu Server 13.04 in a VMware VM running only in command-line mode (i.e. no GUI). It defaults to a 640x480 screen resolution, but I'd like to increase that to either 800x600 or 1024x768. ...
20
votes
1answer
166k views

HTTP POST and GET using cURL in linux

I had server application in asp.net in windows in that i had a web service for that . how can i call web service in ubuntu using shell script by using cURL command
2
votes
1answer
5k views

Time set through terminal resets after reboot

I set the the time using, e.g. sudo date --set="24 MAY 2013 18:00:00" sudo hwclock --systohc --utc This worked, but upon reboot the time was back to the old value. What am I doing wrong? I thought ...
26
votes
6answers
112k views

How to determine if a string is a substring of another in bash?

I want to see if a string is inside a portion of another string. e.g.: 'ab' in 'abc' -> true 'ab' in 'bcd' -> false How can I do this in a conditional of a bash script?
1
vote
1answer
103 views

Executing command line with other user

I'm struggling with a problem, i'm using Ubuntu 10.04 LTS, i have a command line "wvdial brt" wich i need to execute with every boot from my computer, i have 2 users in my computer and i have to ...
2
votes
1answer
793 views

Opening a track with Banshee

How can I open a track with Banshee using command line? Obviously banshee file.mp3 don't work. Is there another command? See what I'm trying to accomplish is to make puddletag to play tracks in ...
0
votes
1answer
22k views

How to start GUI from command line in ubuntu13.04 server? [duplicate]

I've installed the following version of ubuntu om my machine. ubuntu-13.04-server-amd64.iso But when I switch on the computer now, I get command line; Ubuntu 13.04 ubuntu tty1 where it prompts ...
0
votes
2answers
4k views

Bash alias not found stuck on my terminal

I was trying to make my Ubuntu connect to nexus tab and used the following command lines: echo "alias android-connect=\"mtpfs -o allow_other /media/GalaxyNexus\"" >> ~/.bashrc echo "alias ...
1
vote
1answer
1k views

Shell not handling escape character spaces

Recently it seems that shell has changed how it handles spaces in parameters. It used to handle them properly (Or at least as I intended it to), but now it recognises it as a bunch of different ...
2
votes
3answers
12k views

How to backup and restore Firefox bookmarks from command line?

Is there an easy way to backup Firefox bookmarks to a file with command line. Running a find command, I managed to find this file: /.mozilla/firefox/9a5j5dbb.default/bookmarkbackups/bookmarks-2013-05-...
0
votes
2answers
583 views

Can't seem to get script/cron job to work? [duplicate]

ive written a ffmpeg script to mass convert mkv into mp4. when i run the script as my user, and enter my password for sudo privileges it works very well from the command line. the script is: #! /...
71
votes
7answers
117k views

How to add Android Studio to the launcher?

I'm trying to install the android studio so that I can launch it from a launcher instead of via terminal. Android Studio -> Tools -> Create Desktop Entry doesn't do antything Can someone give ...
0
votes
1answer
1k views

How to point grub to usable EFI vmlinuz files.?

On trying to install Ubuntu 12.10 Desktop amd64 to a desktop pc using a ga a75 ud4h motherboard (which is using an AMD 3870k APU with a new 1TB HDD) following the advice in the motherboard manual and ...
0
votes
1answer
964 views

Coloured view in vim editor not working in ubuntu 12.04

My Vim editor version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:19:52) When I open a file(shell script, etc) with it, all the text are on same color. It's not user friendly. How can ...
6
votes
2answers
6k views

How to pass text file contents as argument to console application?

What is the command line to run a console application with input argument fed from text file? text_file: This is a simple text file with characters and other symbols including tabs and new lines ...
0
votes
5answers
4k views

Copy files from a directory to a sub-directory (excluding the sub-directory itself)

I have created a folder(directory) named 'Parent' which contains several files(namely 'file1', 'file2'...'file100') and a sub-directory named 'Child1'which itself may contain files and folders . Now,...
3
votes
3answers
3k views

Why won't environment variables added to .profile show up in screen

I'm running Ubuntu 12.04 I added export LD_LIBRARY_PATH=/home/dspies/workspace/hdf5-1.8.11-linux-shared/lib to .profile but when I log in and open terminal and put echo $LD_LIBRARY_PATH there's ...
11
votes
4answers
9k views

What is sed and what is it used for?

I've been seeing a lot of sed lately, and I find it to be a rather confusing command. The manpages weren't particularly helpful, but I do know that it can be used for parsing the output of other ...
1
vote
2answers
2k views

Can't download Gnome 3 for Ubuntu 12.10

How can I install Gnome 3 on Ubuntu 12.10? I tried to apt-get install gnome-panel, but it errors out because of unmet dependencies, even if I pass -f: kanha@kanha-Aspire-5580:~$ sudo apt-get -f ...
0
votes
2answers
15k views

What's the command to install the build-essential package?

What's the command on 32-bit Ubuntu 12.04 for installing the build-essential package and linux headers generic package?
0
votes
2answers
886 views

How can I run a software package I installed called 'openscam'?

I installed a software called 'openscam' but I cannot find its launcher. It's installer is a .deb file, after I clicked in it, Ubuntu Software Center installed the software, and finished it, but I ...
1
vote
3answers
372 views

App like DOS navigator for Ubuntu? [duplicate]

Dos Navigator was a very popular file manager for DOS / old Win. Something like Like Norton Commander, but waaay better in terms of feature support, and especially usability/UI. I was wondering if ...
6
votes
1answer
661 views

Automatically cd into directories?

In the terminal You use cd ../../........ to get to wherever you want, But I am lazy, I am wondering if it is possible to automatically cd into the directories if the command is simply the directory. ...
0
votes
1answer
68 views

How do I change the location in the terminal with a custom string?

If I have a really long path to a folder, and I just want the string 'longlocation' to replace it in the terminal, I know I can edit the .bashrc file and add this command: alias changelc='export PS1="...
1
vote
1answer
674 views

Command fails to execute in upstart session job

This command: mongod --fork --dbpath ../data --smallfiles --logpath ../data/mongo.log runs perfectly from terminal, while in directory /mongo/bin/ But, when I use same command and directory for ...
1
vote
1answer
1k views

Ubuntu two users logged with same name

I have a server and a ssh session, but it seems like I've pressed something and it was a shortcut so currently, when I do w it shows my other session (which I don't know how I opened). I closed my ssh ...
0
votes
1answer
446 views

Create folders in remote server after ssh login using commands

I need to create folders on the remote server, i try to ssh to the server and then create folders. The logs display that the ssh is successful but it stops after that and the screen stays at the home ...
4
votes
1answer
3k views

How to add commands to terminal

I'm a long time Windows user and how I usually do this in Windows is to edit the environment path and add the file path to the command that I want to use. Like when I want to use PHPUnit I just add ...