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

learn more… | top users | synonyms (5)

0
votes
0answers
28 views

Useful commands and tricks for beginners? [on hold]

I am newbie in ubuntu. I wondered if there is any type of useful tricks which could be used in ubuntu server! Like for windows there is Ctrl+C Ctrl+v Ctrl+a! Thanks in advance! Please show as many as ...
1
vote
4answers
84 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.
0
votes
2answers
23 views

How can I update a Network Manager connection from the command line?

I have a bunch of Ubuntu machines on my work ethernet LAN and I need to modify the default gateway. I'd rather not traipse round, interrupt people's work, to right click an applet, preferring instead ...
1
vote
2answers
173 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.
0
votes
1answer
24 views

Is it possible to edit the .bash_login file for the second time?

I accidentally wrote an error command in the .bash_login file. I need to edit the file to solve this problem but I can't do that anymore. The error is about the .bash_login isn't a writable file ...
4
votes
1answer
133 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
1answer
27 views

Recommended Languages to Learn Linux [on hold]

This is a very common question i might be asking, but I have not come through a clear cut answer yet. I want to be a fully Linux Developer, (BOTH Backend/Coder and GUI). Which programming Languages ...
0
votes
1answer
45 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 !
0
votes
1answer
10 views

Bash sed to read auth into debconf-set-selections for Vagrant VM

I have a Vagrantfile that uses a bash script to set up a VM. I can't get the script to set a password for MySQL using debconf-set-selections with output from an .auth file. Below is an example of the ...
4
votes
4answers
507 views

How to delete all files inside subfolders, but not subfolders itselves?

I know how to recursively delete all subfolders and all files. But in this case, I need to preserve subfolders. Basically, I need to empty them all. So, I have rootdir/ subA/ ...
0
votes
1answer
29 views

How do I add my own program to the terminal? [duplicate]

I want to be able to make a program for example in Python and then execute it in the terminal no matter where I am located. I mean, if I have an executable python file AND I'm in the same folder of ...
1
vote
0answers
19 views

What's a good way of protecting password on a plain text executable script?

I am managing a few dedicated game servers on a Ubuntu server 14.04 machine. These games are downloaded and updated by the SteamCMD tool, which for some games, requires login from the command line ...
3
votes
4answers
67 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 ...
1
vote
2answers
50 views

Automatically update commands for Ubuntu server system

As we have pointed out here, we can quickly update Ubuntu system by executing the piled commands sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade My ...
0
votes
0answers
54 views

Since 15.04 Upgrade, Lost my Terminal/Shell

Since I've upgraded to 15.04 I've lost my terminal. I cannot fall back to using xterm because xterm is simply not as good as the basic Ubuntu terminal! How do I get it back? When I click the ...
0
votes
1answer
17 views

Renaming png fails with shutter

I am learning to use shutter and from the CLI I was trying to take 10 screenshots at 1 second interval and to rename them, however when I try I get an error message that says: "There was an error ...
1
vote
2answers
29 views

parsing out in bash

my file looks like this // [297]((((21:0.125204,20:0.125204):0.00994299,(28:0.0790047,(7:0.0146105,5:0.0146105):0.0643943):0.0561423):0 segsites: positions: 1 2 4 6 9 10 45 67 78 89 ...
0
votes
0answers
12 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 ...
6
votes
3answers
73 views

Command equivalents of Unity keyboard shortcuts

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, ...
2
votes
1answer
19 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 ...
2
votes
1answer
139 views

How to automatically answer interactive cli program (not script) with bash script?

I've googled this, and almost all I could find is to answer a bash script and this doesn't work for me. The answers I found told to do: echo "yes" | ./script or ./script <<< yes or ...
0
votes
0answers
61 views

Why does the Terminal minimize when initiated in Ubuntu 15.04?

After installing Ubuntu 15.04 update Steam quit working. So I tried to remove Steam installer and reinstall it; along with the installation I received the message: Steam, Steamdeps are run in a ...
0
votes
0answers
12 views

how to connet to hidden network from terminal [duplicate]

My Ubuntu graphics has stopped working. I can only access the terminal. So I am trying to connect to a hidden network through the terminal. I have tried using iwconfig for the same. But with no ...
3
votes
0answers
19 views

In Ubuntu 15.04, how do I disable the hints in the terminal? [duplicate]

So, I just updated to 15.04. Looks great, but the first thing I noticed when opening up a terminal was that it reads: To run a command as administrator (user "root"), use "sudo <command>". See ...
14
votes
5answers
871 views

Where are commands `fg`, `bg` and `jobs` installed? [duplicate]

