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

learn more… | top users | synonyms (5)

1
vote
1answer
85 views

How does Linux know how to execute shell vs machine code?

./something How does Linux know how to execute this if it's a shell script, or compiled machine code? I understand how the shebang works, but there doesn't seem to be anything like that here.
0
votes
1answer
79 views

Unable to access terminal

I've loaded ubuntu 12.04 LTS onto my Dell XPS 1530 (Vista) laptop, but am having serious issues. I can run ubuntu fine when testing it from the DVD, but after installation it says I must restart to ...
2
votes
1answer
372 views

Why I am getting this “cannot remove” line in terminal?

I use Terminal a lot. And just recently noticed this line popping in right after I stop being root (after i type exit). /bin/rm: cannot remove `/run/user/root/gvfs': Is a directory Why/What is ...
0
votes
0answers
136 views

How do I remove Dotdeb version of PHP and replace it with official Ubuntu repo

I'm a UBUNTU and CLI Noob. I'm running UBUNT 12.04 LTS I'm trying to get CURL to work for my PHP install and come to find out that PHPCURL does not work with the Dotdeb version of PHP that installed ...
1
vote
2answers
156 views

Ubuntu Failes to Recognize Java

I've been having an issue with Java since I installed Ubuntu and it has been the main reason I have stopped playing certain Java-based games such as Minecraft. You see, although I've downloaded ...
2
votes
1answer
1k views

How can I make a symbolic link to run a program with command line argument?

How can I make a symbolic link to run a program with command line argument? For example, I want to run sample with -i eth0 argument every time when I click on a symbol link.
0
votes
1answer
109 views

Customize xdg-open to open home page without URL

Is it possible to somehow use the xdg-open command to open my home page (google.com) without having to type the url. What i mean to say is, can i customize xdg-open http://www.google.com to ...
0
votes
1answer
193 views

How to fix the command-not-found databases?

My recently installed Ubuntu system is currently having issues with the command-not-found hook: josh@sirius:~$ invalid-command Unable to open binary database ...
0
votes
1answer
328 views

Ubuntu Java Issue

SORRY for the really long question ( I didn't want to miss any info you guys might need) BUT PLEASE HELP! Hi, I've recently purchased a linux VPS (runs ubuntu 64 bit) I've been trying to get java to ...
0
votes
1answer
95 views

Command line dvd creation with chapters and menu

I have several personal video and I would like to put them on a dvd. I would like to classify them by year; so the menu would list the year, and each video should be a chapter. I could do that with a ...
0
votes
0answers
79 views

How do I run programs from Unity and still use commands such as 'primusrun'?

I want to run Steam using the primusrun command, but I don't want to have to open the terminal every time I do so. Is it possible to do this by adding a shortcut commandline like in Windows? On ...
0
votes
0answers
48 views

Virtual Partition won't recognize at boot

I created a disk partition and installed Ubuntu 12.04 LTS on it. When I rebooted and selected "Ubuntu", it told me basically something about GRUB minimal command or something what looked like cmd ...
0
votes
1answer
1k views

What actually yum does? [closed]

I've seen that yum command for Cento OS Red Hat Linux platform. But, I tried with sudo too and it was works. I want to know then what yum actually does? I am just qurious to know?
0
votes
2answers
137 views

enter path written in a file

I'm writing a code with fortran and I have several different output saved in different directory. During the Do cycle I saved the temporary PATH of the output in a file.txt Now I'm trying to plot ...
1
vote
1answer
346 views

can not open gnome-terminal in normal user mode from root user mode

When I issue "gnome-terminal" command as a root user it is opening a new terminal in root user mode only. Now my question is that "Is there any way to open a new terminal in normal user mode even when ...
0
votes
0answers
42 views

Any command-line tools that can both import and export midi?

I'm working on a research project that deals with midi files which are improperly formatted. Audio programs play them just fine, but the code I'm using to parse them makes a few additional ...
0
votes
1answer
569 views

Variable assigning in terminal

is there a way to assign a value to a variable, that value which we get in terminal by writing any command? Example: command: sensors we get cpu temperature. How can I assign this value to a ...
1
vote
1answer
154 views

Lock Terminal Size

Is there a way for me to lock the terminal screen size so that it can not be changed? I.e. double clicking the file bar will not maximize the screen, I can not drag the corners to resize it, anything ...
0
votes
2answers
21k views

How to open files from folders using terminal command [duplicate]

I am beginning to learn and love ubuntu. Is there any way to open files like .pdf, .jpeg, .odt, .docx etc. using command line? For instance, I have a pdf named: 9949107741MathFormulas.pdf in the ...
1
vote
0answers
36 views

How to fix ogg tags?

I am searching a command-line tagging tool that supports ogg-tagging and allows to change encoding to the tags.
1
vote
1answer
77 views

Console is missing my-user@

I've just received a new Ubuntu server at work, however, when logging in via the terminal I'm missing the my-user@server-name in the console. Also, I'm not able to use TAB for finished of folder-names ...
4
votes
2answers
100 views

Does man command invoke less command to display manual contents?

Whenever we use man command it opens the manual corresponding to the command(if exists). Operations on it are almost same as that of the less command(like search forward using / or backward using ? or ...
1
vote
2answers
582 views

How can I delete everything off of my SSD hard drive, or namely the grub loader?

I'm currently using a live CD and I am attempting to delete everything off of my harddrive. So, I've used the command sudo nautilus and attempted to delete everything off of my SSD. However, I cannot ...
1
vote
2answers
2k views

Komodo Edit: GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed

when i try to run Komodo Edit 8.0 from terminal, it returns me this error: (process:9508): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed how can i fix this? note: ...
2
votes
1answer
530 views

Terminal command with sudo takes a long time

I noticed that the terminal recently becomes too slow when I execute a command that needs my password. It takes some seconds to display [sudo] password for ...
0
votes
1answer
352 views

How to launch Dolphin file manager from command line or bash script (and give it a path)?

I want to open a Dolphin window from a bash script. It may not be relevant to the question, but I will be connecting to an SFTP location in Dolphin. First I tried this command from my script: ...
2
votes
2answers
1k views

I can't find my user password or change it

In the terminal, whenever I try to perform sudo, Ubuntu asks my password and it always says I typed it in wrong. I tried changing the password as root, but then it says password unchanged. My user ...
5
votes
2answers
696 views

Can I simulate a button press on a web page from terminal

I found that we can read gmail messages from a terminal window by using curl curl -u user --silent "https://mail.google.com/mail/feed/atom" I would now like to submit some text (from a textarea + ...
1
vote
1answer
42 views

Why `apropos url` output 'url (7)' but I can't use the command url

I want a URL encoder. So I aproposed it in the terminal and received following $ apropos url uri (7) - uniform resource identifier (URI), including a URL or URN URI::URL (3pm) - ...
0
votes
0answers
445 views

make command not found on chroot environment

i am trying to run arm image on PC through SD-card with chroot environment i had installed make utility and build_essential by sudo apt-get install build_essential sudo apt-get install ...
2
votes
2answers
3k views

How to rename all files in folder with name ending with “_backup”

I have a bunch of images that were somehow renamed from myimage.jpg to myimage.jpg_backup, so the images on my website don't load anymore. How would I recursively find all images ending with _backup ...
2
votes
1answer
5k views

Uploading text files into ssh account

I am using my instructor's account, connecting with ssh via terminal. I am trying to upload a text file into this account but couldn't find a command for this. I tried to copy the index of file and ...
0
votes
1answer
625 views

Battery icon is not displayed on the gnome shell 3 desktop. Running Ubuntu 13.04

This is what I get when I run "gnome-power-statistics" (gnome-power-statistics:3305): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:19:18: not a number (gnome-power-statistics:3305): ...
0
votes
2answers
327 views

terminal window appears after login?

04.4LTS VERSION My system works fine but yesterday I just reinstalled Wine and in the process of installing it started responding slowly as I am unaware of that situation,started pressing ESC and ...
1
vote
0answers
41 views

Why is my Unity missing after installing proprietary driver? [duplicate]

After installing the proprietary driver for my A10-5800k APU from the AMD website, Unity disappeared. To make things worse, I cannot input any key commands into the terminal (Can only copy/paste, but ...
0
votes
1answer
651 views

Cannot set CLASSPATH

I'm using the command "java -cp /home/ubuntu/myapp" to set the command to the directory where mu app's classes are located. However I seem to be having no luck. The terminal simply answers by giving ...
-2
votes
2answers
5k views

what is sudo tar -xzf? why it is used?

I need to know the extensions of xzf and its usage.is it necessarily to be used in installing a software? sudo tar -xzf utorrent-server-3.0-ubuntu-10.10-27079.tar.gz why this is used?
6
votes
3answers
2k views

Minify tool that can be executed through terminal

I am looking for a tool or a way to minify (similar to Compress my code and this question on Stack) all of the code in my .xml, .css, .html and .js files through Ubuntu's terminal. Eventually I will ...
1
vote
0answers
69 views

Why do “svn” commands block in gnome-terminal for couple of minutes (But Guake Terminal works instantly)?

I am facing a strange problem where svn commands block for a couple of minutes if I use gnome-terminal. So does UXTerm and Terminator. But strangely Guake Terminal works fine. I ran the following ...
0
votes
1answer
135 views

How to check JAR application's return number?

I have written an application in Java. Then, I packed it into a JAR file and now I run it from command line using "java -jar myapp.jar". Because it connects to the web, sometimes it throws the ...
0
votes
2answers
3k views

Change the terminal prompt [duplicate]

This can be really trivial,but it helps in ways of making it more comfortable while coding and sending commands to terminal. My terminal source/bash/root name(my apologies, I dunno which is the right ...
0
votes
1answer
1k views

how to redirect output to a log file without tee? normal redirection is not working

why not use tee? because the terminal rendering of the output makes the application run slower. for some reason, this is not working: application 2>&1 >"$logFile" the output keeps going ...
2
votes
0answers
32 views

How can I change the desktop wallpaper from the command line in Ubuntu Desktop 13.04? [duplicate]

How can I change the desktop wallpaper from the command line in Ubuntu Desktop 13.04? I most recent tried the following, but it did not work: gsettings set org.gnome.desktop.background picture-uri ...
1
vote
1answer
1k views

How do I create a symbolic link [duplicate]

I was wondering how to create a symbolic link in Ubuntu (12.04 LTS). I've done this before but this time it is a little different. This command worked before. user@desktop:/media/backup/folder$ ln ...
54
votes
10answers
8k views

Why do I need to type `./` before executing a program in the current directory?

While executing a C program, a.out, using the Ubuntu terminal, why do I always need to type ./ before a.out, instead of just writing a.out? Is there solution for this?
0
votes
1answer
181 views

Can't find a program in either software centre or console, want to uninstall it (13.04)

(13.04) I downloaded and installed a program from the internet (.bundle), but it crashes every time I try to run it. I can't find it in the software centre It doesn't have an "uninstall" option in ...
0
votes
1answer
2k views

Some index files failed to download [duplicate]

When I ran sudo apt-get update then I found some error. The Error is like below: W: Failed to fetch cdrom://Ubuntu 13.04 _Raring Ringtail_ - Release amd64 ...
7
votes
2answers
13k views

How to exclude multiple directories with rsync?

I am trying to backup my home directory using rsync, and I want to exclude some of the directories that contain junk. I want to specifically exclude /home/ben/.ccache and /home/ben/build. ...
0
votes
1answer
141 views

How to start a GUI application from the terminal and return immediately? [duplicate]

For example, if I type gimp in my terminal, Gimp will launch, but it will wait for gimp to be closed before returning control to the terminal. If I press CtrlC it will close Gimp. How do I prevent ...
0
votes
1answer
100 views

Why won't my script work?

umm my script isn't working and I don't know why, it gives me the error "update1.run: line 187: syntax error: unexpected end of file" Here's my code http://pastebin.com/4W4AwuY5 I would really ...