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

learn more… | top users | synonyms (6)

1
vote
2answers
388 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
363 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
48 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
1k 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
98 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
104 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
68 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 ...
0
votes
2answers
42 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
1answer
143 views

If I use && to run two commands - do I need to put sudo in once or twice?

Suppose I have the following command curl -Lo .amb j.mp/docker-ambari && . .amb && amb-deploy-cluster (assuming this is running on vagrant - so not a real machine) And I know I've ...
-2
votes
2answers
196 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 ...
3
votes
1answer
1k 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
2k 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
26 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
321 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
432 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 ...
6
votes
2answers
1k 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
681 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 ...
6
votes
2answers
1k 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
1answer
5k 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 ...
11
votes
1answer
16k 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 ...
0
votes
1answer
590 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: ...
1
vote
1answer
68 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 ...
0
votes
2answers
121 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 ...
3
votes
2answers
7k views

How can I access the H264 stream from my IP-cam with “Motion”?

What is Motion?: Motion is a deamon application which allows Linux users to record pictures of webcams and ipcams based on motion detection or time settings. A Tutorial how to set up the stable ...
2
votes
2answers
125 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 ...
13
votes
4answers
18k 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
98 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
63 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
106 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
384 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 ...
1
vote
1answer
85 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 ...
-1
votes
0answers
1k 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 ...
0
votes
1answer
55 views

a command line output error generates while installing java on the system

Archive: /home/gaurav/Desktop/java/JavaSetup6u27.exe [/home/gaurav/Desktop/java/JavaSetup6u27.exe] End-of-central-directory signature not found. Either this file is not a zipfile, or it ...
0
votes
1answer
1k views

Running a .bash file in Eclipse

I know this is really an Eclipse issue but I can't seem to login in their forum. I am running eclipse juno for some c/c++ development.However, I wrote a .bash script that initiate the entire ...
1
vote
1answer
72 views

Bash searches for inexistent directories upon opening terminal

I tried to install IRAF a couple weeks ago but I couldn't get it to work so I ended up uninstalling the whole thing. Ever since, whenever I open my terminal I get this: bash: ...
1
vote
1answer
32 views

passing a font as an argument to a script

I am trying to use osdSH for notifications. It has a 'font' parameter that receives a curiously formed string. From the man: -f -font Set font (Default: ...
19
votes
3answers
658 views

What is the $BASH_COMMAND variable good for?

According to the Bash manual, the environment variable BASH_COMMAND contains The command currently being executed or about to be executed, unless the shell is executing a command as the result of ...
0
votes
1answer
399 views

Sudo command problem on Ubuntu 14.04

When type sudo command by Terminal then show error, How to fix this sudo: /etc/sudoers is owned by uid 1000, should be 0 sudo: no valid sudoers sources found, quitting sudo: unable to initialize ...
3
votes
1answer
152 views

Is there a way to mirror directory changes in Terminator?

I'm on Ubuntu 12.04 and am using Terminator as my primary terminal. I like it because it lets me keep a python interpreter and bash terminal open at the same time, in the same view. What is annoying ...
2
votes
0answers
68 views

Fullscreen is black with Fontconf warnings after updating Ubuntu [duplicate]

After having upgraded Ubuntu, I had the problem where Ubuntu was stuck in a login loop. To try fix it, I used commands from this forum: Ubuntu gets stuck in a Login Loop. Now, when I try to start ...
2
votes
2answers
123 views

How to Kill and Alternate X session via cli

Can someone tell me how to remove dormant X sessions. This question is similar to Logging out other users from the command line, but more specific to controlling X displays which I find hard to kill. ...
0
votes
1answer
1k views

how to concatenate two strings in shell script in 3.13.0-34-generic kernel

I want to concatenate two strings for the shell file im getting error when i have created the shell file in following manner could you please suggest how to get it set export ...
0
votes
2answers
39 views

Why the same .sh does not work with 2 different users executing it?

I have rwo users User1 and User2. I have this script1.sh inside User2 home folder: #!/bin/bash cd /home/user1 && ./script2.sh that calls script2.sh: #!/bin/bash if [ 2 > 1 ]; then ...
1
vote
0answers
199 views

vi issue in SSH TTYs to Ubuntu 14.04.1 LTS

After upgrading my server to Ubuntu 14.04.1 LTS, I can no longer use the vi editor to edit anything in an SSH terminal (I access the server by launching ssh sessions from Cygwin running on Windows). ...
0
votes
4answers
4k views

How to search strings inside files like in Windows without search monkey?

Hi I am using a vmware through which I cannot connect to internet because of security restrictions. I was wondering if there was a way to search for strings through the terminal but then find which ...
1
vote
1answer
1k views

How to install Firefox Aurora from a terminal?

I want to install Firefox Aurora in Ubuntu 14.04 from the terminal (I know there are other ways) but I can't. I've downloaded firefox-33.0a2.ca.linux-i686.tar.bz2 (linked from the download page) and ...
2
votes
3answers
396 views

How do I list all available shell builtin commands?

We know bash supports number of buitin commands like: $ type type cd help command type is a shell builtin cd is a shell builtin help is a shell builtin command is a shell builtin I want to get ...
5
votes
5answers
414 views

What is use of command: `command`?

Recently I found command: command which has no manual entry but help displays as follows: $ help command command: command [-pVv] command [arg ...] Execute a simple command or display information ...
1
vote
1answer
139 views

Linux terminal: Keyboard shortcut for moving across tabs [closed]

Is there any way to move across the different tabs in linux terminal like Ctrl + Tab for moving across different tabs in web browsers. I have tried Alt + 1 , Alt +2 etc... for moving along the ...
0
votes
2answers
117 views

How do I get rid of the password promting in the Terminal? [duplicate]

I am new to Ubuntu and I have a looot of issues :))! I saw that many things can be solved by typing commands in that window, terminal, which is kinda new to me( I am Windows 7 user, not a developer). ...