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

learn more… | top users | synonyms (5)

0
votes
0answers
4 views

How to call just a function from text script

I have a text file with a lot of functions in it. for example: # fisrt function # runs update and upgrade function upug() { sudo apt-get update && sudo apt-get upgrade } # ...
0
votes
0answers
23 views

ls command not working in ubuntu 14.04

I was trying to use ls command in my ubuntu 14.04 but it keeps on showing the following error, ls: unrecognized option '--color=auto' BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) multi-call binary. ...
0
votes
1answer
13 views

Understand chmod Symbolic Notation and use of Octal

Most of new user do mistake while applying chmod to files or directories. Because of lake of informative knowledge on following topics/aspects: Symbolic notation for ugo and rwx Use of octal number ...
0
votes
0answers
20 views

Terminal has lost its transparency option?

I just installed a new GFX card and ended up reinstalling 14.04 but now I have no option for transparency in the terminal. The whole 'background' tab is missing in the profile options does anyone know ...
0
votes
0answers
18 views

bash: Permission Denied when I move my CPP file to another location

I crafted a test CPP programme. It created a file in the home directory. It compiled with ease, and I could run it by typing ./rocketfire in the Terminal. Now, I did these: abhimanyu@AbhimanyuPC:~$ ...
0
votes
1answer
14 views

How to use a percentage character in the Exec line of a desktop entry file

How can I use a percentage character in the Exec line of a .desktop file? The following example does not execute. [Desktop Entry] Type=Application Terminal=false Icon=vinagre Name=RDP ...
4
votes
2answers
306 views

Why do I get different outputs in case of sh and bash?

I have the following simple script: #!/bin/bash echo "Bash version ${BASH_VERSION}..." for i in {1..99..2} do echo $i done Output in case I run with sh file.sh: Bash version ... {1..99..2} ...
1
vote
2answers
35 views

Changing environment variables

I just changed my /etc/environment file to: M2_HOME=/usr/local/apache-maven/apache-maven-3.1.1 M2=$M2_HOME/bin ...
0
votes
0answers
13 views

Gedit embedded terminal not working

I get this error when I run gedit: $ gedit Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/gedit/plugins/terminal.py", line 309, in do_activate self._panel = ...
1
vote
1answer
46 views

ubuntu 14.04 stuck in login loop. Nothing seems to help

just an hour ago, I installed some package which was supposed to solve the problem with dead keys. After that I restarted my laptop and could not log in because of infinite loop with the login page. I ...
-4
votes
0answers
16 views

I need to lock the key left Shift [on hold]

SORRY BUT I go straight to the POINT Own key SHIT IS PRESSED ONE, NOT A VIRUS, IT IS NOT THE KEYBOARD, AND ALL was reviewed, Believe Me ALREADY Look at all those choices so NO NO'll NEED THOSE DETAILS ...
1
vote
2answers
44 views

How to get a colored bash?

How to get the bash colored like this?
0
votes
1answer
19 views

Easiest way to take a continous series of pictures from a webcam

Looking around I found several solutions to take individual pictures (a few solutions are given here) and even a series of pictures (with up to one fps). I want to store the pictures in much lower ...
-2
votes
0answers
29 views

How can I execute shell command in server?

I have a problem that is execute bunch of shell command to the live server. How Can I do this? I have searched something about it and here i got a following solution. The solution is that the ...
0
votes
1answer
28 views

How do I open .cpp file from the github directory? [duplicate]

I'm a total newbie here. How do I open .cpp file from the github directory? what command should I use? I'm in the directory where the .cpp file is stored but I do not know how to open that in the ...
1
vote
2answers
55 views

Terminal method of formatting storage drive

I want to know how to format a storage drive from the terminal. Helpful things to provide in the answer would be often used options for commands and base knowledge that one can use to extrapolate ...
0
votes
0answers
17 views

can anybody explain what ls -l do? [duplicate]

can anybody explain what ls -l do? I'm new to command line functions so simple explanation would suffice. Thank you. For my reference the results I get when I typed ls -l was: drwxrwxr-x 3 student ...
1
vote
1answer
21 views

