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

learn more… | top users | synonyms (5)

0
votes
0answers
11 views

Trying to run an Rscript from the command line but I'm running into namespace errors

I'm fairly new to Linux and I'm running into some major problems. I'm trying to run an Rscript from the command line instead of RStudio on amazon EC2 ubuntu instance. My script makes use of couple of ...
2
votes
3answers
3k views

How do I increase the terminal border size in xfce?

The terminal (and other applications) borders seem to be only 1 pixel wide which makes them almost impossible to click. I am aware that alt+right click has the same function, but I need the borders ...
6
votes
8answers
407 views

How to count occurrences of each character?

For example I have file 1.txt, that contain: Moscow Astana Tokyo Ottawa I want to count number of all char as: a - 4, b - 0, c - 1, ... z - 0
0
votes
0answers
18 views

Changing Background Image in Multiple Terminals

I was wondering if anyone would know how to change the background image in the terminal in a unique way. I know how to change it so that every instance of the terminal has the same background, but I ...
0
votes
1answer
7 views

How to set new JDK home in NetBeans IDE after Java update (NetBeans IDE refuses to start)

This is a question which will help you through what to once you have realised that after updating your Java version, NetBeans IDE refuses to launch. And even after updating your $PATH variable in your ...
0
votes
1answer
19 views

Terminal or Konsole?

I am using Ubuntu 14.10 with KDE graphical environment. KDE has Konsole as terminal emulator. Now I have Terminal and Konsole both on my Ubuntu. My question is which one should I use to run command? ...
14
votes
1answer
780 views
+100

How can I redirect what is shown on Terminal to a file, when using the 'less' command?

