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

learn more… | top users | synonyms (6)

1
vote
2answers
313 views

Deleted /bin instead of /android-project/bin

An android project has its /bin directory and what I wanted to do is to deleted this. What I actually mean is delete /path/to/android-project/bin not the /bin directory. So I executed this command, ...
5
votes
2answers
4k views

Why is setting alias in .profile not working?

I have this as the last line in my .profile: alias gl="cd /home/jrenner/glances/glances" yet even after reboot I get command not found when typing gl. What is happening? I am logged in as the ...
2
votes
1answer
523 views

Lost PATH variable content

I was trying to add something to the PATH with : export PATH=/user/home/sbt/bin but I removed all of the content of PATH and I can not run any command on the terminal even ls ! So what should I do ...
3
votes
2answers
8k views

How to optimize whole folder with jpegtran?

back in Windows I would use jpegtran program to process all of the images in a folder. However, there doesn't seem to be an application in Ubuntu with UI for performing the same task. Obviously, I ...
3
votes
2answers
829 views

Why isn't ubuntu checking the correct directory in the $PATH variable?

I'm trying to run a program redis-cli $ ls -lh /usr/local/bin/ | grep redis -rwxr-xr-x 1 root root 4.2M Mar 24 19:49 redis-cli -rwxr-xr-x 1 root root 5.6M Mar 24 19:49 redis-server $ echo $PATH ...
49
votes
2answers
50k views

How to resize an image through the terminal?

I have Ubuntu 10.04. I have converted image through terminal using the following command: convert myfigure.png myfigure.jpg. But I want to resize the height and width of the converted image. Is ...
1
vote
2answers
265 views

Accidentally ran command, now don't know what to do

Accidentally ran command sudo chmod -R o+x /home on my Ubuntu 12.10. Now what me to do? is that dangerous? I have no backup of partition, so I think this command is not reversible. SO me to ...
0
votes
1answer
1k views

access to usr/local/bin

My question is this. I have a jar file that I want to be able to run from command line with a simple command. So in my ~/.bashrc file I created an alias like so: alias selenium='java -jar ...
5
votes
1answer
4k views

grep list each file once

I'm looking some text in files , but three are a lot of files and searched text appears several times in one file, how can I receive a list of files that contains searched text with every file listed ...
0
votes
2answers
317 views

How do I update Intel e1000 driver? Server reverts to old driver on reboot

I have a kvm server and I'm trying to update my Intel e1000 drivers. I can install the new drivers using the following code make clean make make install modprobe -rv e1000 modprobe e1000 ...
5
votes
2answers
3k views

What does this command mean ls -l test.conf -rw-r--r— l root root?

root@ubuntu:/etc/openvpn# ls -l test.conf -rw-r--r-- l root root 791 Mar 20 09:23 test.conf What does the above command mean?
1
vote
1answer
260 views

Removing a file extension upon copying

I have a question which is super simple, but I just can't wrap my head around it. Regarding the following command line: for foo in *.dist; do cp $foo `basename $foo .dist`; done I know it takes all ...
2
votes
0answers
167 views

How to display Kanji in non-X terminal?

I have Ubuntu 12.04 Desktop installed, but disabled the start of X, because I do > 99 % of my work in a terminal. However, I have found out that the "Linux" terminal is unable to display Kanji. I have ...
19
votes
4answers
3k views

CLI mounting vs. GUI mounting

On Ubuntu 12.10, when I want to mount a hard drive, I can just click on the unmounted drive and everything works fine (by mounting to /media/username/partitionlabel). Basically, I would like to do ...
1
vote
1answer
3k views

How to delete nomodeset from my grub file in order to boot normally?

How can I delete the option nomodeset in /etc/default/grub? Or, more precisely, how can I access a command line in order to delete the option? I have set it in my grub file trying to debug this bug. ...
0
votes
1answer
155 views

Dead keyboard when entering password [duplicate]

I lost all icon from my desktop. When I use the terminal I am able to enter the commands but the keyboard goes dead when ask for my password. The only key that works is the enter key and after 3 ...
1
vote
1answer
430 views

POV-Ray - Ubuntu 12.04 file not found

I have installed POV-Ray on my Ubuntu 12.04 LTS box by following fossfreedom's post. It worked fine the first time when I ran the command ~$ povray +Ipovpawn.pov but now I get 0:00:00 Parsing ...
2
votes
3answers
8k views

How to crop a multi-page (image/scanned) pdf file (which won't crop with pdfcrop)?

Usually, I'm pretty happy using pdfcrop, even though the cropped output usually consumes significantly more disk space. Note that comparable code does exist, which addresses and resolves this issue. ...
11
votes
2answers
5k views

How can I create a new profile for Gnome terminal via command line?

As everybody knows you can create a new profile by the menu where you get asked which existing profile should be the parent for your new profile and so on. But how should I create a new profile by the ...
10
votes
3answers
15k views

How to run Ubuntu without GUI in Virtual Box?

I have a Windows XP laptop, in which I run VirtualBox with the latest Ubuntu, my hardware is little old, so running the latest version of Ubuntu inside Virtual box is kind of a hassle, very slow ...
0
votes
2answers
1k views

Commands in script do not run, but in terminal they do

My script is as follows: #!/bin/sh rm -rfv /home/user/Documents/Exercise/* cp -rfv /home/user/Documents/ExerciseShare/ExerciseFiles/Word/Advanced/ /home/tp3/Documents/Exercise/ If i was to run ...
7
votes
1answer
892 views

Show files being accessed most in a short time period

So I've got a server that's struggling under the weight of several Wordpress installs. Things are relatively well cached (I am planning to improve things anyway) but I can quickly see that disk IO is ...
11
votes
1answer
18k views

How to run a command at login? [duplicate]

I need to run the following command (with real parameters) after login: ssh -f user@example.com -L 54321:example.com:54321 -N I need it only for my user, not all users on the machine. Also, I need ...
4
votes
1answer
2k views

Can you run command line tools on Ubuntu Touch?

Is there a way to run command line tools on Ubuntu Touch? Could I run things like vim, gcc, ssh in a terminal app? Or is touch completely disjoint from the normal Linux world, and can it only run ...
2
votes
2answers
306 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 ...
7
votes
1answer
2k 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 "Edit ...
2
votes
1answer
406 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
8k 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
202 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.
30
votes
2answers
10k 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
31 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
266 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
736 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 ...
5
votes
2answers
524 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 ...
30
votes
2answers
706 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
2answers
584 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 ...
47
votes
2answers
13k 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
198 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
329 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
240 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
1k 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
3k 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.
5
votes
6answers
19k 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
2k 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
4k 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 ...
2
votes
2answers
1k 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
202 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
1answer
3k 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
466 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
3answers
1k views

How to make username in terminal smaller?

When you opens 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, ...