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

learn more… | top users | synonyms (5)

2
votes
2answers
11k views

Android SDK and Path

Since I've downloaded the Android development kit as a package (sdk, eclipse bundled together), I extracted it into /opt/android/sdk I ran the command nano ~/.bashrc command and opened the file. Now ...
1
vote
1answer
76 views

How do I “:set prompt” by default for a particular program?

I'm new to Linux. I installed Haskell and was going through a tutorial, which showed me I can :set prompt "ghci> " to change the prompt. I like the way this looks. How can I make it so that ...
0
votes
1answer
111 views

How to copy a website inside my WWW to another computer and make it work?

I have designed a website to create and sign certificates (.csr, .key, .crt, .p12) in my netbook using Ubuntu 12.04. Now I have to demonstrate that it works but my teacher wants to test it using a lab ...
-1
votes
1answer
365 views

How to run compiled C++ program on startup? [duplicate]

I have compiled and made an exucutable C++ program in ubuntu.But It only runs in terminal.that is I have to give the ./example command in terminal.If I click it nothing happens and says no suitable ...
65
votes
1answer
43k views

Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin [duplicate]

I'm running an Ubuntu Server 13.04, but I see the same on a 12.04: I have six directories with command files. These are: /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin What are the ...
0
votes
3answers
386 views

What does the dd command do?

Someone rooted my box and executed a command, help! dd if=/dev/urandom of=.huehuehue what does this command do?
2
votes
1answer
218 views

Is it possible to make a python script that runs on a specific terminal-profile

