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

learn more… | top users | synonyms (5)

0
votes
0answers
10 views

Another Error removing file: No such file in directory problem

I've read all the answers to this question that I could find, but I'm still confused. Here's my setup. I have a dual boot system. Windows XP Pro on one drive and Ubuntu on another separate drive. ...
2
votes
1answer
38 views

Ubuntu Linux 14.04 on Parallels Desktop 10, Mac OS X 10.10.2: Parallels and/or Ubuntu update broke Terminal (no command-line prompt)

I am running Ubuntu Linux 14.04 via Parallels (10.1.4) in Mac OS X 10.10.2 on a MacBook Pro. Today I received update notifications for Ubuntu (first) and then Parallels and stupidly installed them (I ...
0
votes
0answers
12 views

Unable to restore Unity after Compiz disable, can't open terminal

I've been looking through the forums and there are many similar problems but mine is a little different. I used Compiz and accidentally disabled Unity when I turned on Window Decoration. I found many ...
2
votes
4answers
96 views

count the number of unique values based on two columns in a spreadsheet

I need to count the number of unique values based on two columns in a spreadsheet. Suppose the file looks like this, ordered by name, surname, company: joe allen ibm joe smith ibm joe allen google ...
0
votes
1answer
42 views

What does cd [-L] [-P] [-e] [-@] do?

Out of curiosity I typed cd --help to see if there were any extra things you can do with changing directory, and it came up with cd: usage: cd [-L|[-P [-e]] [-@]] [dir] What does each option do? I ...
0
votes
0answers
12 views

Can't uninstall wine

I've downloaded a beta version of wine from the ubuntu software center, but ti wasn't what i was looking for so I tried to uninstall it from there wich I couldn't, I know almost nothing about ubuntu ...
2
votes
1answer
21 views

Ubuntu Software Center will not open

When I attempt to open the Ubuntu Software center via terminal the following shows: $ software-center 2015-03-03 13:07:01,990 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None' 2015-03-03 ...
0
votes
0answers
17 views

How can I truly clear a terminal window? [duplicate]

When I run clear in the terminal, the tab appears to be cleared of text, with only a fresh command prompt visible in the top left corner. However, the scrollbar is still active and if I scroll up, I ...
2
votes
2answers
111 views

Pipe file to gnome-open command

For example I want to open a specific book from Books directory. To find it I do ls | grep -i 'book_i_want' Ideally I would like to add next pipe with command, like this: ls | grep -i 'some_book' | ...
1
vote
0answers
12 views

gtk-launch .desktop is not using custom icon

I copied my .desktop shorcut to user_home+"/.local/share/applications/" then going to terminal and typing in gtk-launch nameOfMyDesktopFile it launchs it, but it doesn't take the custom icon. I'm ...
2
votes
3answers
74 views

Remove all text before last space in text file from CLI

I want to remove everything before the last space in a text file from the CLI Example text: 2015-03-02 21:34:15 20480 dump-2015-03-02-21-34.tar The string that should remain is ...
0
votes
0answers
23 views

How can i open sublime text using ubuntu terminal? [duplicate]

I want to open most popular text editor sublime text, Already opened by subl . command in existing directory files, but when press Ctrl+c then text editor close and with showing me terminal below ...
0
votes
0answers
12 views

Matlab installing [on hold]

Im having trouble with Matlab installation. I've downloaded a folder, which contains matlab, then in Terminal i've changed the directory to that folder. When trying to execute the command: sudo ...
0
votes
0answers
19 views

Bash cursor graphical bug in ubuntu 14.10

For the past few weeks (I'm not exactly sure on the timeframe, but I think it coincides with me upgrading to Ubuntu 14.10) I've had an issue with my terminal where, while typing, the white cursor ...
2
votes
1answer
102 views

Bash script, arithmetic with floating point variables / strings that represent them

I'm trying to create a simple script that takes an average load percentage of the CPU each minute. I'm doing this by using the sar command from the sysstat package. Here is my current code: ...
0
votes
1answer
41 views

How can display a message on terminal when open it [duplicate]

how can i display a message when open terminal. i want to display a Specified text right after open terminal any time. hence before do anything,i want that text will shown. i want to understand ...
2
votes
1answer
22 views

How to activate/deactivate a gnome-shell extension from command line

Let's say I have successully installed my set of gnome-shell extensions. But I want to deactivate/unactivate from the command line. This is only possible via mouse action, AFAIK. How can I do that ?
0
votes
0answers
13 views

Framebuffer driver commands not working

I was trying to do some tweaks in my Ubuntu terminal. I tried to show a BMP image using fbv. I was following this tutorial for that - I had a BMP image but using this command: fbv -d 1 /root/logo.bmp ...
3
votes
1answer
51 views

What are limitations of ubuntu phone comparing to ubuntu desktop?

All the reviews for ubuntu phone seems to be targeted for phone users (how is the touch, gestures, scopes, etc). I am however, interested to know about this new OS as an ubuntu users. I was wondering ...
2
votes
1answer
27 views

Rotate images from terminal

I have a directory with a lots of image but they are in wrong orientation. I want to rotate the images to correct orientation (mostly ±90o). Using image (shotwell photo) viewer I can rotate ...
0
votes
0answers
26 views

How to launch .desktop file from terminal

I have a file on my desktop named "Firefox - Profile B.desktop". I am running Firefox in profile A. I tell Firefox Profile A to run a command in terminal. I'm trying to make it launch "Firefox - ...
0
votes
0answers
8 views

Ubuntu failed to start session on Mac Book Pro retina

I am running Ubuntu 14.04 on a macbook pro retina and I was trying to set up gnome 3 as DE (Desktop Environment). But when I tried to log out and log in, it failed to start the session, a message ...
0
votes
1answer
24 views

teminal text entery problem [duplicate]

After a command is entered in a terminal I am then asked for a password but the terminal freezes and won't let me enter the password. How do I fix this.
0
votes
1answer
96 views

Printing from arrays vs awk 'NR

I am currently printing out values from vmstat stress tests using this: vmstat -a $INT $CNT | awk 'NR > 1 {print $13,$14,$15}'> vm.log_$D & sleep 5 && stress --vm $cores -t ...
0
votes
1answer
19 views

How to get help on a specific option of a command [duplicate]

I guess the title says it all. I know I can get help on a specific command, for example wget, like this: wget --help But how can I get help on some specific option of that command? For example, I ...
0
votes
0answers
27 views

How to start lxsession from command line with proper user priviliges

I'm trying to achieve two things that I can not get to work because I don't know how to correctly start an lxsession in Lubuntu 14.04.2. I boot to the command line with the following line ...
7
votes
3answers
315 views

Pre-define colors for Terminal?

I was trying to remember how I could pre-define colors inside of .bashrc file so they could be called on when I do ${RED} for example. I can't remember if this was the right way of doing it, but it ...
0
votes
2answers
28 views

Use of “cp” command between root user's home and plain root

How do I use the "cp" command to copy files from root@pcname:/home/username # to root@pcname:~ # I have been able to use the "mv" command to move a file, but when I use "cp," it tells me that the ...
3
votes
1answer
30 views

Display 'cd' accessible path to mtp device in Nemo

Nemo displays path to mtp device like that: mtp://[usb:001,007]/ I want to be able to copy path from Nemo to terminal and cd there. Maybe it's possible even with this path while escaping some ...
0
votes
0answers
19 views

Unable to install ubuntu-14.04.2-desktop to VM

I downloaded ubuntu-14.04.2 to my documents in Windows 8.1 I then extracted the files and copyed them to my D:\ DVD drive, I then opened my VM Machine and I get a 2.0 Shell prompt ! What command do I ...
1
vote
3answers
55 views

How to check which shell am I using?

I read that terminal is nothing but shell. Then unix provide different flavors of shells: Bourne shell (sh) C shell (csh) TC shell (tcsh) Korn shell (ksh) Bourne Again shell (bash) When I open ...
0
votes
1answer
58 views

How do i write a terminal script to setup ubuntu for me instead of spending days every time?

From what I understand I can make a text file with all commands same as I would type in terminal, make it executable and run it. Would running sudo mysetup.sh or mysetup.txt be OK so not typing PW ...
0
votes
0answers
21 views

How to run an alias command with sudo [duplicate]

I created an alias called runmc that allows me to start up a java program. But I noticed that when I type in "sudo runmc" (It needs root access to work properly.), it will display "runmc: command not ...
0
votes
4answers
44 views

How would I create an alias to run a game? (Minecraft)

How would I accomplish this? I want to type in runmc to run the command java -jar /root/.minecraft/launcher.jar. I already put the following into my .bashrc file alias runmc ="java -jar ...
0
votes
1answer
23 views

Taking video and snapshots simultaneously using a webcam

I'm trying to do something fairly specific and I was wondering if anyone had some suggestions for ways to do it. I'm working on a program and for it I need an application to do the following ...
3
votes
1answer
50 views

How can I run a script when the power supply is plugged-in or -out?

For some reason, my laptop's screen brightness does not update when I plug-in or plug-out the power supply. I've looked at quite a few solutions for that problem, but none of them seemed to work well. ...
0
votes
2answers
26 views

Help reverting changes to GRUB

Okay, so I tried to use this fix for my blackscreen when going into tty command line sudo sed -i -e 's/#GRUB_TERMINAL/GRUB_TERMINAL/g' /etc/default/grub This did not fix it, but I found something ...
2
votes
1answer
52 views

Can there be two init processes?

I am new to Operating Systems (specifically Linux) and this is my first question here I want to ask, can there be two process with CMD = init (as given by ps - e command). I had two processes on my ...
0
votes
0answers
20 views

command to Close the Archive manager automatically [closed]

I am trying to unzip the files from source folder and after unzipping them i want to put extracted files in the destination folder for that i am using below command x source folder -o destination ...
3
votes
2answers
70 views

How to stock all files with the same suffix into a table?

i'm making a little shell script and i want to stock all files with same suffix in a table. i want something like that : path=/home/user/Documents suffix="_suffix.txt" and then a function that ...
1
vote
1answer
64 views

Complete List of Terminal Commands and all their parameters [duplicate]

I was wondering if there was any complete guide to the Linux Terminal (don't mind buying a book or something), specifically, I want the list (or book) to do an A-Z of the commands with all their ...
0
votes
1answer
27 views

Can't get IPython to start: “ImportError: cannot import name start_ipython”

I'm trying to start IPython from the terminal. I input: ipython into the terminal and I get this output: Traceback (most recent call last): File "/usr/local/bin/ipython", line 4, in ...
4
votes
1answer
159 views

How to prevent output from '&' and '>' operator (send to background operator and redirection operator)

I have tried various combinations of gedit, &, >/dev/null 2>/dev/null. When gedit is used with the other two it always prints something to the terminal. I understand that the numbers are ...
3
votes
0answers
38 views

Terminal crashes when running lsblk -h [closed]

Im currently running Ubuntu 14.04 LTS. In the desktop I open a terminal window and type: lsblk -h And the terminal crashes! lsblk on its own runs fine. lsblk --help also crashes the terminal. If I ...
0
votes
0answers
17 views

how to run “acpype” program?

If I want to open this program, I am giving "acpype" in the terminal and getting the following error: sslab1@sslab1-ThinkCentre-Edge72:~$ acpype bash: /usr/local/bin/acpype: Permission denied What ...
0
votes
0answers
17 views

How to install Sublime Text 2.0.2 on Ubuntu 14.10 [duplicate]

I have the latest version of sublime text → Sublime Text 2.0.2 x64.tar How can I install it on ubuntu 14.10 ? Thank you.
0
votes
0answers
12 views

LTSP Ubuntu thinks I'm a different user, but $USER and $HOME are correct

I am running an Ubuntu 14.04 system with the XFCE4 desktop as a fat LTSP client. Ubuntu seems to be under the impression that I'm a different user. When I go into the terminal, the \u portion of PS1 ...
0
votes
0answers
18 views

Executing C programs from HDD or PenDrive [duplicate]

So lately I've been in C programming. On trial and Error and Basis I tried Compiling(GCC) and Executing(./a.out) from my Windows' partition and Pen-drive i.e. precisely I tried executing on NTFS and ...
0
votes
1answer
17 views

--resizebyte: command not found [closed]

I'm trying to resize my Ubuntu VirtualBox hard drive through my MacBook Air terminal and I'm having a bit of a problem. I used the command VBoxManage modifyhd <uuid>|/Users/(my ...
0
votes
0answers
22 views

How to Compress (More then one at a time) PDF files from terminal

I work with lots of rather large imaged documents ranging from a few bites to multiple gigs of data per file. I need these documents to take up less storage space and especially to be more ...