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

learn more… | top users | synonyms (6)

2
votes
2answers
453 views

How to convert multiple files to png (instead of one) in Thunar custom actions?

I have added convert %f %f.png to Thunar's custom actions to convert a selected image to png. What would be the command that can be added in the same way that would allow selecting multiple files or ...
3
votes
2answers
1k views

How to convert flv file(s) to mp3 from PCManFM's (Open with) context menu?

Opening a terminal in a folder that contains a flv file called "one" (one.flv) and running this command: ffmpeg -i one.flv one.mp3 the flv file is converted to mp3 with the same name and in the same ...
2
votes
2answers
970 views

How to list available space excluding mount points in home directories?

I ran df -lP which gave me the following output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 7.6G 2.2G 5.1G 30% / varrun 506M 108K 506M 1% ...
0
votes
2answers
260 views

What are the corresponding commands in Ubuntu?

This link: https://community.openvpn.net/openvpn/wiki/BuildingOpenVPN-GUI provides the following instructions: $ autoreconf -v $ ./configure --with-crypto-includes=/c/openssl/include ...
0
votes
1answer
705 views

Mac - Install from USB - Permission denied

I'm following the official instructions for burning an Ubuntu image on a USB stick from a macbook pro. Step 8 when trying $ sudo dd if=/path/to/downloaded.img of=/dev/rdisk1 bs=1m I'm getting ...
7
votes
5answers
15k views

How can I create a directory and change my working directory to the new directory?

I'm seeking a way to create directory and change my present working directory to newly created directory just by using a single command. How can I do this? i.e Instead of doing user@Computer:~$ ...
16
votes
3answers
19k views

Prepend current git branch in terminal

How can I configure the terminal to display the current git branch? I'd like to see the second line rather than the first: andy@bob:~/my_projects/project_x$ (master)~/my_projects/project_x$ I ...
5
votes
1answer
237 views

how to color each new command in terminal?

As I am running commands in the terminal, some times when the resulted log is larg, I get lost looking for the command line it self. And some times when I need to distinguish between logs of the ...
6
votes
2answers
168 views

executing a .sh and ending in a different directory

I know there is a simple command for this, but I'm trying to run a file.sh, which contains lines like: mkdir $filename cd $filename the file executes, but ends in the file i began in. I know there ...
0
votes
1answer
5k views

Terminal command script launcher

I am trying to create a desktop shortcut or script that will automate terminal command input for me to open a program. cd /Downloads cd /GrooveNet-master cd /project cd /bin ./groovenet Once ...
3
votes
1answer
169 views

Bash - Get Sudoer Username?

Say I have the following bash script: #!/bin/bash echo $( whoami ) This is what it outputs with and without sudo: alix@netbook:~$ ./test.sh alix alix@netbook:~$ sudo ./test.sh root The script ...
2
votes
2answers
2k views

How can I prevent X windows from running when I boot Ubuntu 12.10?

Hi I want to boot Ubuntu quantal to a command prompt always and then use startx to launch x-windows if required. I have used the following methods but none work correctly. update-rc.d -f lightdm ...
1
vote
1answer
2k views

Having trouble running android sdk tool on 12.10

When I try to run the Android SDK Manager from the command line it doesn't open. Keeps giving me command not found or permission denied message like so. ...
0
votes
1answer
519 views

What happen when 'unable to resolve host' still exist on terminal?

After editing etc/hosts and hostname, 'unable to resolve host' still exist on my terminal, I still don't know what is the cause. Although my computer and my terminal runs so well. I'm only using ...
20
votes
1answer
25k views

Why is /etc/profile not invoked for non-login shells?

Login and non-login shell defined as: su - $USER # will give you a login shell bash # will give you a non-login shell /etc/profile is not invoked for non-login shells, such as when you start ...
1
vote
2answers
1k views

What is hexdump command, and what does it do without parameters?

I ran hexdump command without parameter and my ubuntu machine froze... What did I do? What does this command do without parameter? And what is it useful for?
8
votes
1answer
716 views

