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

learn more… | top users | synonyms (5)

0
votes
1answer
227 views

how to use expect with bash

I Have created a shell script as given below.This script will login to a remote server as a normal user then switch to root user for creating a directory.The script is as given below. ssh -t ...
6
votes
1answer
972 views

VLC “:rate=2.0” - Where do I put this in command-line?

I figured out a way to transcode my videos so that they would play at double speed using the GUI as "Convert/Stream" --> "Show More options" and adding ":rate=2.0" after ":file-caching=300" in the ...
1
vote
1answer
216 views

Can I write a python script that will automatically load a terminal as sudo?

I use sudo a lot and I am constantly having to restart my terminal (development of programs that froze usually) and it's a pain in the butt to constantly put in the sudo command and then my password. ...
1
vote
1answer
2k views

How to open Firefox with proxy settings via terminal? [duplicate]

Hi, I want to open Firefox from the terminal with SOCKS proxy setting enabled. I would like to define it in terminal while opening. Can this be done? and obviously if it can does anyone know how? ...
-1
votes
1answer
195 views

Script to run sets of commands

I would like to run fdisk and automatically do a particular command, like p (print) installation.sh: fdisk /dev/sdc1 I don't know how to give the process input to the programm.
26
votes
2answers
3k views

Why does ls -l output a different size from ls -s?

I can't figure out why I'm getting the following results: ls -l tells me the size of a given file (HISTORY) is "581944": $ ls -l HISTORY -rw-rw-r-- 1 waldir waldir 581944 Feb 22 10:59 HISTORY ls ...
0
votes
0answers
30 views

Why does sudo cd occasionally return command not found [duplicate]

When exploring my disk drive contents I noticed that from / cd root failed as did sudo cd root; the only way I was able to view the contents was sudo su, then cd root Pete$ pwd / Pete$ cd root bash: ...
0
votes
1answer
150 views

Admin to root privileges

I'm trying to put up a CS:S(srcds) server, but when I use the given instructions, the terminal says that I don't have the permission to change it. My account is an admin account right now. Can I give ...
0
votes
1answer
270 views

Getting configure command of php

I am using an ubutnu OS, I have installed LAMP stack using "tasksel", I am not able to find the "Configure Command" while I am going through phpinfo. But , in the same OS I am able to see the ...
4
votes
2answers
296 views

Terminal-specific font settings

Since sharp fonts are better for my eyes, I use the MS fonts with full hinting and no anti-aliasing, system wide. It works great for all applications, but the terminal. I've found no fixed-width font ...
29
votes
2answers
685 views

What is the reason for using && instead of ; to place to commands on the same line?

Not being an expert in either Linux not Unix I'm wondering what the difference between these 2 method of stringing 2 commands on the same line? I see no difference in output in this simplistic example ...
0
votes
3answers
292 views

How to grant apt-get permissions required to install software?

I am new to Linux, can anyone be kind enough to help me know how to install software from the terminal? I tried to install java by entering the command in the terminal sudo apt-get install ...
20
votes
2answers
3k views

Bash: delete from cursor till end of line with a keyboard shortcut

Consider the following bash prompt, where ^ denotes the prompt location: # git commit -am "[bug 123456] Do this and that with the bug" ^ Suppose that I want to commit ...
2
votes
2answers
180 views

Which bash shortcuts/tips are available? [closed]