fg, bg and jobs are used for job management. And for some reason (maybe it's just me), I'm not able to find where their binaries are nor their manpages (whereis prints no information). which gives no ...
0
votes
1answer
38 views

KDE (Kubuntu) login issue

the problem is much more bigger then what the topic says. I am new with Linux and was watching a tutorial for certain commands... and I learned about this command "startx". What this command does is ...
0
votes
0answers
15 views

Is Vala a good choice for making a gui to a program? [on hold]

I've written a simpl program that manages environment variables where you can inspect your environment variables like printenv | sort | less. Now I want to make a GUI for my program. I tried Vala and ...
-1
votes
1answer
22 views

Open a folder in a Graphic File Manager from a terminal [duplicate]

How can I open a folder in a GFM (in a files window) from the terminal? Thank you for your kind help.
2
votes
1answer
57 views

how to create a symbolic link that works relative to the working directory

consider the following : x/ ph/ file1.txt -> ./../file1.txt file1.txt y/ ph/ -> /x/ph/ (this is full absolute path of x/ph) file1.txt /y/ph is a symlink for ph folder ...
0
votes
1answer
27 views

How do I export a variable to the `sh` shell? [duplicate]

Calling export MYVAR=/path/to/whatever from .bashrc obviously works for bash but not for the sh shell. Unfortunately, the Matlab launcher seems hell-bent on using sh and not bash. As such, the ...
1
vote
1answer
13 views

How can i install xfonts-… packages?

I need to install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic packages. But I get an error, that they are not exists. Using Ubuntu 14.10 Need them for xvfb
0
votes
0answers
17 views

Pass multiple specific files as one string arg from another java program [on hold]

I am trying to pass few specific paths as a string arg in one program to call another java program. I get an ArrayIndexOutOfBoundsException error but when I pass the exact same arg in the command line ...
1
vote
1answer
29 views

Running Shell Script on Double Click

Okay, I have opened nautilus and edited preferences to ask when I double click an .sh script to run in Terminal. Well, I don't want to use a .desktop file; I want to just simply double click on the ...
7
votes
2answers
248 views

How to use grep output as a path for cd?

How can I pipe grep output as an argument to the cd command? For example: [root@xxx xxx]# pip install django | grep '/usr.*' Requirement already satisfied (use --upgrade to upgrade): django in ...
1
vote
1answer
30 views

Why does the more command not work when bound to a keyboard shortcut?

I have two commands that both work in terminal: notify-send "$(more /home/tim/autest.sh | head -1)" and notify-send "$(cat /home/tim/autest.sh | head -1)" putting them in a script like this: #! ...
1
vote
1answer
75 views

How get rid of the terminal message about sudo [duplicate]

After upgrading to 15.04 I get a message with every new terminal to tell me how to use sudo: To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for ...
2
votes
1answer
35 views

How to permanantly change the color scheme of the terminal?

I have just installed solarized color scheme for ubuntu gnome terminal. I have followed this tutorial. eval dircolors ~/.dircolor - this command s causing problems. When I use this command, it ...
0
votes
3answers
19 views

What does !! do? [duplicate]

I can run a command like this: tim@Hairy:~$ echo Hello Hello Then I can run the command !! and it does it again: tim@Hairy:~$ !! echo Hello Hello I can even run it with another argument to the ...
0
votes
1answer
22 views

sleep getting hang in shell script

I had a cron script running on my Ubuntu PC ( 12.04.3 ) which periodically checks for disk space. There was a "sleep 5" also used in this script. This system was up for a month, but an issue is ...
2
votes
1answer
193 views

Copy all folders with name “ABC” to another location

I have 100 folders and every folder has a subfolder called "ABC". I want to copy folder structure and contents of "ABC" to another location. How can I do it through Ubuntu terminal?
0
votes
0answers
20 views

How to install AMPPS 3.0 from terminal?

After downloading the file, when trying to install ampps 3.0 on the terminal, I got a message saying: ......Extraction failed. .... Terminated . I am using the file Ampps-3.0-x86_64.run from ...
3
votes
4answers
109 views

Ordering of the commands used to install from a ppa

To install from a ppa, you have to use the following 3 commands: sudo add-apt-repository example/program sudo apt-get update sudo apt-get install example-program Is there any reason not to do this: ...
-1
votes
0answers
22 views

NSENTER command not found [duplicate]

I have Ubuntu 14.04, following some course learning around docker and Openstack, I needed to run a command as follows $ nsenter -m -u -n -p -i -t 19636 command not found . After googling, I found ...
0
votes
1answer
20 views

Spellcheck an HTML file in the terminal

I have been trying to find a way to spellcheck my HTML file's content in Sublime for quality control. I have referenced several articles referring to aspell but after installation and trying to run ...
1
vote
2answers
25 views

How to Copy special file (steam.pipe) in Ubuntu?

I had been using Ubuntu for a period of time, and had faced this problem: I am using ubuntu 14.10 right now and have Steam installed in my /home/user/.steam folder. When i was copying the .steam ...
0
votes
1answer
19 views

Export a png from kra, a krita document

How to export a krita, kra document with many layers, to a png using command line ?
2
votes
4answers
407 views

How do I search for a process by name without using grep?

In order to search for a process you can use ps with grep. For example to search for firefox ps aux | grep firefox How to get the same answer without using grep?
1
vote
1answer
69 views

Terminal Doesn't go /home/username

When I type cd /home terminal goes there but when I type cd /home/myusername/downloads (or any address) terminal doesn't go there. It says no such file or directory. Can somebody tell me what causes ...
18
votes
3answers
1k views

“mv file” and now it's missing

In a terminal window, I typed: mv filename ..\.. [Note the wrong slash.] Now I can't find it. Gone. I ran some searches and looked through recoverable deleted files. Nothing. Poof. Serves me ...
3
votes
1answer
24 views

Can I convert a .dxf to .png or .jpg with a command tool?

I'm looking for some command line tool that allows me to convert dxf to any other format.