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

learn more… | top users | synonyms (6)

70
votes
1answer
73k views

How to remove an alias?

I want to remove gs alias from my PC. When type gs it will open the Ghost Script. But I checked everywhere in the home directory .alias .bash_aliases .bashrc I also overwrite the gs with my custom ...
5
votes
2answers
14k views

unable to delete file - rm: cannot remove Input/output error

Some file is in my NTFS file system which I can't delete. It's giving this error: rm: cannot remove `zigBqC04': Input/output error Any other files also could not be copied in that folder and ...
8
votes
4answers
22k views

Why do I get IBUS-Warning on running the sudo gedit command?

Whenever I try to run a sudo gedit command as instructed in Step 4 of this answer, my terminal puts out: (gedit:7549): IBUS-WARNING **: The owner of /home/jared/.config/ibus/bus is not root! How ...
1
vote
1answer
34 views

Trouble with one command

I was read this article in EFY times: http://www.efytimes.com/e1/fullnews.asp?edid=111978 and I put twice the command: echo 'man `ls /usr/bin | shuf -n 1`' >> ~/.bashrc and now always when I ...
11
votes
6answers
11k views

Command-line to switch between profiles in gnome-terminal

I created a new profile for gnome-terminal and I can switch between "Implicit" profile and the new created profile as you can see in the below image: Now I wonder how can I switch between profiles ...
0
votes
1answer
30 views

Command substitiution problem, confused

I am trying to have sox play a file from user input. To do this, I set up a command like the one below: $ play proc/$(read -n 1).wav I have files 0.wav through 9.wav located in the directory proc. I ...
1
vote
1answer
363 views

Problems with shutdown from command line

Whenever I attempt to shutdown my dell inspiron 1545 laptop from the command line with sudo shutdown now I get the following error after the ubuntu shutdown screen closes: Could not get system bus....
0
votes
2answers
157 views

Command to copy from a file

Lets suppose that I have a file named "foo". For example, I can copy its contend doing: gedit foo ctrl+a ctrl+c alt+f4 But, I wonder if I can do the same thing with something like: COMMAND foo ...
1
vote
3answers
2k views

Question about the symlink of the ln command

Can anybody give me an example why should we use the symlink kind of the "ln" command between files? I know that when you create symlink file, that file size is very small and it redirect to the main ...
2
votes
1answer
358 views

Cannot delete a tar.bz2 file from pendrive

I want to delete a tar.bz2 file from my pendrive. I tried shift+delete, but nothing happened. Then in terminal I tried sudo rm command, I got the following error - rm: cannot remove `avi.tar.bz2': ...
1
vote
1answer
227 views

Ubuntu .pam_environment for non-login shell

I remember in the past, we have two place to set env variables for Ubuntu Login shell - ~/.profile Non login shell - ~/.bashrc But now according to the doc [1], they are not recommended anymore. ...
10
votes
1answer
3k views

Getting command-not-found working under zsh

I'm trying to get the command-not-found feature under Ubuntu to work under zsh, without luck: ➜ ~ pdfunite zsh: command not found: pdfunite ➜ ~ bash u@ub:~$ pdfunite The program 'pdfunite' is ...
0
votes
3answers
799 views

Filter .txt file on descending order of created date

I had created a .txt file but now I forgot where I save it and also the file name of it. So my question is: is there any method to filter out .txt files on descending order of created date? I'm ...
0
votes
1answer
938 views

How to print the line number when searching for a string in multiple files

I would like to know a handy command to search for some strings in multiple plain text files and show the line number where it matchs in the output. ie: grep -r 'hello' --include=*.js ¿? output: ...
1
vote
0answers
258 views

Multiple X sessions in virtual terminals

I installed multiple different window managers over the past day to play around with, but they don't seem to work. I've been launching them from virtual terminals with "startx -- :1 twm" or the like. ...
2
votes
1answer
1k views

Bash command-line in vi mode - command-line find/replace [duplicate]

New to linux :-) In my .bashrc I have set -o vi. That way when I'm in the terminal I can press CTRL +{ and then use VI commands to navigate, edit and search the command history. One thing I cannot ...
1
vote
1answer
174 views

How to do tab completion with files that starts with special characters

I am unable to open a pdf file which starts with (. For example: (3311) M3N78-EM.pdf Are there any arguments to be given? I have invoked with evince command. When I type evince (and press tab, nothing ...
1
vote
1answer
192 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
180 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
694 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 ...
1
vote
2answers
282 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 ...
3
votes
1answer
4k 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
209 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
519 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 /usr/share/command-not-found/programs.d/...
0
votes
1answer
1k 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
167 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 ...
1
vote
1answer
9k views

What actually yum does? [closed]

I've seen yum used as a command for Cento OS Red Hat Linux platform. But, I tried with sudo too and it works. I want to know then what yum actually does. I am just curious to know.
0
votes
2answers
274 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
749 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
1answer
13k 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 ...
2
votes
1answer
258 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 ...
1
vote
2answers
48k 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
54 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
99 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
154 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
2k 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 ...
3
votes
2answers
8k 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: ...
6
votes
1answer
3k 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
996 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
3k 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
2k 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
59 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) - ...
3
votes
2answers
10k 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 ...
4
votes
1answer
12k 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
890 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
680 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 alt+...
0
votes
1answer
1k 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 ...
3
votes
2answers
87 views

Taking input from a file and writing to it in the same command

My encoder is a program that encodes a piece of text and prints the encoded text to the standard output. But when I do: cat file.txt | encoder > file.txt what happens is that all the text in ...
2
votes
4answers
22k 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?
17
votes
3answers
17k 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 ...