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

learn more… | top users | synonyms (5)

0
votes
2answers
32 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
23 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
33 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
32 views

Running python module in gedit embedded terminal

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 ...
14
votes
5answers
815 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
74 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
6 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 ...
1
vote
2answers
36 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
15 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
31 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
19 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
791 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
23 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
23 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
309 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
31 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
32 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
16 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
39 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
0answers
16 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? [on hold]

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
63 views

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

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
19 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
19 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 ...
0
votes
0answers
25 views

I can't get into the sudoers listings [duplicate]

I try to type a command, to get Pinta (because GIMP isn't here for some odd reason) (Command is sudo add-apt-repository ppa:pinta-maintainers/pinta-stable/ubuntu), and it says asbell is ...
0
votes
1answer
26 views

Need to copy firmware files at /usr/lib to /lib using terminal

I have a Cubox-i4Pro and I'm running Xubuntu on it. In order to get Wi-Fi working I have to copy the firmware folder "brcm" from /usr/lib/firmware/brcm and make the folder /lib/firmware/brcm. Refer ...
0
votes
0answers
26 views

Terminal closing itself after 14.04 upgrade

All was fine in 12.04, in this case I'm using virtualbox in Windows. The upgrading process ran ok, no errors, no warnings. After rebooting the errors started to happen. Just after booting up there ...
-1
votes
0answers
10 views

Terminal Keyboard Behavor [on hold]

How do I modify Terminal Keyboard Behaviors in Ubuntu Terminal? Example: in Terminal in OS X the backspace deletes in insert mode as well as moving one character backward.
5
votes
2answers
241 views

Execute command from file in current shell

I want to executed command from file (which is script) in current shell in terminal. Example: I have file ch_dir contains following: #!/bin/bash cd /usr Now if I execute file usually as following ...
0
votes
1answer
77 views

No GUI before login on Ubuntu 14.04

After I installed Ubuntu 14.04 as the only OS on my computer on nomodeset to install the Nvidia drivers for my video card. I installed it and all is working properly. The only problem that I have is ...
4
votes
1answer
50 views

Run several xdotool commands in one line separated from each other

I'm trying to run xdotool type word then xdotool key Return from Startup Aplications Preferences. But if I use && or ;, xdotool evaluates it as continuation of input.
0
votes
0answers
12 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 ...
0
votes
1answer
30 views

How to display all user and groups by command

I want to display 1. All users and 2. All groups in my pc by using command-line. users and groups displays users currently logged and groups a user is in respectively. How to display List of all ...
-1
votes
0answers
22 views

automate ssh commands and read output

I am working on my assignment where I have to enter a certain key on ssh terminal to open next problem. There are several candidate keys which I have shortlisted and i need to enter them via ssh, ...
0
votes
1answer
10 views

No package 'ncurses' found [duplicate]

I'm trying to install XWiimote and they tell me to run ./autogen.sh in the installation notes . This is the output: zorin@Samsung-NP300E4Z-S03TH:~/Downloads/xwiimote-master$ ./autogen.shlibtoolize: ...
2
votes
0answers
31 views

Echo difference between Ubuntu and Red Hat [migrated]

I have mostly been experimenting with Ubuntu but recently was using a Red Hat Enterprise system and was surprised at a difference I found setting and displaying env variables. In Ubuntu I might have ...
1
vote
1answer
31 views

Make password appear censored in bash script

I am going to make this short and simple. I am making a bash script where the user needs to enter their root password using the read command and it will be stored in a variable. What I don't like is ...
-1
votes
0answers
13 views

Install command of terminal doesn't work [duplicate]

I'm a new user of Ubuntu(Linux). Using it from last 3 hours. I get problem when i try to apply any install command on terminal. Check screenshot to check my issue(due to low reputation i'm not able to ...
0
votes
2answers
39 views

Using Ubuntu command line to replace text in huge file

I have a huge XML file that I must work with. Right now the file is only 1 line that contains about 2 million characters which represent 30,000 records. There are no carriage returns or linefeeds ...
1
vote
1answer
58 views

How can I access my IP-cam with “motion”?

I'm using a cheap Hikvision 2032 IP-camera. The camera is set to IP 192.168.1.199. The mainstream I get (which is working in VLC) is: ...
2
votes
2answers
62 views

What is wrong with this script?

So I got this script from this guide: www.tldp.org/LDP/abs/abs-guide.pdf LOG_DIR=/var/log ROOT_UID=0 LINES=50 E_XCD=86 E_NOTROOT=87 if [ "$UID" != "$ROOT_UID" ] then echo "Must be root to run this ...
11
votes
4answers
1k views

What does /dev/null mean in a shell script?

I've started learning bash scripting by using this guide: http://www.tldp.org/LDP/abs/abs-guide.pdf However I got stuck at the first script: cd /var/log cat /dev/null > messages cat /dev/null ...
-1
votes
2answers
51 views

How do I know my MAC address? [duplicate]

how to check mac address of our system through terminal in ubuntu 10.04LTS ipconfig/all
0
votes
1answer
24 views

cp command “loud” version

Is there any way, to make cp - command "loud"? Sometimes I want copy large file, or directory with many files. It is very useful, to see what cp is doing right now, which file, % of this file or % of ...
1
vote
2answers
35 views

How can I redirect the contents of a file to the pastebinit command? [duplicate]

Whenever I was to store something to show someone here, I run command-with-output | pastebinit. That returns the link to the paste online. For example: echo timtjtim | pastebinit gave me the ...
0
votes
2answers
41 views

Updated to 14.04 and now my basic terminal commands such as “ls” dont work?

When I open terminal and then type in ls this is what I get: I'm guessing there's an issue with my bashrc or something similar but I can't figure out what to change, any help would be much ...
0
votes
1answer
40 views

echo command not giving correct output

I try to create output like 12DEC2013bhav.csv.zip in the script below. But it is giving me something like 12DEC.csv.zip instead: for (( i = 2013; i <= 2014; i++ )) do for m in JAN FEB MAR ...
0
votes
0answers
48 views

Ubuntu doesn't load, can't even open a terminal to type commands, even after boot repair

When I start Ubuntu I only get my desktop picture and am unable to open a terminal to type any commands. When I try a Guest session all I get is a red Ubuntu backdrop, nothing else. I tried boot ...