How can I change the keyboard shortcuts for single line scrolling in the terminal?

To scroll a single line in gnome-terminal you have to press Ctrl-Shift-↑ or Ctrl-Shift-↓ in Ubuntu. In other distributions (e.g. Xubuntu) you only have to press Shift-↑ or Shift-↓ for the same ...
3
votes
2answers
194 views

What does this info mean when I fire `dpkg -l lxpanel`?

When trying to see the version of LXPanel and fire dpkg -l lxpanel, I get ~$ dpkg -l lxpanel Desired=Unknown/Install/Remove/Purge/Hold | ...
19
votes
1answer
1k views

Why use env in shebang?

What is the purpose of using #!/usr/bin/env <sh|bash|python> shebang compared to #!/bin/bash, #!/bin/sh or #!/usr/bin/python?
1
vote
3answers
247 views

How to view similar commands in terminal?

OS version: Ubuntu 12.04 I wrote veditor in my terminal and got the following message: No command 'veditor' found, but there are 39 similar ones My question is how can I view those 39 similar ...
19
votes
5answers
21k views

'Insufficient permissions' error on `adb push` command on 12.04

When I tried to push my apk file into a tablet, I got this error, please help me out. adb server is out of date. killing... * daemon started successfully * error: insufficient permissions for ...
85
votes
6answers
90k views

Jpeg files to pdf

I have many jpeg files in a directory, and I want to convert them to pdf and concatenate them together to make a document. How can it be done? I'd prefer the command line, as it will be faster.
9
votes
1answer
8k views

`shutdown -r now` command completely shutting down instead of restarting

Hi we've just installed Ubuntu 12.04 LTS onto a new server. It's on a SuperMicro X9SCA-f Motherboard . Now we're aiming to locate this in a remote server room - however when we execute a shutdown -r ...
3
votes
2answers
133 views

Terminal: Jump to directory found with find

This seems like an obvious question to me but I can't find the answer... Presume I want to find a certain txt-file in my project and in Terminal I type: find -name test.txt As result I might get ...
1
vote
0answers
74 views

How to create a script that would execute a command at double-click? [duplicate]

Possible Duplicate: How to make a script that opens a terminals and execute commands in them I want to know how to create a script that I could put on the desktop and execute on ...
0
votes
1answer
660 views

Ubuntu 12.04 error command not found

I have installed Ubuntu 12.04 Desktop LTS on three Intel systems. All the three PCs are using the same kernel version (3.2.0-29-generic-pae). But I have a problem that when I compile and build my ...
5
votes
4answers
12k views

How to list text files without a .txt file extension?

For example, how can I replicate: ls *.txt when my text files are missing the .txt ending, and as far as extensions go appear the same as many other types of file? Alternatively, is it possible to ...
5
votes
5answers
45k views

How to setup a static IP for network-manager in Virtual Box on Ubuntu Server

Hi there is anyone familiar with the non-gui version of ubuntus network Manager? I'd like to set up a static IP with it in virtualbox without touching the file /etc/network/interfaces. IP: ...
2
votes
1answer
321 views

Terminal (Ctrl+alt+F1-6) text colour

Is it possible to change the default foreground text coulour in the F1-F6 Terminals or the machines bios colour? I Love Green on Black and change it in the konsole/uxterm/Term etc as soon as I install ...
2
votes
2answers
106 views

Write numbers to multiple files

I want to write the numbers 1-10 to two different files. I guess I should use the for loop to both print to the files and count from 1 to 10 as it loops but I don't know how.
0
votes
2answers
1k views

How to install the new version of “PokerTH” game via terminal?

I was trying to install "PokerTH" with Ubuntu software center but it installed an older version of the game. When I ran the game it told me that I must install the newest version of game to play ...
0
votes
1answer
78 views

Coloring the terminal prompt text issue

I've learned a neat trick in school to make your terminal prompt text look more pretty, eg. export PS1="(\h) \u \w " gives me (brendt-ubuntu) brendt ~ The issue happens when I try to ...
11
votes
2answers
453 views

