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

learn more… | top users | synonyms (5)

6
votes
8answers
204 views

Access individual lines of a text file and create separate text file with that name

I have two text files (say text1.txt and text 2.txt) both with same number of lines. Ex. text1.txt contains 4 entries 0127H 0132H 0982H 1772H text2.txt contains 4 entries stev mary beautiful ugly ...
3
votes
3answers
65 views

How to close a new firefox window from terminal(cfct command is not working) [duplicate]

I have multiple instances of Firefox running in Ubuntu 14.04. How can I close the recent opened window/instance from terminal?
5
votes
1answer
75 views

How to make reverse-i-search in terminal easier using comments?

When you press Ctrl+r in terminal this leads to use the reverse-incremental-search mode. The reverse-i-search lets you search for previous commands in your terminal, but this can get confusing when ...
0
votes
1answer
17 views

npm install -g not working

I'm trying to run node.js tutorials from NodeSchool, I've run the following commands: curl -sL https://deb.nodesource.com/setup | sudo bash - sudo apt-get install nodejs sudo apt-get install ...
2
votes
2answers
29 views

How do I keep the screen contents after quitting less or more?

After exiting from less or more, the screen contents are returned to what they were before. This happens with pagers like less/more, and some other commands. Sometimes it is necessary to keep the ...
-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. ...
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
42 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 ...
7
votes
4answers
1k views

What does sudo apt-get install curl command do? Why does it require the password? [duplicate]

I tried installing PlayOnLinux by using the steps according to a YouTube video, Install MS Office 2010 on Ubuntu 12.04-14.04, and used the command sudo apt-get install curl Then it requested my ...
2
votes
1answer
30 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 ...
0
votes
1answer
26 views

How to disable release upgrade notification at terminal/TTY login (not the GUI pop-up)?

I have Ubuntu 12.04 LTS on one of my old laptop. Each time I login through TTY or SSH it says: Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.4.0-030400-generic i686) * Documentation: ...
1
vote
2answers
112 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 ...
2
votes
1answer
32 views

How do I stop byobu from hijacking highlighting by `ls`?

I've just upgraded Ubuntu 14.04 to Ubuntu 15.04 (well, actually using KDE/Kubuntu, but it appears to be irrelevant) and I noticed colouring in the terminal is a bit messed up when using byobu. The ...
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 ...
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...
0
votes
1answer
38 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 ...
1
vote
2answers
29 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 ...
1
vote
1answer
34 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 ...
0
votes
2answers
27 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" ]; ...
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 ...
2
votes
1answer
415 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 ...
1
vote
0answers
38 views

Useful commands and tricks for beginners? [closed]

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 ...
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.
0
votes
2answers
39 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
196 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
27 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 ...
5
votes
1answer
242 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
33 views

Recommended Languages to Learn Linux [closed]

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
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 ...
0
votes
2answers
173 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
14 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
570 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
35 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 ...
2
votes
0answers
36 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
85 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
63 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
79 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
19 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
32 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 ...
1
vote
0answers
25 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 ...
7
votes
3answers
148 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, ...
2
votes
1answer
30 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
159 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 ...
1
vote
0answers
81 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
20 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 ...
15
votes
5answers
906 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
41 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 ...
-1
votes
1answer
23 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
62 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 ...