Give file permissions back to root

I accidentally typed out this command, not knowing exactly what it did: sudo chown -R user:user / Now when I type ls -la /, it shows that user has permission to all directories (before it showed ...
-1
votes
3answers
41 views

Create and replace an existing directory?

I have a directory name foo located in ~/Desktop. Suppose I want to create a directory from a terminal with same name and in the same location. When I tried mkdir it gave an error: mkdir: cannot ...
1
vote
1answer
14 views

What is the difference between free and vmstat commands?

vmstat output: procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 1 1 0 1001568 84736 ...
-7
votes
0answers
27 views

c program error in Ubuntu 12.04 using gcc [on hold]

I ran C program using gcc compiler in Ubuntu 12.04 but whenever i run my program it shows virtual memory exhausted error to me through Ubuntu terminal. it is not a error i wrote error command in ...
0
votes
0answers
11 views

Change terminal or terminator profile via keybinding or echo command

How can I change profile for terminator or terminal without touching the mouse? in terminal alt-t will allow me to get to menu to change profile echo -en "\033]0;$*\a" will allow me to set title ...
-1
votes
0answers
17 views

old version of newly installed skype opens instead of new one - not in terminal, but with quick access

I have installed the new skype version (4.3) on ubuntu. thanks to this thread How to upgrade skype from 4.2 to 4.3 i managed to do it with little proficiency, thank you so much! and i have also ...
0
votes
1answer
20 views

convert.im6: Unable to open image `xxx': Permission denied @ error/blob.c/OpenBlob/2638

I just tried converting several different images into a PDF file using the 'convert' command in a terminal, but when I did so, it returned: convert.im6: Unable to open image 'xxx.pdf': Permission ...
0
votes
2answers
38 views

Is there any way to install multiple software at a single command via terminal? [duplicate]

I just want to know after install ubuntu newly it`s need to install previous essential software again,That is really time consuming so is there any way that I write command and my essential software ...
1
vote
2answers
35 views

How can I wipe my hard drive from the Debian command line to install Ubuntu to a blank hard drive?

So here's my dilemma. I tried to install Debian and it wiped out Windows entirely after I installed the GRUB Bootloader. Thinking, "ok, I'll just get it back after I finish installing Debian," I ...
0
votes
1answer
46 views

Is sim a shell script command?

I was creating a sym-link for practice in Ubuntu 14.04. I meant to use this command: ln -s ../fun dir1/fun-sym It was taken from a book I am using. Except I used sim at the end by mistake. So the ...
-2
votes
1answer
49 views

Running python module in gedit embedded terminal [on hold]

I'm new to python and i'm trying to run my first module but i can't do that through gedit embedded terminal the code i wrote is def num(b): print("Give A Number") b = b +5 print(b) I ...
25
votes
4answers
2k views

Is ~ considered like a relative path?

I'm trying to extract the different part of the Nvidia cuda library installer. I'm using the following command: mkdir ~/Downloads/nvidia_installers ./cuda_6.5.14_linux_64.run ...
3
votes
1answer
76 views

How long is an ARP entry cached for?

Where can I find out how long ARP table entries are cached? I'm running 13.10. Can I get this on the command line?
0
votes
0answers
8 views

Double clicking .jar's no longer working | 14.04 [duplicate]

I had my system set up perfectly, Java, Skype, Chrome: then about 3 days ago, I became suddenly unable to open java's .jar files without a terminal. Java -jar <jarfile> still works, but I ...
2
votes
2answers
40 views

Is it possible to launch an application on a remote pc using the terminal?

I found myself away from my computer needing to do some quick work that required my accessing my desktop remotely. I normally use teamviewer, but I don't have it load on boot. I can launch it from the ...
-1
votes
0answers
17 views

Connect to wireless internet through terminal without external programs to set up a server [on hold]

Ok. Here's the deal. I have a computer that does display desktop, only terminal. So through terminal, I need to connect to the internet (Long story). I would like a single command if possible like: ...
2
votes
1answer
34 views

How do I create simplistic window-like elements in a command-line program?

When I execute sudo dpkg-reconfigure lightdm in the terminal I see a simplistic window-like listmenu. Is there an way to make something like that in C++? This looks something like:
0
votes
1answer
28 views

After update to 14.04, ncurses seems to have bugs (cursor still visible in petris)

I just upgraded to 14.04, and wanted to kill time by playing some petris. Then I noticed this: The problem also exists in other terminals. Is there some option I can set to get the terminal to not ...
7
votes
4answers
805 views

How to copy a certain file several times with a regular ending?

I have a single file (a PDF) and I want to have lots of identical copies in the same folder (200 would be nice) named file-001, file-002 etc. How do I do it?
0
votes
0answers
24 views

Can we delay a command in ubuntu [duplicate]

Consider any two commands. command 1 and command 2 with this script SCRIPT command 1 stop two seconds after execution of first command and then execute the second command command 2 Can we make ...
0
votes
2answers
26 views

Open terminal in 'always on top' mode on startup

I want Ubuntu to open a terminal in the lower right corner when I log in, with the always on top mode enabled. I have made a script which does this when I run it from a terminal, but it does not work ...
2
votes
2answers
316 views

How to change the value of ~

by default ~ is given the value of /home/username/ i.e. If I use the command cd ~ it goes to the directory /home/username/ How to change the value of it to some other file such as ...
0
votes
2answers
33 views

End script and restart it with the same options and arguments

Usually !! repeats the last given command. But it doesn’t seem to work in a bash script. Is there a way to end a script and repeat it with the exact same options and arguments given the last time? ...
0
votes
1answer
37 views

Run terminal command (python command) at start up [duplicate]

New to Ubuntu, but have looked everywhere to get this question answered. Found no solution so far. Basically I need to run two terminal commands on startup, which follow each other directly. This will ...
0
votes
0answers
22 views

Where to Start to create a Unity/Gnome3 Hybrid? [on hold]

First, is it possible to take some features from Unity, and some from Gnome3 and make a custom Shell? As background, I've been using Unity for a while, and was fairly satisfied with it. However, ...
0
votes
0answers
20 views

Bricked - tty mode incorrect, terminal disabled, unity broken

After installing VirtualBox unity seems to be uninstalled.. Launcher and task bar are missing. I can't access terminal from the normal ctrl alt T command. I tried logging into TTY mode but it says my ...
-1
votes
1answer
42 views

Running a program in background using command-line [duplicate]

How do I run a program in the background from a shell, with the ability to close the shell while leaving the program running which should not disturb the window i am working on? Lets say my UI is ...
0
votes
1answer
22 views

Terminal paging and scrolling

My terminal is very flaky. Even as I write this the webpage will scroll up and down almost at random. The same goes for my terminal. I will try to type, and the terminal will start paging and ...
-1
votes
0answers
15 views

How to implement chat server application? [closed]

how to create a chat server application? constraints :1.no user interface 2.using only data structures 3.even if receivers are online or offline 4.similar to ...
0
votes
2answers
31 views

Unable to assign command output to a variable

I am trying to assign the latest file name obtained from the below ls command but getting some error, it would be very nice if someone can answer how can I fix this! fn=`ls -lrt ...
-2
votes
2answers
67 views

Why do I have to use command line terminal for nearly every program install? [closed]

I'm a PC Tech with DOS, Win and Mac experience going back to ~1985. Now I'm checking out the state of Linux for home PC's and I am setting up my 1st Linux PC since 2006. Reviews I found say Lubuntu ...
0
votes
0answers
29 views

Terminal flashing between current and previous screen

I just upgraded from Ubuntu 12.04 to 14.04. After upgrading the terminal will sometimes, but not always, flash between the current screen and the previous screen. Here are some examples: The output ...
0
votes
1answer
24 views

How to Connect/Disconnect to WiFi Via Terminal [duplicate]

I just have a quick question that I have been researching for a while now... How do you connect/disconnect to a wifi network in ubuntu via terminal? I tried several commands that failed. I have been ...