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

learn more… | top users | synonyms (5)

1
vote
2answers
2k 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
77 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
164 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
576 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
538 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
165 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
268 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!
14
votes
3answers
15k 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
122 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
2k 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
188 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
60 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
271 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 ...
15
votes
4answers
25k 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
147 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
122 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 ...
4
votes
3answers
2k 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: ...
1
vote
1answer
68 views

mount an [IPADDRESS]/dir on 12.04 in terminal

This is probably a super simple question, but googles failing me. In windows, I can map a network drive, and point it to "\10.10.0.28\sample_folder" and it works just fine. On my Ubuntu machine, I ...
1
vote
3answers
5k views

How do I run a .JAR file via the terminal

Mispelled classname in manifest.txt file caused this error Im trying to run a java file outside of my IDE by exporting the .jar file to my documents folder and trying to display the text 'hello ...
0
votes
1answer
481 views

Bash command: ls -lah not showing /etc directory?

Ok guys, elementary question. I was poking around my server, and I noticed that when I 'ls' the / directory, /etc folder is not displayed. Why is that? I can very easily cd into it, but why is it ...
0
votes
1answer
636 views

Permission denied from avgscan and when copying to folder from OS X

Two questions: (1) I've just installed Ubuntu 10.04.2 on my Mac Pro and I've also installed clam and avg virus apps. When I scan my home folder clamscan works fine but with avgscan ~/ I get ...
6
votes
2answers
97 views

Using last part of command for next command

When using the command I know a friend of mine who used to re-use last part of previous command. He unfortunately moved far away and I can't get hold of him. First: cp -r folder ~/folder Then he ...
2
votes
1answer
227 views

How do i log in to a specific gmail account in incognito mode using command line?

How do i log in to a specific gmail account in incognito mode using command line?, i want to put that on startup, thats why.
0
votes
1answer
116 views

grant command syntax error near password in shell script