Depending on his type of usage, an Ubuntu user may spend a lot of time in front of a terminal. Knowing some keyboard shortcuts can make you save a lot of time (ex: copy/paste text, move between the ...
1
vote
1answer
178 views

How to make Ubuntu Server fit into a VMware window?

I installed Ubuntu Server edition in VMware 7.0.1. I am using latest version of Ubuntu. Ubuntu is not filling into complete VMware window. How can I fix this?
0
votes
1answer
129 views

dell studio slim 540 not installing ubuntu 12.10

i offered to install ubuntu on my uncles computer because windows is failing,the computer has the specs of a intel 2 quad processor,15 gigs of ram and 1 terabyte of hdd,i loaded the OS through ...
3
votes
2answers
479 views

How do I run a py file with pico in the terminal?

I got this when I tried to open a .py file on the terminal line I edited in pico: lightning@rigel5:~$ ./hello.py bash: ./hello.py: Permission denied How can I easily open a .py file from the pico ...
2
votes
4answers
462 views

how to move specific files based on their extensions

I want a command that allows to select specific files based on their extensions to move them to another directory.
2
votes
2answers
2k views

Why I can't delete a folder?

Could not remove the folder [Folder name]. Show more details Error removing file: Directory not empty Cancel-Skip All-Skip I tried to delete these folders from terminal with: rm -r
1
vote
2answers
300 views

How to automate ethtool?

I tried Lubuntu on my desktop beside Windows XP. I really love it except for the following problem: I have a LAN broadband internet connection which flawlessly works in XP, but not in Lubuntu. Each ...
1
vote
1answer
1k views

How can I get guake to start?

When I try to start guake it fails and I get the following error message: Traceback (most recent call last): File "/usr/bin/guake", line 1422, in <module> if not main(): File ...
1
vote
2answers
385 views

How can I open the present working directory (pwd) in Nautilus from the terminal? [duplicate]

How can I open a directory which I am currently working on from terminal in nautilus file manager?
1
vote
1answer
187 views

Graphics Driver for Ubuntu 12.10

Hello I am new to Ubuntu and I am having problems locating the graphics driver to install. I have a Pentium 4 HT 3.2 dual core, I tried the command jockey-kde but found out that is for an AMD 64 ...
0
votes
0answers
55 views

I screwed up my terminal

I managed to make it so that my 'c' and 'v' keys work as copy and paste in the terminal rather then being able to just type them so i cant write certain commands. I screwed up and don't know the exact ...
0
votes
1answer
2k views

Ubuntu Server 12.10 not obtaining IP address until a user logs in

I just did a recent install of Ubuntu Server 12.10 (no GUI, command line only) on a new system. I noticed that upon booting the server does not obtain an IP address from my router. However, once I ...
1
vote
1answer
129 views

How to issue organize desktop command from the shell

I usually interact with the shell, but I prefer to have the items on the desktop organized. Is there a command or a scripting interface to organize the desktop?
14
votes
2answers
724 views

How to make username in terminal smaller?

When you open a terminal it displays the username and the machine name. As an example mine shows: romeo@romeo-Satellite-C660D:~$. It's really annoying because it's kinda big. Can i make this smaller. ...
3
votes
1answer
154 views

C and V keys not working..Help!

I am using Ubuntu 12.04. I was tinkering around learning the commands and stuff in terminal. I was a bit irritated that I couldn't copy and paste using only the keyboard. So I googled on how to add ...
5
votes
1answer
833 views

Cannot delete file from /home by rm command

I cannot delete a file in my /home folder. Terminal output give me the message: ~$ rm /home/goldap/Загрузки/Put Don Kihota (1934) bash: ошибка синтаксиса около неожиданной лексемы '(' Roughly ...
4
votes
2answers
156 views

Program in $PATH not being found

I am running xubuntu 12.1, and am having some difficulty getting a program I have added to my path to execute. The program I am attempting to execute is scan-view, from Clang. I built Clang from ...
2
votes
1answer
118 views

How to create a shell script to transfer file from a CD to documents? [duplicate]

I want to transfer the folder from a CD to Documents in Ubuntu. How should i code it in shell? the folder name in the cd is CompFiles.
0
votes
1answer
623 views

How to install fwbuilder on Ubuntu 12.04?

I'm trying install fwbuilder, but i get error that told me: Summary: Running as user : root Firewall name : mti Installer uses user name : fwadmin Management address : 192.168.1.6 Platform : ...
1
vote
2answers
1k views

Cannot compile java code [Unicode Byte Order Mark 65279]

I wrote a simple Java program with the gedit text editor. public class Example{ public static void main (String args []) { System.out.println("hi yaar"); } } When I tried to ...
1
vote
2answers
1k views

how to save sudo vim /sbin/chkconfig

I am following the steps of oracle installation in this site http://meandmyubuntulinux.blogspot.ca/2012/05/installing-oracle-11g-r2-express.html. I don't know how to save the file. Typing a command ...
1
vote
1answer
70 views

Ubuntu 12.10 Python 2 HOW TO SWITCH FROM 'C>' to '>>>' in Terminal

Im using python in the terminal and I switched from >>> to C> doing a demo. the problem being is Im not told how to switch from 'C>' back to '>>>'. I dont want to just close the terminal and 'kill' ...
2
votes
1answer
97 views

How to find the real size of a file partially downloaded from a Torrent client, using the terminal?

A certain program I'm developing, requires to be fed with some file sizes on the disk, in order to work.. I'm using the stat command in Terminal to achieve this.. However, stat can't calculate the ...
4
votes
2answers
538 views

Generate a list of available commands and what each does

Does a Linux command set with descriptions exist on the net? I have a list of commands i obtained by using alt! with 1947 commands listed. I put these into a file but I am having to write what each ...
0
votes
2answers
419 views

Fix bash_profile to Develop Ruby on Rails Apps

I just installed Ruby and Rails stuff on my machine, and start to learn. But every time I close the Terminal and re-open it, I have to re-type the command . ~/.bash_profile in order to run Rails ...
5
votes
2answers
123 views

Why are my bash script's arguments causing an error?

In order to make uploading the code to github easily, I created a sh script #commit.sh git add . git commit -m $1 git push origin master But when I run it by saying ./commit.sh "comment1 comment2 ...
0
votes
1answer
211 views

Command line FTP download latest files

I am trying to use the command line ftp to download files from a specific date and onwards. Is there a simple solution for this? Thank you!
5
votes
3answers
6k views

How to exclude/ignore hidden files and directories in a wildcard-embedded “find” search?

Starting from (notice the wildcards before and after "some text") find . -type f -name '*some text*' how can one exclude/ignore all hidden files and directories? I've already been googling for far ...
1
vote
1answer
108 views

Problem when changing permissions of a folder in a NTFS filesystem

While trying to make a DAAP server work, with tangerine, I realized that my music library doesn't has read permissions for all users, but has all the permissions for the owner and the group (tangerine ...
0
votes
2answers
1k views

'make install' problem [duplicate]

I am new to ubuntu. So I tired to install a software by typing the 'make install'. this error is occurred. Please help me. cd src && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H ...
1
vote
0answers
174 views

Continue script in terminal after pkill fullscreen program

I'm running a fullscreen program and i'm using pkill to close it by a keyboard shortcut. Killing the program works but my kill script also contains some other code. The rest of the script isn't being ...
0
votes
1answer
53 views

A command to call a terminal (not a hotkey)

In krusader there is a command "konsole" to call a konsole application. But what if I want to call the standard terminal, how can I do this?
1
vote
1answer
203 views

Bluetooth DUN Connect with the command line?

I use my mobile (Samsung Corby GT-S3653) to connect to the internet and my mobile network gets automatically disconnected periodically when I'm using it for GPRS so I always have to click that ...
8
votes
4answers
12k views

How to open a folder (with GUI) from terminal?

I want to place a link/shortcut/launcher in my unity panel (ubuntu 12.10). I followed this tutorial on handytutorial.com to create a custom launcher and drag it to the panel. I just need to know ...
1
vote
2answers
119 views

How can I find the package name of the program I want to install? [duplicate]

How does one discover which command to run to install a piece of software? For example, if I wanted to know the command to run to install VirtualBox, how do I know that I should run sudo apt-get ...
4
votes
3answers
109 views

How to find an application's command, graphically or otherwise?

I often find that I need to figure out the command to execute a certain application, such as an Alarm Clock application or the System Monitor. However, many of the actual CLI commands to run these are ...
3
votes
2answers
1k views

How can I shorten the bash prompt's current path to one letter per directory?

I can't remember where, but I've already seen the bash prompt's current path shortened in an interesting way: every directory contained in the path is replaced by its first letter only. For instance: ...