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

learn more… | top users | synonyms (5)

0
votes
0answers
14 views

Folders permutation in real time

Due to small space left in the disk i want to interchange two folders location in two different partition in the same time. I think that when moving a file Ubuntu leave a copy until the hole process ...
6
votes
1answer
146 views

what is pts/0 , :0 and attributes before it + ,? etc

While reading about Linux, I got a $ who -a, so before trying that I logged into three of my text terminals (tty1,tty2,tty3) respectively,, and then I came back to X-window (Ctrl + Alt +f7),, then I ...
4
votes
4answers
2k views

How can I preview HTML documents from the command line?

I use catdoc to preview Word documents from the command line. Is there something similar for HTML? In other words I would like to do cathtml Webpage.html | less and get more or less a man page look ...
1
vote
1answer
12 views

What is the difference between bzr lp-propose and bzr lp-propose-merge?

What is the difference between bzr lp-propose and bzr lp-propose-merge? Do I have to provide the branch I wish to propose a merge to, or does it assume it for me?
0
votes
1answer
6 views

Ranger file manager - getting it to open archive files with custom script?

I've acquired a custom bash script which extracts all archive files and waits for input. Below: #!/bin/bash GET="." SCRIPTNAME="${0##*/}" err() { printf >&2 "$SCRIPTNAME: $*\n" ...
0
votes
0answers
10 views

cant edit anything on xampp as sudo user [migrated]

Im new to linux was an avid windows user until recently trying on an old system seing some major differences and converting, so I apologise if this question seems simple. Im running the latest ...
1
vote
0answers
43 views

Display running clock in terminal [duplicate]

I want to display running clock inside terminal. I have already gone through this answer but this method only works in zsh terminal. But I want to display in bash. Is there any other way to display ...
15
votes
6answers
2k views

How to show a running clock in terminal before the command prompt

I prefer to use terminal and spend most of the time using it. I am searching a way to see time in terminal while I use it parallel. The time would change automatically when it passes. It would be ...
0
votes
0answers
28 views

Ubuntu doesn't allow me to access my own filesystem

Title says it all. I cannot access or move any files in my own filesystem. I can access things that are on my Home folder and desktop. I need to setup an apache 2 server with Python and Django. ...
0
votes
1answer
11 views

What is the default timeout value for curl when used as command on terminal?

have searched a lot to find out default timeout value of curl. All suggests how to set timeout limit for curl. But Can anybody please suggest what is the default value of curl command timeout time? If ...
1
vote
1answer
25 views

How to login to the GUI from commandline

When I boot up, I sometimes go into tty, execute a few commands and then have to restart the GUI (gmd) with sudo service restart gdm I then go to the GUI (Alt+F7) and have to login. Occasionally, ...
0
votes
0answers
17 views

Another copy of splashtop streamer is running

When I start up this application called splashtop streamer by using python /opt/Splashtop-streamer/SRStreamer.pyc at the prompt everything works fine. However, when I add sh -c sleep 10; to the ...
6
votes
1answer
632 views

Difference between cd / and cd //? [duplicate]

What is the difference between cd / and cd //? We can see that adding / to the end doesn't do anything. But when I do cd // and pwd, I found: $ cd // $ pwd // What is difference between / and ...
3
votes
3answers
127 views

How can I get the names contained in the first file that are not i?

I have two files containing billions of DNA sequence names, the second is a proper subset of the first: for example, 1°:john mike anna paul laura .... 2°:john mike paul ... all the names occupy ...
19
votes
1answer
26k views

'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?

When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the ...
-1
votes
1answer
42 views

Use “watch” in executable script

Is there a way to use "watch" in an executable shell script? I mean this script should be launched with a double click, not directly from a shell... Try this script: #!/bin/bash watch gedit I'm ...
4
votes
1answer
75 views

Use custom command to open files

gedit application is set as default application for text files. Supposing I have a script with execution rights in /usr/bin, how can I set that script to be run when I open a text file using Nautilus ...
0
votes
1answer
29 views

How to remove comments from an XML file?

Is there a command line tool that can remove comments from an XML file? Or do I need to write a small program that makes use of an XML parser to do this? Update: I'm not interested in solutions that ...
2
votes
1answer
3k views

capturing video from webcam and saving to a file

I am trying to capture video(alongwith audio) from a webcam. I need to record the video and save it to a file,for further processing. Would like to do it through CLI. Any ideas how to do it using ...
2
votes
1answer
1k views

How to download multiple files using an script

I have to download multiple files from here in googlecode. Currently I open each folder and download each file by saving it using my browser. Is there a way to automatically download all folder/files? ...
41
votes
6answers
78k views

How do I download and install Handbrake?

I'm new at Ubuntu so I don't know very well how to use the terminal in order to download and install programs that aren't in the software center. I've tried without success downloading and installing ...
0
votes
3answers
43 views

What is wrong in follwing -exec command

