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

learn more… | top users | synonyms (5)

3
votes
5answers
7k views

Why I can't delete a folder?

Could not remove the folder [Folder name]. Show more details Error removing file: Directory not empty Cancel-Skip All-Skip I tried to delete these folders from terminal with: rm -r
62
votes
5answers
45k views

Which one is better: using ; or && to execute multiple commands in one line?

In tutorials and how-to's I often see commands combined. For instance, sudo apt-get update && sudo apt-get install pyrenamer There seem to be four possible connectors: &, &&, || ...
-1
votes
0answers
14 views

using text browser on linux to display proxy information [duplicate]

I have this question on my project , and can't how can be answer it , could you help me? how can store proxy information Permanently for a text mode browser such as links? I want steps , if you can. ...
2
votes
0answers
12 views

How to specify which child terminal gets focus on terminator startup

I have a terminator layout which looks like this: +-----+-----+ | | 2 | | 1 +-----+ | | 3 | +-----+-----+ When I start terminator, child terminal 3 receives focus. Is there a config ...
6
votes
3answers
127 views

How can I start up an application with a pre-defined window size and position?

I'm wondering is there any way to achieve the affect of the Ctrl-Alt-Keypad shortcuts in Unity using terminal commands instead? I want a command that sets a gui window to half the size of the screen, ...
15
votes
4answers
22k views

What is the command line statement for changing the System clock?

Is there such command for changing the System clock' date and time? For example: The current date and time is January 1, 1970 22:30:59:980 where 59 and 980 refers to the seconds and millisecods ...
21
votes
1answer
15k views

Bash: delete word ahead of cursor

Consider the following bash prompt, where ^ denotes the prompt location: svn commit -m very/long/path/to/some/file "[bug 123456] Fix the pixel issue" ^ I'd like to commit a different ...
1
vote
1answer
25 views

Which installation images allow the installation of a command-line system?

I would like to set up a minimal command-line system as a starting point for a custom desktop, as outlined in Installation/LowMemorySystems guide. What exact choice of the installation image do I have ...
-1
votes
0answers
41 views

what are the commands of this .deb package? [duplicate]

I want to know the commands that a specific .deb package offers me. For example lets say I installed a package called x.deb. This package surely contains some commands that i can use. How to list ...
0
votes
1answer
26 views

Need a script to find files modified in the last three days and exclude all backup folders

I'm trying to set a script to let me know what WordPress files have been modified in the last 3 days, but I get a huge list of every site's backups when I just run: find /var/websites -mtime -1 How ...
2
votes
1answer
61 views

How to get the package versions corresponding to Unity 7 launcher applications?

I'd like to know the Ubuntu package version of all applications locked into my Unity (7) Launcher from the command line. The command should return a list of packages names and their versions, ...
3
votes
4answers
15k views

Run PHP from the command line

I have installed XAMPP v1.8.3 for my PHP development. I am new to Ubuntu, so I don't know how to set environment variable for PHP which is located at /opt/lampp/bin/php. I can run PHP scripts from ...
32
votes
4answers
15k views

Difference between 'dir' and 'ls' terminal commands?

I've been trying to find the difference between using the dir and ls commands in terminal. I know ls is the traditional unix method of viewing the files in a directory, and that dir is the windows ...
4
votes
3answers
1k views

Software for Imgur image upload

Is there any software that can help me upload images directly to imgur.com. Command line softwares would be more appreciated.
0
votes
1answer
42 views

Command line partition info

I'm looking for the name of a command like blkid but shows the data in sort of a tree from the command line. I saw it here on askubuntu and ran it, but I must have had a space before the command and ...
8
votes
6answers
837 views

How to find lines matching a pattern and delete them?

In a file with lots of lines I want to delete lines that starts with HERE IT IS. How can I do this using only command-line tools?
0
votes
1answer
65 views

Configuring Wacom Tablet for different programs

In the windows Wacom drivers you can set different button mapps for different programs and I was wondering if this was possible in ubuntu in anyway.
0
votes
1answer
20 views

What is the difference between sh and ./ [duplicate]

When given a binary in a terminal, you can launch it via sh myapp or ./myapp Are there any other ways to launch the app? Is there any difference between sh and ./ ? What do they denote/stand ...
3
votes
1answer
37 views

sudo apt-get update command not working what i do [duplicate]

I'm on Ubuntu 14.04 and I tried running: sudo apt-get update But I get the below error: E: Malformed line 59 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be ...
0
votes
0answers
8 views

Is there a way to debug cscope?

I'm trying to build a cscope code database (running cscope -Rb) on a reasonably-sized (not huge) codebase. However, cscope is not returning, after over an hour. Over the past few months that I've ...
2
votes
1answer
27 views

How to copy (or move) a file to a folder that is not existing while i am performing the copy (or move) operation?

Say I want to copy a file batman.py from path1/batman.py to path2/ . While copying I want to create a directory inside path2 and the copy batman.py inside the new directory there. How can I do it ...
12
votes
2answers
21k views

Environment variables when run with 'sudo'

As example to my question, my ~/.bashrc file contains this lines: export LD_LIBRARY_PATH=/opt/intel/mkl/lib/ia32:$LD_LIBRARY_PATH export LD_PRELOAD=/opt/intel/mkl/lib/ia32/libmkl_core.so so that ...
3
votes
1answer
2k views

How can remote host be mounted with nautilus from command line to avoid opening a nautilus window?

A remote host can mount with nautilus: nautilus sftp://<target-host> But, in this case a nautilus window is opened. I would like to use this command in a script. How can I avoid window ...
1
vote
2answers
103 views

How to run sh file from terminal? [duplicate]