I am stuck with an issue with shell scripting. I have already used \ character before double quotes (") because of some reason, as in the following line of my shell script. sql2=\"grant all on ...
0
votes
1answer
389 views

Running binary from shell script creates core?

I am facing an issue when I am running my executable(binary program) from the shell, Its running fine. But when i run that executable from shell script then that executable creates core dump. For ...
1
vote
2answers
731 views

X11 forwarding issue Ubuntu 12.10 from AIX

Using ubuntu 12.10 and have putty installed, I am using ssh /putty to connect an AIX system once I do that I export the display and run something simple like 'xclock' or 'xterm' Problem is its not ...
2
votes
0answers
157 views

Why is Cinnamon blocking function keys? F1-12 aren't getting to the terminal

I map the function keys in vim to modify a ton of stuff, from syntax line numbering to autoindenting to changing the tab width and syntax highlighting. Unity was a major problem here because if I ...
22
votes
5answers
7k views

Switch command output language from native language to english

How can I switch the command output language from my native language to English, so I can post my Ask Ubuntu question with English command output (error messages)?
13
votes
3answers
2k views

How to open an application in terminal and detach it? [duplicate]

I opened Cairo-dock in my terminal with: open cairo-dock and that worked but if I close the terminal it goes with it. How can I keep it open regardless of the terminal?
0
votes
1answer
3k views

Configure Wireless Network 12.10 Command Line

Okay, so I've recently set up a server with Ubuntu Server 12.10 to run as a headless server. When I ran the OS installer/setup it gave me an option to immediately connect to a wireless network (this ...
1
vote
1answer
151 views

Control of terminal

I am relatively new to Ubuntu and especially to using terminal commands. I love the system and regret not having discovered it years ago. In playing around with it and tweaking my system (Ubuntu ...
0
votes
1answer
265 views

Just installed Ubuntu on my Nexus 10… how do I get to a bash terminal?

I just installed the Touch preview on my Nexus 10. It is not at all what I expected. I thought it would be just like my desktop; I'm not at all interested in the "experience"... all I want is a bash ...
2
votes
1answer
178 views

Delete lines starting with pattern from a file

I tried several commands: tr, sed but to no avail. Here's the file: > ... > ... > setEPS() > postscript('images/boxplot_default.eps') > ... > ... I want to delete those two ...
5
votes
4answers
10k views

what does adding sh do?

I'm really new to using terminal and I've been following guide blindly without knowing why is that there and what does it do..though this guides help me in installing the vmware player. this one ...
1
vote
1answer
441 views

Gnome terminal is not working properly

I'm new to Ubuntu 12.04 LTS. My problem is described below. My terminal prompt is the $ sign only. It's not showing like kaushik-kaushik-pc -$. My second problem is that when I try to become the ...
2
votes
1answer
85 views

Fail to log in Ubuntu for deleting my home folder

I moved my home folder("huangzhiwu") to /usr/share carelessly. Then after i noticed that ,i make a new folder named huangzhiwu in /home ,and moved all files from /usr/share/huangzhiwu to the new home ...
0
votes
1answer
4k views

get back command prompt after opening programs from terminal

When I launch any application from terminal, then the terminal gets locked until I close that application. What I want is just to use terminal for launching programs and then use the same terminal for ...
5
votes
3answers
11k views

what is the right way to shutdown ubuntu using the command line? [duplicate]

I know that there are several commands that shutdown an Ubuntu computer. I was just wondering if there is a right one to use and what the implications are for using the other ones; or what the various ...
2
votes
1answer
6k views

Move files from one folder to another with same name

I'm new to linux, especially for ubuntu server and it's terminal.... I have such file structure: -im | |-t1 |-1.jpg |-t2 |-2.jpg |-second |-t1 |-3.jpg |-t2 |-4.jpg How ...
10
votes
2answers
2k views

How do I get passwords from the keyring in the terminal for usage in scripts?

When you have a LUKS encrypted drive in your computer, Nautilus or Nemo will show it under Devices as a drive with a little lock on it. When you click it, you need to enter a password. If you choose ...
6
votes
2answers
6k views

How do I change the current working directory to the Downloads directory?

How do I change directories to downloads, from the home folder, in the latest version Ubuntu 12.10? I tried cd /downloads, but it gave an error saying that there is no such directory.
0
votes
1answer
174 views

Refresh Unity UI Time By Command Line

I have a Ubuntu 12.04 desktop virtual machine ran by VMWare and having some issue with the GUI clock/time what ever it is called. The thing in the right corner showing the time. When I put the laptop ...
0
votes
1answer
37 views

How to separate a given type of file from others?

I have a folder containing about 6000 .pdf, .jpg, .doc and .djvu files out of which I want to separate all the .djvu files and move them to another new folder. I was wondering if there is a quicker ...
3
votes
1answer
159 views

Gracefully close appications on shutdown

How to automatically close an application on shutdown (graceful close, not kill)? I try to call wmctrl -c "App" in powerbtn.sh, but it does not work. The same wmctrl command works perfectly when ...
4
votes
2answers
258 views

Developing GUI application for CLI Ubuntu Server

I need to be able to render my own GUI to the screen, but I'm not really sure how to do this considering I'm in a CLI environment. I don't want to install Ubuntu-desktop or anything, I don't need an ...
44
votes
16answers
114k views

How do I open a text file in my terminal?

There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor) How do I do that ?
1
vote
0answers
31 views

Bash Script to set “system wide” proxy settings [duplicate]

I am wondering if there is a command (or series of commands) that would do the same thing as network-network proxy-apply system wide. I believe I can export a variable, but I think that that button ...
1
vote
0answers
29 views

Unable to locate package bitcoin [duplicate]

I have added the official ppa:bitcoin/bitcoin to my software sources and have done sudo apt-get update, but every time I try sudo apt-get install bitcoin this error pops up.: E: Unable to locate ...
5
votes
1answer
17k views

Unable to unzip file

trying to unzip a file so im trying the following command Sorry im really quite new to linux btw this is Ubuntu server latest release. user@serverubuntu:~/minecraft/server$ ls rtk.zip ...
2
votes
1answer
640 views

How to find and download a image file of specific resolution using wget?

How can I find and download an image file of specific resolution e.g.: 100x99 whose file name is not known using wget? Thanks in advance.