I m getting error in follwing command cd /opt/lampp/htdocs/EspoCRM-2.5.2 && find data -type d -exec chmod 775 {} error: find: missing argument to `-exec'
1
vote
2answers
574 views

Is there a command-line program to read tags from .m4a files?

Running id3v2 -l file.m4a didn't find any tags, but displaying it in rhythmbox did. Is there another command-line program for working with tags that works on .m4a files? I'm running precise 12.04. ...
0
votes
0answers
13 views

Questions about checking for badblocks on a almost-definate bad HDD, I am new to Ubuntu

Heres the deal, I'm on an Asus x53sv-mh71, it's my friend's laptop. He dropped it about a month ago, and it stopped working about a week afterward. Wouldn't boot past the "starting windows" logo. I ...
10
votes
5answers
844 views

How can I run original command that aliased with same name?

An alias for ls command in ~/.bashrc file aliased with this one: alias ls='ls --color=auto' then, when I run ls command in terminal aliased ls(ls --color=auto) runs. but my question is how can I ...
9
votes
1answer
1k views

Shutting down all VirtualBox (vagrant) VMs in one easy to use bash command (that can be put into a bash file)

I use vagrant for development. I forget to shut down a few of the VMs. When I go to log out of my host machine, the Ubuntu shutdown process appears to hang. Might there be a way to script a close of ...
3
votes
3answers
11k views

How to get separate with space or tab in the awk example

while I'm playing with awk I came to execute like ls -la >> a.txt ; awk {'print $5 $1'} a.txt ; then its giving output like 53277-rw------- 52347-rw------- how can I get space between ...
6
votes
6answers
15k views

What's the terminal command for finding out a process's id

I want to exit a process using the command line, but I can't recall the command to look up the process's ID. Does anyone know it?
1
vote
1answer
29 views

command 'll' crashes terminal after rellocating /home

I just move my /home and /tmp to another partition and after that I cannot call the commands ll or ls -l without crashing the console. anything wrong? thank you
3
votes
1answer
39 views

How to quickly check the value of bash variables, aliases and history commands from terminal?

How do you expand in place: bash aliases environment variables history commands to edit them and check they are correct? For example, I have some aliases I use for flashing different devices and ...
2
votes
2answers
43 views

Pass variable value to script from terminal

I like the shred command so instead of using the 'rm' command I prefer shred. I would like to create a bash script in /usr/bin, say we will call it "shredder" so that if I want to shred a file (i.e. ...
0
votes
1answer
30 views

Make the CTRL and Super/CMD keys behave like on OS X

I am a longtime OS X user who is using Ubuntu at work. While I like Ubuntu very much, something that I really miss is the behavior of the CTRL & CMD (i.e. Super) keys on OS X: CMD/Super is used ...
1
vote
1answer
85 views

How to retrive root password, when someone has changed it?

The fact that, In my Lab, one of the user who is in sodoers list has changed the root password, is there any way to reveal the password he has set? I know how to change it by editing from GRUB but ...
4
votes
3answers
7k views

Using Ubuntu's “screen” command to share screens

I have two machines. I SSH'd into one. I want whatever I type on one to display on the screen of the other. I know you can do this with the GNU screen command. How? Thanks!
21
votes
5answers
6k views

How can I list all packages I've installed from a particular PPA?

How can I list all packages I've installed from a particular PPA? Command-line answers preferred. Related question: how can I list all installed packages that are not available from the main Ubuntu ...
0
votes
0answers
8 views

Specifying path to java interpreter while installing Java Wireless Toolkit

I have already installed JDK. I could run java programs through command line as well as through Netbeans IDE. Now I want to install java wireless toolkit. I have downloaded the "*.bin" file from ...
8
votes
3answers
17k 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
0answers
21 views

access sftp Ubuntu 14.04 LTS

I have Ubuntu 14.04 LTS and would like to access via sftp, I tried to enter sftp myid@MyMachine, I got error message like following. sftp myid@MyMachine ssh: connect to host MyMachine Port 22: ...
1
vote
1answer
31 views

How to assign a keyboard shortcut to show an Ubuntu Desktop notification?

What I am trying to do is, I have a few texts in a file & when I tap a key combination like ctrl+Q, the text should appear as a notification on my Ubuntu Desktop. What is the command to assign ...
0
votes
1answer
155 views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler ...
24
votes
4answers
90k views

How to edit files in a terminal with nano?

Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I ...
4
votes
2answers
7k views

`Gtk-WARNING **: Locale not supported by C library. ` when starting apps from the commandline

I didn't get an answer but I wasn't doing anything and this is an interesting topic. In Ubuntu 12.04, when opening a file in gedit or if I am working on the command line in dpkg, I get returned the ...
2
votes
1answer
38 views

Emacs Keybindings for all Text Inputs

I type with ten fingers. I try to avoid all keys on the keyboard which are not easily accessible: Pos1 End1 Esc ... Up to now my fingers like the emacs key bindings, since they work in the editor ...
9
votes
5answers
2k views

Can I change the name of the guake tab to show the current command?

I use guake very heavily, and ssh into more than 3 computers at any point in time. I also have daemons running on some tabs (terminals). What I want to know, Is it possible to have the name of the ...
6
votes
1answer
255 views

What is the difference between gvfs commands and common commands like cat, ls, cp?

I recently found the following gvfs commands : gvfs-cat (1) - Concatenate files gvfs-copy (1) - Copy files gvfs-info (1) - Show information about files gvfs-ls (1) - ...
5
votes
2answers
6k views

How to call a number from command-line with Skype?

I've seen several links suggesting it is possible to make a call from the command-line with skype. The instructions suggest something along the lines of: skype --callto:+14445551234 However, this ...
-1
votes
2answers
255 views

How to delete to trash via terminal (with mv command)?

I would like to know how can I delete a file and/or move it to trash with mv command? I know where the trash located is, then I tried with this commands to move it to trash: mv somefile ...
0
votes
1answer
3k views

How to reset .bashrc file which edited before to set PATH ANDROID sdk? [duplicate]

bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier bash: /home/entw/.bashrc: line 111: ...
18
votes
5answers
2k views

How to both display a command line's output on console and save the output into a text file?

How can I run sudo apt-get install by BOTH seeing the process of installation (long in my case) and saving its output into a text file ?
1
vote
3answers
62 views

Not able to run sed on bash script

I am working trough some legacy code which does not work, I came across a part that is causing problems. I was hoping some one could help me out and fill me in on what is the exact functionality of ...