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

learn more… | top users | synonyms (5)

0
votes
0answers
67 views

Ubuntu 12.04 starting on terminal

Well, today i started my ubuntu 12.04 laptop but it doesn't load!!!! It ends up in a black screen(terminal) with my user name asking for my user and password i press startx and it says the program ...
0
votes
3answers
4k views

what is the command to restart firefox from the command line?

how to restart firefox from the command-line. I have already given as "firefox". Is this the right command to restart the firefox?
1
vote
2answers
3k views

Create a Screen session with a bash script using contab

I want a .jar file to run every time the server boots up (we're using a VPS), and so I've edited crontab using crontab -e and then adding @reboot bash /home/bash/startserver.sh. But I haven't even ...
0
votes
0answers
27 views

How to get out of initrams command line

I just installed ubuntu OS on my mac and whenever I run it, it goes straight to command line. How do I get to the desktop?
3
votes
1answer
488 views

PATH variable is reseting itself

Every time I close my terminal and reopen it, simples command(e.g. ls) doesn't work. It shows the following error, irfan@irfan-Y500-Elementery:~$ ls Command 'ls' is available in '/bin/ls' The ...
0
votes
1answer
459 views

Can't Execvp “ No such File or Directory ” Error in geany Editor

I am getting this error in Geany Editor while executing a simple program: Can't Execvp " No such File or Directory " I want to set xterm as Geany Terminal Emulator. But I think I've accidentally ...
26
votes
3answers
3k views

Why do shells call fork()?

When a process is started from a shell, why does the shell fork itself before executing the process? For example, when the user inputs grep blabla foo, why can't the shell just call exec() on grep ...
0
votes
0answers
31 views

user/admin password using the root shell, new password is not recognized by the system when doing SSH

When I reset user/admin password using the root shell CLI, it says that the password reset was successful. But, when I try to exit and normally reboot, the new password is not recognized by the ...
0
votes
1answer
393 views

AWS Elastic Beanstalk Command Line Tool setup

I have the AWS Elastic Beanstalk Command Line Tool running on my Ubuntu 12.04 LTS Virtual Machine but I can only get it to work if i set the location of EB to the exact website folder I am going to ...
0
votes
0answers
26 views

Terminology won't open

I have installed Terminology terminal but when clicked, it won't open. Running Ubuntu 13.10. I also installed Enlightenment Desktop Environment but it won't open there either.
4
votes
1answer
1k views

What is a good alternative to the sux command?

With the coming 14.04 release sux (wrapper around su which will transfer your X credentials) is no longer included in Ubuntu. (I think it is being removed because it is being pulled from Debian, ...
1
vote
0answers
18 views

Why is my terminal invisible after minimizing it ubuntu 12.10 [duplicate]

I am using 12.10. I am able to get my terminal with [super] + [w] keys but not with alt + tab keys. why is it invisible after minimizing the terminal. how can i correct it ?
0
votes
1answer
2k views

How to change terminal theme / behavior?

Like Excel / .Net / Java can terminal also be a user friendly ? In current scenario it's single colour window single font and working with merely zero GUI, limited people who are aware about commands ...
21
votes
5answers
1k views

How to view multiple files in single terminal?

Sometimes I may need to access multiple log files for troubleshooting , but I don't want to open them in different terminals. What I want is to open them in same terminal. Is there any way I can ...
4
votes
1answer
135 views

Force nautilus to ignore extensions

We all know(or will know one day) that Ubuntu(or GNU/Linux in general) does not work with extensions of file to recognize what kind of file it is.Rather it uses Magic Numbers. A Magic Number is a ...
1
vote
1answer
126 views

How to check if a restart of open-iscsi was ok

I am working on a bash script to connect a iscsi initiator to a target. After I have edited the iscsid.conf in the initiator I have to restart the open-iscsi with the command: service open-iscsi ...
2
votes
1answer
98 views

Can I open a new terminal with a new binary executing in it?

I tried to write a script that opens a new xterminal with some binary file(not command) running in it.The whole script looks like this: #!/bin/bash XTERM="/usr/bin/xterm -bg WHITE -e ...
10
votes
6answers
5k views

How can I run this sh script without typing the full path?

I'm still very new to Ubuntu. I'm using 12.04, and I'd like to know if there is a way to run this program/shell script without typing: /opt/idea/bin/idea.sh It's kinda tedious and I'm quite lazy. ...
0
votes
1answer
442 views

Launch Logoff Screen Using Terminal On Lubuntu 13.10

How can I open the logoff screen from my terminal instead of clicking the logoff button? This is on Lubuntu 13.10. Screenshot of the logoff screen: http://i.stack.imgur.com/JBton.png
1
vote
1answer
71 views

Problem Opening Programs and Where is what I intall?

I download Java to run Minecraft and also other programs that need installation. When I open it, instead of opening it with an installation or something it opens the folders inside of the program with ...
0
votes
0answers
110 views

Terminal and Bash Meta/Alt key combinations

It seems to be impossible to use the Alt key as the Meta modifier for some Bash line navigation commands such as M-f and M-b. This is because Meta = Alt, and Alt-<letter> opens any menu that ...
0
votes
2answers
57 views

List of past commands used in the shell

How can I easily see a list of commands I recently entered in the shell? Instead of going up
4
votes
2answers
201 views

Terminal not working. Prompt gone!

I've closed the terminal killing a process, after that when opening a new terminal the prompt wasn't there. After searching online other questions, with CTRL-C y get the prompt back. However, when ...
0
votes
1answer
48 views

Default path changed after uninstalling python and reinstalling ubuntu-desktop

I was trying to uninstall python3 from ubuntu 12.04 with the following command: sudo apt-get remove --purge python3* and it just remove many things from system, including the ubuntu-desktop. After ...
0
votes
2answers
75 views

How do I know the system call for a particular command?

I'm new in Ubuntu and I have this question about strace ls command. When I'm run this command it gives all the system calls. What if I need to know the system calls for a specific command, for example ...
0
votes
2answers
91 views

How to list the size of a directoy and subdirectories and files inside it by terminal?

Is there a command to list a directory total size and then each sub-folder and files inside it . Its good to sort them by increasing order also so i can know which is the grater folder size . Any ...
0
votes
1answer
116 views

While loop in Shell

I want to make a while...loop statement in my Shell script like: while [ $line < $line_number ]; do echo $line done But there is an error. I think it is because I wrote it in bash code. But ...
1
vote
0answers
22 views

rename app stops running from toolbar

After installing some apps, I wanted them to open via the terminal. Unfortunately Ubuntu uses names for these new apps that are hard to remember. I renamed my file by: mv ¨old file directory/old ...
0
votes
1answer
629 views

Execute script in sh mode instead of bash in Shell

I added my script called mylovelyscript.sh to /bin/ folder. My script contains code that echos text with different text colors. But when I run my script like $ mylovelyscript it executes in bash ...
0
votes
1answer
49 views

New installation-beginner - desktop but no Terminal /Shell / USB drives present or available

Have just installed 13.10 [ 64 bit ] on spare Windows XP ( 64 bit ) machine ie C drive is partitioned. Desktop works fine but how do I access the Shell / Terminal ? Also none my USB drives are ...
1
vote
1answer
2k views

No such command 'sip show peers' when using asterisk

i want to connect two soft phone using asterisk after configuration the sip.conf and iax.conf and extension.conf can't enter any order from cli example of the error: Connected to Asterisk 11.6-cert1 ...
1
vote
2answers
72 views

Terminal Startup [duplicate]

my problem is in my account on ubuntu 13.10 when i open terminal the cursor is something like that "$" not something like that root@yunus-ubuntu:~# or yunus@yunus-ubuntu:~# why it is happening i ...
1
vote
0answers
211 views

Problem with characters encoding in bash in 12.04 new install?

I just installed Ubuntu 12.04.4 64 bits, all seemed to be ok, when I started to work on console I noticed: that I couldn't get some accented characters typed in to the console, for example, if I ...
1
vote
1answer
48 views

Receiving an Error when Trying to Delete a File?

I'm trying to remove some files from an installation I screwed up. I went to the directory in the terminal, and typed sudo rm PCSX but it tells me it doesn't exist even though I can quite clearly see ...
-2
votes
1answer
126 views

Shell Scripting [duplicate]

I'm trying to run my .sh file but when I try to execute it it doesn't work. I did echo '#!/bin/bash' > cadetkpgm.sh in order for the .sh file to be executable but when I use ./cadetkpgm.sh or bash ...
0
votes
2answers
126 views

Nano save to stdout (or an inline editor for terminal)

Is there a way of saving nano to stdout? Or an inline editor for terminal? I mean, I would like to do things as for example, editing an interactive php script like (from terminal): $ php ...
1
vote
1answer
230 views

How can I encrypt my home folder after a Ubuntu Server 13.10 install?

I would like to know the command(s) to enable the encryption of my home directory after installing a Ubuntu Server with a release version of 13.10. Note: This is a Ubuntu Server install, not a ...
2
votes
1answer
1k views

omit filenames in grep

I am greping a string from multiple files, but the one undesired side effect, is the filename prefacing the output. How can I suppress the filename outputs using only grep? $ grep -i lp lpNet* ...
0
votes
1answer
604 views

Executing C++ program on Geany

I recently installed Kubuntu 12.04 LTS and I'm fairly new to Geany. I've used it on other computers but never installed it myself until now. Now, I have C++ code that I've run on other machines (also ...
7
votes
1answer
118 views

How to lists different image-formats recursively in a tree?

How would I efficiently go about searching for .png | .svg | .xpm image-files in a complex and recursively structured hierarchy in one query, using terminal (and if possible | (pipe) tree in the same ...
-1
votes
1answer
2k views

how to install zip package from cd on ubuntu server using command line? [closed]

i installed ubuntu server, don't have internet connection but have .zip package on a cd. how do i install it? mounted the cdrom already and can see the application
0
votes
2answers
70 views

Where can I put commands that I want to run for all interactive, non-login shells?

Normally, in bash, the answer would be ~/.bashrc or /etc/bash.bashrc. But unfortunately Ubuntu is sourcing these files from ~/.profile and /etc/profile respectively. So, where should I put such ...
0
votes
1answer
295 views

Can't Change To Document Directory [duplicate]

I'm brand new to Linux, and know pretty much nothing. I wanted to learn about the Linux terminal and started watching a video, the video showed how to switch directories and they switched to the ...
0
votes
1answer
124 views

“System is running in low-graphics mode” error [duplicate]

I am very new to working with Ubuntu and working with command line input. Last night I tried to install Netflix desktop app which required wine-compholio, wine-browser-installer and lib(I forget the ...
0
votes
2answers
2k views

Change or Assign a Drive Letter to an external hard drive (or any drive)

I have an external hard drive that I formatted with Ubuntu (using the Gnome Disk Utility aka Disks) as an NTFS file system. Most of my computers in the house run Linux but I have a house mate using ...
1
vote
1answer
958 views

Console doesn't show pretty UTF-8 characters in Shell

I want to write some pretty, special characters taken from Web in my Shell Console with echo command. I want to write, for example, ▲ character, but it shows me ��� character. How can I solve the ...
0
votes
0answers
19 views

Why sudo passwd doesn't work anymore? [duplicate]

I installed eset, but it asked for the root password and I had not set one yet. So I went to the terminal typed in sudo passwd, set the password, and installed eset no problem. But now, like 10-15 ...
0
votes
1answer
599 views

How to install Synaptics touchpad manager with terminal? [duplicate]

I need to get this to get my touch-pad working but I am unable to install it with Ubuntu Software Center as it says ` "Update Error: Require Installation Of Untrusted Packages"
3
votes
1answer
163 views

Open man pages in help window using terminal

While using Gnome Do, I discovered that man pages could also be opened in help window as shown in this image. What is the command to open manuals in help through terminal?
0
votes
1answer
1k views

How do I add a standard user into sudoers' file using `echo`? [duplicate]

I am using Ubuntu 12.04 and I was doing through a terminal tutorial. There was explained about echo command and he mentioned something about adding your name to the sudoers file using echo >>. I ...