I have this python script that connects my desktop to the internet. there is not much text in it only a few messages about current status and time. So it would be really nice if i can open it (.sh ...
19
votes
3answers
4k views

“♦: command not found” in tty after login

I have this problem after upgrade Lubuntu from 12.10 to 13.04. I press Ctrl + Alt + 1, enter login, password, wait two seconds and get: ♦: command not found". After this message I can type commands ...
0
votes
2answers
70 views

How to reboot morethan one remote system?

I am using Ubuntu 10.04. I need to reboot multiple systems at a time from my Ubuntu machine.Tell me the way to reboot multiple systems at a time
0
votes
1answer
324 views

wget and curl somehow modifying bencode file when downloading

(this is a copy from my post on Stack overflow I am hoping someone in the ubuntu community can shed some light on the situation for me) Okay so I have a bit of a weird problem going on that I'm not ...
4
votes
1answer
4k views

How to change history size for ever?

the default size of history in Ubuntu is 1000 but it's too narrow,I want to change it to 10000, So I append export HISTSIZE=10000 export HISEFILESIZE=10000 to .bash_profile(it actually is ...
0
votes
2answers
291 views

Why is guake no longer displaying command prompt before $

Guake is no longer displaying the user and directory in the command prompt like: <name>@<name>-<computername>:~$ Instead it only displays the $ symbol which only separates the ...
3
votes
1answer
2k views

Relative path to source when copying or moving [duplicate]

This might be trivial, but here goes. In terminal, I tend to find myself moving/renaming/copying files that are not in my current working directory instead of cd-ing to the directory of those files ...
4
votes
2answers
1k views

Can I run command-line commands within a python script?

Sorry I'm kind of a noob at this: Basically I've downloaded this package that deals with text files that is run from the terminal, but the command I need takes in two arguments. I also need to do ...
1
vote
2answers
143 views

Simple shell script

I am quite inexperienced when it comes to Linux and now I am setting up the system. What I want to do is to write a shell script, that will do two things: Start i2prouter - as I do not want it to ...
1
vote
1answer
187 views

How to open scripts from Second Life viewer into console vim

I want everything that has to do with text to be edited within console vim with tabs. My problem is that I can't open files in console vim from GUI, I can only open them in gvim. Does anyone know ...
7
votes
5answers
611 views

How to use syslog for else output ( show up with whois - query )?

There is log-file /var/log/syslog with the output of ip-addresses like e.g. SRC=10.158.0.1. I want to scan from this file every printed address in SRC= ... and then to make query with whois (SRC= ...
2
votes
1answer
224 views

Crontab not working with inner unix command

I have following crontab entry which does not work. Please can anybody help? @midnight scp /home/xxx/file.txt xxx@yyy:~/zzz/file.txt_`date +"%m-%d-%y"` This command works very well when run from ...
0
votes
1answer
259 views

Command not working in .profile

In my .profile I have the following command, [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" Right now, to get my desired behavior I have to type source ~/.profile in ...
0
votes
2answers
170 views

Can I specify video format and pixels orientation when using clive for downloading Youtube videos?

Can I specify video format and pixels orientation when using clive for downloading Youtube videos? If yes, what is command?
0
votes
1answer
709 views

Linux Basic Commands [duplicate]

I'm new here. I just want to learn the basics of Ubuntu Terminal ! I know the very basic commands like changing directory, renaming, creating & deleting files. I'm looking for commands like ...
0
votes
2answers
2k views

How to Import a Variable from a Script?

I want to get a variable from another script, as demonstrated in http://stackoverflow.com/questions/5228345/bash-script-how-to-reference-a-file-for-variables However, the answer uses source command ...
0
votes
1answer
42 views

Unable to install drivers

Same problem as many times before. However, this time my problem is that i am unable to start the installation in Terminal. I have done all the preparations to install the drivers, extractions etc ...
0
votes
2answers
6k views

step-by-step instructions for installing programs in Ubuntu 13.04 [duplicate]

total novice, ex-windows user here, I would love it if you guys could help me a bit. I managed to boot Ubuntu from a DVD and it's all running smoothly, however, I decided to try installing Openoffice ...
2
votes
1answer
2k views

How I can set-up LXTerminal in Lubuntu to start maximized?

When I push CTRL + ALT + T I want see my default LXTerminal in Lubuntu 13.04 in full size (not like F11). I know that I can push CTRL + ALT + F1 and get tty-terminal - it good for some situations, but ...
0
votes
2answers
82 views

From where to start? [duplicate]

I would like to ask about where to start learning Linux OS. I not asking aboout how to install it, or how to use the openoffice, or Chromium explorer. I would like to have control of my computer in ...
1
vote
1answer
410 views

My terminal crashes upon opening

Right when I open terminal, it closes without me seeing anything. I have searched endlessly and still haven't found a solution. I am using Ubuntu 13.04. When I open xterm, login as root, and type ...
4
votes
1answer
2k views

Hourly GIT Push

Is it possible for me to automate a Git push every hour via a batch script. I would typically type in this: git add * git commit -m "latest update" git push ...
0
votes
1answer
152 views

How do I fix “No such file or folder” on invocation of a terminal?

bash: /home/boudaoud/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc: No such file or folder of this type bash: /home/boudaoud/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc: No such file or folder of this type bash: ...
1
vote
2answers
4k views

Problem on running shell script (how to NOT make it run from gedit) - Ubuntu 12.04

I want to run shell script or at least run it from terminal. I tried going to home folder/edit/preferences/behaviour and set executable text files to 'ask each time' but it doesn't even give the ...
2
votes
2answers
2k views

What does the script /dev/null do?

I was sued into another user to run screen, but I got the error Cannot open your terminal '/dev/pts/4' - please check. I found a solution: script /dev/null and after that I can use screen. Why does ...
1
vote
1answer
504 views

How resize of video in terminal?

I have video with size 560x288. I would like video with size 500x250 (change ratio and cut off rest). How to in terminal, please?
1
vote
1answer
1k views

Ubuntu default terminal in Lubuntu

Recently I had to re-install my linux OS, and now I ran into some annoying problems. I had Ubuntu, and then I installed the Lubuntu desktop enviroment. I do not like LXTerminal but I was able to use ...
1
vote
1answer
133 views

rsyslogd and system log output weird or normal?

currently I have this non-stop output in system log: [ 89.115236] FW REJECT (input): IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:23:5e:6f:ab:d9:08:00 SRC=10.158.0.1 DST=255.255.255.255 LEN=389 TOS=0x00 ...
0
votes
3answers
18k views

Where my linux password is stored on my system and how i can retrieve it? [duplicate]

I am currently logged in on my Linux system and i want to output my Linux password and username on my terminal, what commands i need to write and in which file it is stored and how i can retrieve it ? ...
8
votes
2answers
5k views

xclip on headless server

I've been using xclip to copy the output of bash commands like so: pwd | tr -d "\n" | xclip -selection c So that I can then paste the output into another terminal session. I was trying to use it ...
6
votes
3answers
1k views

How can I determine the page count of odt, doc, docx and other office documents from the CLI?

It's easy to find the page count of a PDF document from the command line: pdfinfo sample.pdf | grep ^Pages: ... but I haven't been able to find a similar method for odt files and other office ...
2
votes
3answers
383 views

How to declare functions as variables

I want to declare variable with pwd() function, which will give me the current path. I want to use pwd() function as ${pwd} variable, something like that. How I must write? Thanks!
0
votes
3answers
167 views

Options in bash commands

Are the commands' options case sensitive? i.e. I did rm -r directory And rm -R directory And I got the same results, whereas when I did ls -r directory and ls -R directory I got ...
1
vote
1answer
2k views

/usr/bin/ld - cannot find lib

I am compiling from source and I have the error: /usr/bin/ld: cannot find -lct How to fix it? Thanks. I tryed: sudo apt-get install libxt-dev But it doesnt help.
2
votes
3answers
388 views

beginner's manuals [duplicate]

Up to now I have used Microsoft Windows. I am a beginner with Unix generally and with Ubuntu 12.04 particularly. I have got advices to try the system by a command 'Firefox' and then to install a ...
1
vote
2answers
390 views

How to check what local server is installed in my machine?

How do I know if my machine (Ubuntu) is using some local server? Like wampp, xampp or lampp? And also how do I know my Ubuntu version something like that?
5
votes
3answers
6k views

Changing behavior of bash prompt when functioning as root

Before you click away, this isn't the typical "how do I make my bash prompt have color" question. I've already customized my bash prompt to look like this: [user @ host]----[$(pwd)] $ where ...
-1
votes
1answer
92 views

how to achieve more output about hidden processes?

unhide has found hidden processes on my machine with given PID. These PID are not listed in top or in htop. how can I get more output of these hidden processes, when PID is given ?
17
votes
5answers
6k views

Run a command with the argument from the last command

When running commands, sometimes maybe you need to run a command with the argument from the last command. How can you do this? Of course, excepting the use of the arrow keys and Del keys: ...
4
votes
2answers
3k views

Command line web browser using SSH, is there any way i can use

I am connected using SSH to a Ubuntu Box which is behind firewall and routers. From that Ubuntu box i need to open a router web page and login to the router for doing some changes. How can i from ...
0
votes
2answers
433 views

Litle question about ufw command

Hi guys i would like to setup a specific rule for my ufw but i have the problem. How could i type this ? from ip adress 192.168.1.203 on interface eth0 alow port 80 I have on local pc ip address ...
0
votes
1answer
389 views

Does placing a symbolic link in the path work the same as creating a symbolic link of an executable in the path?

As the title says, I'm about to do an install of an executable. Normally I would either 1. install the executable to somewhere in my path i.e. HOME/bin/ or if that wasn't feasible 2. would add the ...
0
votes
1answer
303 views

Update error Xubuntu 13.04

When I try to install or remove items I'm unable to do so due to 3 programs that aren't fully installed. Ive tried removing them and reinstalling but no luck when I tried to configure I got this:- ...
0
votes
3answers
3k views

How to open a Ruby file in terminal?

I have a ruby file saved on my desktop as test.rb. How can I open it with terminal? I have already tried to use /home/desktop/test.rb and what I get in response is bash: /home/desktop/test.rb: No ...