I installed Viber on Ubuntu: /home/nazar/Software/Viber/Viber.sh I can run it from terminal specifying this path. I want to achieve some short command as: viber For lunching application. How to ...
149
votes
9answers
363k views

What does “sudo apt-get update” do?

I am wondering what sudo apt-get update does? What does it update?
1
vote
5answers
2k views

Change dconf keys without logging into X in Puppet

Is there a way to set a dconf key by command line, without logging into X? I'd like to use this from Puppet. If I try (from SSH, as the normal user) a simple dconf write ...
11
votes
3answers
26k views

How to remove lines from the text file containing specific words through terminal?

How to remove all the lines from the text file containing the words "cat" and "rat"?
11
votes
2answers
1k views

What does this 'apt-get remove' instruction do?

What does the following code do? I found it on internet so I copied it and pasted it into terminal but when I installed a new kernel it only detects the old one. sudo apt-get remove --purge $(dpkg ...
13
votes
4answers
47k views

How to search for files containing specific word?

How to search for files containing specific word?
4
votes
7answers
9k views

Change multiple filenames by replacing a character

I have multiple files named like that : screenshot 13:25.png Windows struggle to open these files probably because of the ":". How can I replace it?
6
votes
2answers
12k views

What does outputting to /dev/null accomplish in bash scripts?

Oftentimes I run into small bash scripts that use this sort of syntax in if statements: some command > /dev/null 2>&1 What is the purpose of outputting to /dev/null like that, and what does the ...
5
votes
1answer
237 views

Getting the default text editor used in system

I have been searching and browsing for a long time and have not been able to find an answer to my question. I have used select-editor and I note that I am using /usr/bin/nano. Is this the default ...
0
votes
2answers
96 views

i just upgraded to ubuntu 15.04 but i cant launch the terminal

the question says it all i just cant get into the terminal and I've tried the control alt t thing to it still wont pop up please help !
2
votes
1answer
38 views

How to show the list of shortcuts produced by super key using command line

What is the command that shows the same result of holding the super key?! I.e. What is the command that list all shortcuts in system...
1
vote
2answers
193 views

What does the command ls -al do? [duplicate]

I'm a newbie in Ubuntu. Can someone describe what ls -al does? If possible, show an example.
1
vote
0answers
24 views

Xubuntu 12.04: “Open In Terminal” doesn't work

You may be wondering why I'm using an outdated version, that is because my network card doesn't work in 14.04. Anyways, I have set chmod +x (even u+x) to my .sh file, and when I double click, nothing ...
0
votes
3answers
95 views

listing permissions

I'm a biomedical scientist and I'm having trouble running a custom data analysis pipeline written by one of our collaborators. His script crashes with /bin/sh: 1: ...
0
votes
1answer
32 views

Some jar files refuse to to run upon double-click and Terminal can't access them

MultiMC launches with no problems. I can't get Minecraft to launch by double-clicking it: it will open in Archive Manager. When I run the command java -jar minecraft.jar, Terminal returns the error ...
0
votes
5answers
161 views

How can you move a directory from one user to another?

I have directory in my folder called Kristens and I wanted it to move other user called Janis, how could I do it? Thank you in advance! If possible show some examples.
1
vote
2answers
27 views

How to run Cisco packet tracer via command line

I downloaded the Cisco Packet tracer .bin file from http://www.mediafire.com/?r95gqy7n331ht8t then typed the following command, sudo sh PacketTracer533_i386_installer-deb.bin that command ...
0
votes
1answer
19 views

SSH stays open remotely? [duplicate]

When connecting to a server, is there a way to keep the SSH console open once disconnected? Or is there a program that does that, and that lets me connect back into where I left? This situation can ...
1
vote
1answer
33 views

How can I list mp3 files that have a leading period?

I have mp3 files in a directory. For this example, let's assume they are these 3: Enter Sandman.mp3 ...And Justice For All.mp3 St. Anger.mp3 How can I list (ls is highly preferred) all ...
2
votes
0answers
753 views

Get binary delta-encoded recursive diff of two directories as single patch file in CLI (and online use)

Essentially, I am looking for a GNU/Linux tool, that could recursively iterate through two directories, find file changes/additions/deletions; and for all changed files, output a diff. This can ...
0
votes
2answers
26 views

aliases not picked up when sudo in mac? [on hold]

I have the following aliases in /etc/profile. # System-wide .profile for sh(1) if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s` fi if [ "${BASH-no}" != "no" ]; ...
37
votes
4answers
42k views

How to add Android Studio to the launcher?

I'm trying to install the android studio so that I can launch it from a launcher instead of via terminal. Can someone give specific instructions please? I think this is something to do with the ...
2
votes
1answer
29 views

Reset hibernation delay from command line

My hibernation on Ubuntu 14.04 LTS works fine. But someone keeps changing its delay to never hibernate. I am tired of paying days' worth of electricity for 10 minutes usage a day. Is there a way I ...
7
votes
3answers
114 views

How to run a script when a directory is changed by another user?

I know has been a bit of discussion about topics similar to this. But here is what I am basically trying to do. I have a watch directory called watched and whenever a file is added to that directory, ...
16
votes
2answers
29k views

Is it possible to change the Terminal font?

I would like to change the font in the Terminal, how can I achieve this?
2
votes
1answer
410 views

Is This The Right Way To Change Drives Using Terminal?

Well I am a newbie in Linux world. Everyday learning by working. I use dual booting and in one drive Windows 7 is installed and in another drive Ubuntu 14.04 LTS is installed. My first O/S was windows ...
3
votes
4answers
84 views

how to move a specific range of files from one directory to another

In my parent directory I have 10000 files, I want to copy or move the files to 4 sub directories subdir1, subdir2, subdir3, subdir4 equally and if possible simultaneously. Is to possible to copy a ...