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

learn more… | top users | synonyms (5)

1
vote
1answer
23 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
0answers
12 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
29 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 ...
0
votes
0answers
6 views

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

I'm using a cheap Hikvision 2032 The camera is set to IP 192.168.1.199. One stream I seem to get is: rtsp://192.168.1.199:554/ISAPI/streaming/channels/101?auth=YWRtaW46MTIzNDU= Is there any way to ...
2
votes
2answers
51 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 ...
3
votes
4answers
357 views

What does /dev/null mean in the shell?

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 ...
0
votes
2answers
30 views

mac address in ubuntu 10.04LTS

how to check mac address of our system through terminal in ubuntu 10.04LTS ipconfig/all
0
votes
1answer
20 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
34 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
38 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
23 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
24 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
19 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
23 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
15 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: ...
11
votes
2answers
82 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 ...
-1
votes
0answers
20 views

Can't understand the directory or tree system to establish a link within Ubuntu 12.04 [on hold]

Without formal training using Unix I made changes/fixes using advice from a forum, the advice is good but there are gaps. /usr/lib/mozilla/plugins< How do I find out if that is the correct ...
0
votes
1answer
53 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
61 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 ...
1
vote
0answers
21 views

Fullscreen is black with Fontconf warnings after updating Ubuntu

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 ...
0
votes
0answers
24 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
24 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
27 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
40 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
51 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
34 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 ...
1
vote
3answers
57 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 ...
3
votes
2answers
224 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
69 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
58 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). ...
0
votes
0answers
26 views

Ubuntu 14.04 cannot start after execute command 'sudo apt-get install gtk+-' and shutdown laptop

Well, a little while ago, i was installing a serie of apps, and one requirement was to have installed gtk+ 3.4, next, as can be expected, I googled how to install it and...I executed the command 'sudo ...
0
votes
0answers
16 views

No Downloads, Documents, … folders in Home folder after installing dvsdk

Today I have installed dvsdk package in Home folder. For installing i have changed the mode using chmod 777 and executed ./[package_name]... After that, it asks where to install, I chose home ...
2
votes
1answer
30 views

How to run a command without keyboard? [duplicate]

I am wondering if it is possible to run a command without keyboard. Actually, I would like to run dmesg and save the output into a text file. I have written previously a bash script which does the ...
3
votes
1answer
24 views

Launch file manager from terminal with a keyboard shortcut

I would like to use a keyboard shortcut to launch the file manager in the working directory of the terminal (the reverse equivalent of Keyboard shortcut for "open a terminal here"). How can ...
1
vote
0answers
22 views

WiFi Repeater Creation

I need to make my pc act as wifi repeater. It is possible in windows using netsh commands or connectify software http://www.wikihow.com/Create-a-WiFi-Hotspot-Using-the-Command-Prompt Is there any ...
1
vote
1answer
22 views

“Close Nautilus and open terminal in the same directory”?

Is there a way to do this? Whether by a keyboard shortcut or a context menu item or something? Note: I specifically mean "close Nautilus" -- this works for opening a terminal without closing ...
-1
votes
2answers
44 views

Ubuntu ssh clients

is there a ssh client similar than filezilla but i all so need to use terminal sometimes. Support for ssh access key is all so requirement. It would be great if i just could jump up and down files in ...
0
votes
1answer
49 views

How does sudo!! work on Ubuntu

I love the idea behind the command: sudo!! but it doesn't really work on ubuntu (14.04 and earlier). When I type apt-get install htop It will obviously tells me to run the command as super ...
0
votes
1answer
16 views

How to mount a drive when in xmonad using terminal?

So, I've been itroduced to XMONAD by now, and he tiling window manager seems classic. I'm stuck when I have to access a file from another drive (It's a NTFS drive), so I found the way to list the ...
0
votes
1answer
41 views

Alias to open multiple text files in different directories from terminal

After hours of searching and trying different gedit plugins I did not manage to add a session saver to gedit to open some files in Ubuntu 14.04 (see here). So, I am trying to create a permanent ...
1
vote
1answer
16 views

What's my public IP over a Tor?

I'm attempting to figure out how to obtain the IP address that represents my connection over a tor network. What do I type into a terminal to see this information. Ultimately, I'm attempting to create ...
1
vote
1answer
22 views

display only the git root directory if it is a git directory in PS1

I know you can do something like this for the PS1: Corvid @ ~/github/gitdirectory (master) $ but, this might be a bit odd: I want to only show the basename of the git directory, no matter where I ...
2
votes
2answers
32 views

How to check if I can connect to a server port?

I have a Riseup account, but I just can't get the SMTP to work. I have tried all the tutorials, nothing. Neither Thunderbird nor Sylpheed work. Then I thought that my ISP might be blocking the ports ...
3
votes
1answer
19 views

How to scroll down vboxmanage output?

When I type the vboxmanage command I get a sort of manpage output, where it shows all the information at once. How can I view the info incrementally like less/more commands with files?
2
votes
3answers
47 views

An Ubuntu/Linux alternative of Bulk Rename Utility for Windows?

I have only spent 5 months with Ubuntu and it has been an awesome experience, I hardly boot into Windows now, but there are some things I miss, like the Bulk Rename Utility I used to have in Windows. ...
0
votes
2answers
17 views

How can I bulk-add a file's creation date to the filename?

I have generated a time-lapse series of images and have named them sequentially {0000..9999}.jpg This isn't great for browsing the whole set as it's harder to tell when a given image was taken from ...
0
votes
0answers
16 views

WUBI admin permission in graphic environment and installing question

While I can more or less create directories and such in folders like usr and bin ("root directories" right) through terminal comfortably (I say more or less because I set the password through wubi and ...
0
votes
1answer
28 views

What command will start debian upgrade? [duplicate]

I'm looking for a command that starts verbose terminal version of what can I see after clicking Upgrade in update manager: What command(s) can do that?
2
votes
1answer
20 views

Terminal tab not opening in same directory

Since upgrading to Ubuntu 14.04 whenever I open a new Tab in the Terminal I am in the Home directory instead of the directory I was in in the other Tab. How can I change it to stay in the directory ...