What does “$$” mean in the shell?

What does the output of the command below mean? (result is positive integer) echo $$
0
votes
1answer
636 views

How to download specific images from a site index with wget?

Let's suppose that I have access to a site index and in a specific directory of this index I have a lot of images, but some of those images were resized (the originals are still there). The resized ...
1
vote
1answer
390 views

XIki Command Not Found

I have been working tirelessly to "try" and get xiki A shell console with GUI features to work on my 12.04 system to no avail. I installed it through Ruby Version Manager and it installed well "I ...
1
vote
1answer
102 views

How do I use the find command to effectively recurse when the pattern contains a wildcard?

I was under the impression that the following command will search for, and list all Java files starting from the current directory and recursing down. However, if I have a Java file in the root of my ...
1
vote
0answers
141 views

Recommend way to setup a terminal program to run in the background on boot?

I'm running Ubuntu 11.10 Server edition. Currently I boot up the server, log in, run the application "screen", run an existing terminal program to do some work, and then use screen to lock the ...
1
vote
1answer
333 views

The limits is restored to the defaults after I reboot

I want to remove "memorylocked" and "maxproc" limits. I am using tcsh shell. I read that if I use "#limit memorylocked unlimited" and "#limit maxproc unlimited" then they will be set to unlimited. I ...
0
votes
0answers
38 views

Can't key in password in Terminal [duplicate]

Possible Duplicate: Nothing shows up on the screen when I type my password I typed in the following command in terminal. "sudo apt-get install ubuntu-restricted-extras" I press enter and I ...
4
votes
2answers
6k views

How do I install Chrome on a server?

I'm a complete newbie to Ubuntu Server and am looking for a web browser which I am learning to use as it is a requirement of the course I'm doing. It's been many a year since I've spent any time ...
5
votes
2answers
854 views

Working directory when running command

I've got an executable, let's call it exec. It lives in a directory, for the sake of argument called dir. Let's say it's at the filesystem root. I can run this executable by doing cd /dir ./exec ...
5
votes
3answers
941 views

How can I use code or a script to lock my screen programmatically in Lubuntu?

I want to write code or a script to lock the PC when my C++ program receives a specific command from Ethernet. Is there any way to show the Login screen from the command line? I want to lock the ...
3
votes
2answers
11k views

Open file from terminal in specific application

I use xdg-open a lot in the terminal; this opens a file in the default application. However, sometimes I'd like to open a file in a different (non-default) application. Is there a way to achieve this ...
13
votes
2answers
10k views

How do I manually install a man page?

How do I install a man page file system-wide? For example, if I have a man page file examplecommand.1, how do I install it so that I can just type man examplecommand to view it?
3
votes
2answers
393 views

How do I install the manpage from node.js' source tarball?

I have downloaded node.js tarball from its website, and now I would like install the manpage that comes with it so that I can view it by typing: man nodejs How can I do this?
19
votes
3answers
7k views

Is this command to remove old kernels safe to use?

While browsing the internet for Ubuntu articles, I came across this command: sudo dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ...
1
vote
3answers
3k views

Unity bar and Menu bar Gone [duplicate]

I have a bootable usb stick that has Ubuntu 12.10 on it, so I loaded it onto my computer which is semi old because it was really full and ubuntu is nice software when it works. And all went well until ...
0
votes
1answer
193 views

On Ubuntu Server 12.04, how do I make a shell script that replaces underscores with spaces recursively?

So far I have: for file in *\_* do file_clean="${file//_/ }" mv --verbose "$file" "$file_clean" done However, it only renames files in the root directory of the folder. How do I make it rename the ...
0
votes
1answer
974 views

Terminal python _tkinter

I asked this question on how to get python to work in my Ubuntu Terminal. After trying python file.pyw. I was then given this error in the terminal: importerror: no module named _tkinter, please ...
2
votes
2answers
1k views

`Compiz` profile settings export and import using command line

How can i export and import Compiz current profile settings using Command line. I'm using ubuntu 12.10. Or can i get a script for doing export and import.