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

learn more… | top users | synonyms (6)

3
votes
1answer
2k views

terminal emulator vs terminal

I am a having a little trouble understanding the difference between running the terminal emulator from the GUI (gnome) and booting straight into the terminal. I have been a system/network ...
2
votes
1answer
744 views

How do I uninstall USB wireless divers that didn't work?

Computer/OS stats: Old (5 yrs?) Dell desktop computer Ubuntu 12.04 is the ONLY OS installed Mem: 1.5GiB Processor: Intel Pentium 4 2.8GHz OS type: 32 bit Disk: 37.8GB Background info I moved my ...
16
votes
4answers
10k views

What is the functional difference between sudo su and sudo -i?

Why is one preferred over the other in this example? sudo su echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf exit Please provide links to Ubuntu documentation.
3
votes
1answer
5k views

Change the background color of command line in zsh when I change the prompt theme

I installed the zsh package. Also, I downloaded the oh-my-zsh framework to customize zsh. When I change theme name in .zshrc file to one of the themes given here, it changes the color/type of prompt ...
1
vote
2answers
3k views

Set CLASSPATH for python

I want to execute a python file called "ex1.py". The execution works fine, the program does, what it ought to do. The problem is the following: This file is stored in the folder "/user_name/pythonEx"...
0
votes
1answer
83 views

unable to access mounted iso through terminal [duplicate]

Can anyone tell me please what I'm doing wrong? PS: here is a link: https://www.dropbox.com/s/l5wox3c1r1w2ylf/Screenshot%20from%202013-08-10%2017%3A11%3A14.png
2
votes
1answer
5k views

How to return to the shell/terminal?

Sometimes after I accidentally typing something in the terminal, e.g. after invoking a "tee" command I am unable to quit from that program to get back to the terminal. I usually try typing :q, quit, ...
1
vote
2answers
194 views

How do you know, using the CLI, the type of partition that corresponds to its id?