How do I redirect the Terminal content (the content that currently I'm looking not the entire file, when using the less command) into a outfile until I press the Q to exit from less?
0
votes
2answers
46 views

I can't get Graal Online to work

I checked, and my computer is 64bit. The file i downloaded is 64bit. I've tried the following things -> uname -m ./Graal ls cd Downloads/ ls ./Graal sudo apt-get install ...
2
votes
2answers
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
0answers
4 views

How to use utserver as service

Disclosure: I'm new to linux as well as StackExchange. If I am posting in wrong place or my post doesn't meet community standard, please spare a noob and point me to right direction. I have ...
0
votes
1answer
13 views

why is “export PATH” displayed in terminal as a title?

I have a long time using Ubuntu, probably 3 or 4 years, I've never had the need to "export a path". Now, I was installing Xilinx ISE 14.7 in Kubuntu 14.04 Trusty Tahr LTS following a tutorial, at ...
2
votes
2answers
34 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
1answer
31 views

Preserving text formatting when piping output to csv file

I have an executable which gives an output like the following, Posture state: 3 Posture side: 0 Posture state: 3 Posture side: 0 Posture state: 3 Posture side: 0 ...
0
votes
0answers
15 views

Random delays typing in a terminal

I'm testing 14.04.2 before installing it, using a live USB. Everything seems to work fine except that when I type in a terminal, random delays can occur between hitting keys and having them appear on ...
0
votes
0answers
17 views

Gnome 3 not working

I have Ubuntu 14.10 and had Gnome 3 working property except that sometimes it got stuck in the login screen and had to reboot it. So I decided to install Unity and re-install Gnome. I can access ...
0
votes
1answer
28 views

Connect to DUN using bluetooth in 14.04

Whenever i try to access DUN using Bluetooth GUI i always get Connection Timeout, that didn't happened before when i was using 12.04. Can anyone tell, is there any specific bluetooth issue in 14.04.? ...
0
votes
0answers
24 views

no option in terminal to “open new tab” and no “username@hostname”

I've a lot of time to fixing it by googling, but nothing is the same as mine. So, I posted the question here. In the fresh install, I have a terminal like everyone on google, but now I've a strange ...
0
votes
0answers
9 views

Error while loading shared libraries

I'm using a software called GPUOcelot in order to be able to compile a software that I'm programming that uses CUDA. But my computer doesn't have any NVIDIA card, so that's the reason why I am using ...
0
votes
1answer
458 views

14.10 only boots to UEFI Interactive shell

Hello I am very new to Ubuntu and am testing it out on a VirtualBox VM.. It installed fine, I was even able to install Guest Additions and a few apps before shutting it down for the day. Now when I ...
1
vote
2answers
88 views

Whats the difference between SUDO and Changing to root [duplicate]

If I issue a sudo /bin/bash` [sudo] password for mark: cmp -bl /dev/blah1 /dev/blah2 and using sudo cmp -bl /dev/blah1 /dev/blah2 then logging in as root? I don't see whats different, if ...
0
votes
0answers
13 views

automatically launch bash scripts that are currently user controlled? [duplicate]

I have written some scripts to collect system statistics through vmstat, iostat and sar and another script that controls processes. The process control one reads information from a text file and ...
6
votes
1answer
856 views

apt-get stuck at 0 [Connecting to us.archive.ubuntu.com]

When I do upgrade it gets stuck here: user@plato:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done ...
0
votes
0answers
4 views

Make KNetworkManager follow radio status set on the command line

I have installed the KDE desktop on my Notebook. However, when I enter into airplane mode on the command line by nmcli r wifi off the GUI of the KNetworkManager does not show the little ...
4
votes
1answer
37 views

Command line way to know the cyles of the moon

I'd like a simple way to know when the next fullmoon is, and would prefer not to rely on a web service. I don't want a GUI since I'd like to call this from a script. Thanks all!
55
votes
9answers
73k views

What's a command line way to find large files/directories to remove and free up space?

Looking for a series of commands that will show me the largest files on a drive.
-1
votes
1answer
26 views

What software do I need to exchange Bitcoins?

I need software that could run on Ubuntu desktops and server; a command-line one. I am using Ubuntu 14.04 64-bit both on the desktop and on the server. What software can I use? I have tried ...
0
votes
0answers
9 views

how to get jms connection factory details from the asadmin CLI for Glassfish

How do I get more specifics on jms/CrmConnectionFactory, using the get command, from the asadmin console? thufir@doge:~$ thufir@doge:~$ asadmin list-jms-resources jms/CrmQueue jms/CrmTopic ...
0
votes
0answers
14 views

files & directories are not share on server with 777 permission using sshfs

I am successfully mount the remote directories on my local directories, I have to created folder and files with 777 permission so others can able to access this files so that's why I used umask=000 ...
0
votes
1answer
19 views

Capturing commands for documentation? [duplicate]

I plan on configuring an Ubuntu Server via the CLI. Is there any program that can capture my commands (and perhaps responses)? Just trying to make documentation more efficient. Thank you.
0
votes
0answers
7 views

unity --replace Async Shell - Update Icon of Running Application

So I figured out how to update the icon of a running application. After doing the change the icon doesn't apply right away. I then launch terminal and then run unity --replace, running this flashes ...
0
votes
3answers
52 views

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

I would like to create a command-line alias to run a game (Minecraft in particular). How would I accomplish this? I want to type in runmc to run the command java -jar /root/.minecraft/launcher.jar. ...
9
votes
2answers
13k views

connect to wifi from command line

Other posts seems to be addressing more complicated network connection issues from the command line. The Unity panel Network indicator/button doesn't respond too well sometimes - it keeps trying to ...
-1
votes
0answers
19 views

Shell scripting for date intervals [on hold]

How can write a shell script (e.g. bash) that calculates the difference between two entered dates?
13
votes
2answers
15k views

How to open the additional drivers window using command line

How can I launch the additional drivers window from the command line?
1
vote
1answer
764 views

What are the functional differences between Lubuntu and Ubuntu?

I understand that Lubuntu utilizes LXDE over Ubuntu's Unity(Gnome?); But being new to Linux I'm not sure if that change is going to be simply cosmetic, or if there will be functional differences I ...
1
vote
1answer
25 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 ...
2
votes
1answer
192 views

Apt Terminal Progress Bar source code Ubuntu 14.04

I have read an article in OMG Ubuntu[0] about enabling the progress bar in the terminal. I'm browsing apt launchpad page [1] and browisng the code. Someone knows exactly where is the code for the ...
13
votes
3answers
1k views

How to tell what applications are accessing the hard drive and how frequently?

My hard drive is going crazy and I don't know what application is doing it. Are there any linux tools for profiling what processes are accessing drives and how frequently? top, htop and the like ...
0
votes
0answers
13 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. ...
5
votes
4answers
13k views

How to go between partitions in terminal

A very basic query which requires your kind guidance. If I am at command prompt in either DOS or Windows, I would use, (if I am in C: drive) d: to go to drive D. What is the equivalent in Ubuntu ...
1
vote
1answer
80 views

How to use the dd command to copy an .img file to an SD card?

I've been trying to use the dd command to send an .img file of mine to a partition on my SD card. The command is: dd if=/dev/sda6/media/david/desktop/stellar-unbrick.img of=/dev/sdb1 Unfortunately, ...
2
votes
1answer
49 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
1answer
298 views

sudo update-manager -d non-gui only alternative

sudo update-manager -d checks if upgrading to the latest devel release is possible (source: man update-manager). But it opens a visual application (windows, buttons and so on). Is there any command ...
0
votes
1answer
44 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 ...
2
votes
4answers
110 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 ...
16
votes
8answers
23k views

How to show only hidden files in Terminal?

I have a directory that contains thousands of files, some of them are hidden. The command ls -a list all files, including hidden ones, but I need just to list hidden files. What command should I ...
0
votes
0answers
17 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 ...
17
votes
5answers
19k views

Command line tool to crop PDF files

I am looking for an open source command line tool to crop PDF file just like we can do in Adobe Acrobat Pro. I have tried PdfTk, ImageMagick, PyPDF, and GhostScript—all with no success so far.
16
votes
5answers
11k views

X11 Forwarding over Gnu Screen, is it possible?

I use GNU Screen constantly. But, I've been trying to figure out if there is someway to get X11 apps to forward over screen when I am ssh-ing (Is that a word?). Currently if I try to run 'gedit' ...
2
votes
3answers
82 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 ...