fdisk, and many other partition programs list the partition tables using a code or id for the partition type of each partition listed. How do you know the type of the partition, the type name (in /...
0
votes
1answer
911 views

Lubuntu: .desktop shortcut works on the desktop, but doesn't from the menu

I've created a simple shortcut.desktop in my Lubuntu 13.04 /usr/share/applications: [Desktop Entry] Type=Application Name=shockwave Icon=/home/zane/Pictures/Evil Decepticons.png Exec=/home/zane/...
0
votes
1answer
713 views

.sh file is not running changing directory command

my contents of .sh file are sudo -i cd /home/madhu131313/Documents/ I run it ,then it asked for root password, it changed to root, but it doesn't execute the changing directory
5
votes
1answer
399 views

View GPU processor activity in real time?

I wanted to know if there is such a terminal command or application that allows one to view the progress of the processes running on the GPU in real time. Basically, something like 'top' for the GPU. ...
0
votes
2answers
93 views

Shell script compsrison does not work as intended

The follwing code is for to compare two strings or variables. But, I cannot do it. I did a lot of googling, but no use. Here, output doesn't depend upon the changing of inputs. Can any one correct ...
3
votes
1answer
729 views

How do I make a shell script in Ubuntu Terminal?

Now I don't know if that is exactly what it is called, so please forgive my bad terminology and correct me if I'm wrong, but I'm looking for a way to shorten this bit of code: gcc -o hello hello.m \ ...
2
votes
1answer
2k views

Creating new user, inconsistent bash prompt

I've created a new user profile with: useradd kitty passwd kitty mkdir kitty chmod 0700 kitty chown -R kitty:kitty adduser kitty sudo #when I did it I initially didn't ...
3
votes
2answers
2k views

How can I use grep to view only part of BFGMiner which is being run in screen over ssh?

Okay, bear with me on this. I'm using a program called BFGminer, which hopefully you know is a bitcoin mining program. Anyway. It updates every second a few lines that look like this: DEVICE 0: xxxx ...
4
votes
1answer
19k views

Configure & Connect wireless network through the command line in Ubuntu 12.04

The wireless networks are detected, but I am unable to connect to them. Here is the code I've tried: sudo iwlist wlan0 scan (Working) iwconfig wlan0 essid "Network name" key s:"key" (Error for ...
0
votes
1answer
186 views

Strange message now appears when I open up my terminal

I was recently installing MySQL and everything seemed to go just fine, however, when I opened up my terminal to test a few things out, I got a strange message: No command '“alias' found, did you mean:...
1
vote
1answer
576 views

How to see all directories from remote?

I am on Ubuntu 12.04 server, after I login as sudoer from remote, I try to see all directories with ls command nut nothing happens. I can switch to the home directory by using cd /home and I see ...
0
votes
2answers
3k views

Changing current directory to shared filesytem using linux terminal

I have a shared filesystem (E: in my installation of Windows 7) in which I keep my programming codes. I want to shift from Windows to Ubuntu for programming mainly because I like the linux terminal ...
1
vote
2answers
427 views

Help I broke terminal

I tried the below "tip" trying to learn different things I could do with terminal and it does not work. Now I get an error message when I open terminal. How can I delete what I did? Thank you! ...
0
votes
1answer
304 views

Command to restore files from an unknown file format?

I have many directories inside a parent directory and using dd i gave the parent directory .img extension as following: dd if=/home/xyz/parentdirectory of=/home/xyz/backup_parent.img How do I get ...
2
votes
2answers
471 views

Terminal command to remove unknown file

What is the command to remove unknown file from terminal. Edit after following answer: Example: I have two files يا مهدي- Times-يا محمد Events.html مهدي Events.html how do i only first file?
0
votes
1answer
801 views

How can I manually install gcc tarball file in Ubuntu 12.04? [duplicate]

How can I manually install gcc tarball file in Ubuntu 12.04?
0
votes
1answer
540 views

How do I set up PHP and MySQL cronjobs on Ubuntu 12.04 (Precise Pangolin) server?

I just made a LAMP install and got SFTP working. My question now is: How do I set up cronjobs on Ubuntu server? I need to make some cronjobs for my PHP/MySQL application. I look for un-activated ...
0
votes
1answer
53 views

changing Y/n prompt in CLI

I am using Ubuntu 12.04.02 LTS Server. I want to change the prompt message "Do you want to continue" to "Is this desirable?" how would I do that?
2
votes
2answers
6k views

Terminal Buffer Size

I'm running Ubuntu 13.04. I perform a lot of work from the terminal and prefer to switch sessions (using Ctrl-Alt-F1, F2, F3, etc.). My desktop is less cluttered without the Terminal windows. When I ...
1
vote
1answer
14k views

How can I create an executable in Linux (beginner)?

The deal is that I just recently began to use Linux (Lubuntu) and I need some basic knowledge. My brightness on my Packard Bell Dot netbook is always on the highest, and the brightness control buttons ...
5
votes
4answers
2k views

A script for moving files from subdirs to parent dir

I am looking for a script for moving files from subdirs to the parent directory My folder structure looks like this. Inside of a folder A I have a lot of folders named 1,2,3,4,5... All these ...
14
votes
3answers
2k views

Exclude from * in command line

There are plenty of situations where the use of a * is virtually inevitable - e.g. rm -rf * in a folder that holds thousands of subfolders and files. But what if you want to exclude just one or two ...
1
vote
1answer
2k views

Unable to get ping output to text file

Below is my script to store the ping result on a text file, but the result stored in the output file is not complete, it is missing the last statement where ping stats are shown. Can anyone help in ...
2
votes
2answers
612 views

How to set a single shortcut to switch an Internet connection on and off

Which exact one-line conditional construct activates an existing Internet connection if it's off and deactivate it if it's on? I looked some on-line pages to understand the use of the "nmcli" ...
1
vote
1answer
181 views

Force terminal text editors to open specific file types first, if there are multiple with the same name

If I have multiple files all with the same name (except, of course, the extension), is there a way of making bash auto-complete to a specific extension when I open them from the terminal with a text ...
0
votes
1answer
659 views

PHP cli hangs after ppa update to 5.5

I remember having the exact same pb on my other machine, and I know I fixed in then, but I don't remember how... After installing php/apache/mysql/phpmyadmin from the usual repositories, I added ppa:...
1
vote
2answers
223 views

compiling Audacity 2.0.3

Starting from a download of Audacity 2.0.3 tarball, how do I go through the installation procedure. I have no experience of this procedure.
1
vote
1answer
4k views

Help needed in passing arguments from command line in bash

#function myfunc myfunc(){ echo $1 case $1 in e) a=5 ;; q) a=10 ;; esac } myfunc I need help in following : $myfunc.sh e echo $1 is not ...
6
votes
4answers
20k views

How to create shortcut for a command in terminal?

I want to create a shortcut for a command in terminal. Like for a command "ssh user@123.45.7.123", I just want a command "user" and the above command will run. Is this possible, and if so how can it ...
1
vote
2answers
234 views

How to see the amount of free disk space in files browser with 13.04 via terminal

I want to know how to see the DISK space using Terminal by command
1
vote
1answer
393 views

Black screen after 13.04. How do I get the display back through the command line

This is a common problem with Ubuntu. If I open the command line, something pops up really fast that says the BIOS disabled something. It let me login on the command line. I tried a bunch of commands ...
0
votes
1answer
200 views

Display part of fortune in different color

I created a custom fortune file for my favourite tweets in the format tweet and then the @username in a new line. An Example is: "You've changed." "Yeah I know, I'm a Transformer." @...
13
votes
2answers
43k views

How to open “Trash” through terminal?

i tried opening Trash by the command nautilus, but it gives me an error!
2
votes
2answers
1k views

How to send current of line of code to terminal input in gedit 2013?

I just switched to ubuntu. I want to use R and I am using gedit to write R script. When I was using Mac, I was able to use run a R script line by line. However, I have no idea how to do this now in ...
0
votes
1answer
155 views

Command Line Rename Korean File Name

I've this file I just downloaded with the name 최고다 이순신.E39.130720.HDTV.XViD-HANrel.avi, and I've the subtitle file You're.the.Best.Lee.Soon.Shin.E39.130720.HDTV.H264.720p-KOR.srt. How can I rename ...
1
vote
0answers
17 views

Attempting to get my terminal to play a specific ogg file while I type [duplicate]

My end game is to get my computer to make all of the sounds from my all time favorite video game from the 90's. I've already found the ogg file but now I want it to play every single time I type ...
-1
votes
1answer
175 views

tar - command different to 10 years ago?

With this question am asking "old rabbits" of Ubuntu resp. of Debian. Am puzzled by the "newer" use of command tar - I know that 10 years ago it was possible to tar a file to 1/3 of size or even less ...
0
votes
1answer
5k views

how can I recursively run chmod -x?

So I have my music collection living on my 12.04.2 server. This Collection has traveled with me over the years from a Windows machine to a MacBook Pro, and then finally to where it is today on the ...
0
votes
1answer
397 views

Converting Images through Terminal

I am trying to convert the images using terminal to pdf. THough All my Images are of same size. But when I convert it to pdf Some of images are of correct size but some are too small to read. I want ...
0
votes
4answers
4k views

single line group of commands as individual?

I made one small alias and got a question as , how to execute a single line group of commands as command by command with out breaking it ? echo " alias get='sudo apt-get install'" >> .bashrc &...
3
votes
3answers
15k views

Mount.cifs vs. SMBClient

I am using Ubuntu 13.04 to connect to a Windows 2008 Server: If I use mount.cifs //server/share /mnt/mountpoint -o username=domain/credentials I successfully connect, but if I try to cp a file, I ...
2
votes
1answer
2k views

Quit all instances of `gnome-terminal` via a command

This is half "this'd be useful for me" and half "hobby project" - I was wondering if it's possible to send a command via a gnome-terminal that will quit all instances of a program without using ...
0
votes
2answers
116 views

Open Ubuntu DIrectory In WIndows?

My Ubuntu has a problem with /etc/rc.local , because of it , my Ubuntu won't boot to desktop . So I want to remove some entries in rc.local on Windows , how can I do it ? Thanks . (I think I can't ...