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

learn more… | top users | synonyms (6)

0
votes
1answer
13 views

Continuous logging of a filtered TCP stream

I am trying to log messages from a program "adsbox" that sends text lines on TCP port 30003. These lines are ADS-B messages received from passing airplanes. The rate is a couple of lines per second. ...
0
votes
0answers
26 views

Matlab Installation in Ubuntu 12.04 via terminal

Whenever I try to install Matlab 2014a in my ubuntu 12.04 via termianl then it shows the following error: fixme:heap:HeapSetInformation 0x2c4000 0 0x23fce0 4 fixme:win:RegisterDeviceNotificationA ...
3
votes
5answers
874 views

Is there any command in Linux which does not make a system call? [closed]

I was reading about system calls and I got a doubt whether any command runs without making even a single system call. If not then what is the command with minimum number of system calls? I used strace ...
0
votes
0answers
23 views

Make terminal look the same for all users

I know that probably his might be a really dumb question, but I don't know exactly what should I google to make this work the way I want. I have a server with Ubuntu 14.04. The idea is that the only ...
1
vote
1answer
50 views

Script to open terminal in particular directory, in particular workspace, then VIM to a particular file

Bonus: vsplit to another file. ;) I have 9 workspaces, and often have multiple terminals running VIM on different files. The setup is pretty standard for a project—but I have to go about opening ...
0
votes
2answers
25 views

How can I force terminal to always open in a specific desktop, regardless of which one I'm in when I press the shortcut

Basically the title. Using Lubuntu 14.04. Use case: I have two desktops, I'm in #1, I press Ctl Alt T , it opens in Desktop 2. I'm in #2, press Ctl Alt T it opens in Desktop 2.
4
votes
2answers
438 views

What's the difference between + and = when using chmod?

I read everything about chmod, but I don't get something. If I write chmod u=rwx file this "affects" me for all rights on the file, and if I write chmod u+rwx file this "adds" me all the rights on the ...
1
vote
0answers
25 views

DD command to copy broken drive HELP! [closed]

I want to copy the data of a broken hard drive to an other. Arrive to the conclusion: dd if=/dev/disk2 of=/dev/disk3 bs=4k conv=notrunc, noerror but here is the answer: dd: unknown conversion ...
2
votes
1answer
24 views

How to check the default handler for a specific file type in Terminal?

I often come across file types which I am not sure of, but yet need to open, but as I don't know what the default file handler on my system is for that specific file type (and sometimes the file ...
0
votes
0answers
15 views

blinking mouse cursor [closed]

weeks ago I installed Ubuntu on my brother's computer, the following days he told me than his mouse cursor was blinking and he couldn't use it. I have an idea, there was this unknow screen in the ...
0
votes
4answers
90 views

How to uninstall app from sudo command in the terminal [closed]

Keepass2 has been installing for 6 hours. Im not able to remove app.
0
votes
0answers
19 views

Xilinx ISE in Ubuntu

I recently installed Xilinx ISE 14.7, which works so far, but everytime I bring up a terminal window, now, I get the following lines in the terminal window before my cursor prompt. . ...
0
votes
2answers
46 views

How to install PgAdmin3 version 1.20.0 in Ubuntu 14.04

I try to install using PPA First, I add a link to a file repository source.list directory the /etc/apt/sources.list $ Sudo nano /etc/apt/sources.list deb ...
1
vote
1answer
44 views

How do I run this script with sudo from the command-line? [duplicate]

I have the following script in my user's bin directory; let's pretend the filename is 'myScript': #!/bin/bash python3 /myPath/myProgram.py "$@" From the commandline, if I type myScript, it ...
0
votes
0answers
22 views

rc.local commands execution

The general idea is: I have developed a script.sh (in java) that take a value from a .txt where a python code is saving data from a sensor, (with a specific range of time). This value is up to the ...
2
votes
1answer
221 views

Where's my phone mounted to browse it from shell? [duplicate]

I have connected a smartphone and would like to copy some file onto it using midnight commander. I've found out that the mount point is mtp://[usb:002,004]/Card/ however when I try to run cd ...
0
votes
0answers
35 views

Different terminal color for local and ssh (ALL ssh connections) [duplicate]

I want to use different colors for gnome terminal when I (1) work local on my computer (for example, green font) and (2) remote by ssh (using ssh keys) (for example, red font). I found many answers, ...
0
votes
1answer
24 views

how to export folder specific environment variables?

I have two projects on my computer that require JAVA_HOME to point to jdk7 and 8 respectively. Right now I'm working around this by having 2 files in my home folder that i source to set JAVA_HOME ...
0
votes
1answer
39 views

12 Hour Time Instead Of 24 in linux [duplicate]

I want to set my linux machine box 12 hours format,how to set it ,please advise I am able to display with #date +%r,but wanted to set it permanently
2
votes
2answers
67 views

How to embed a terminal into the desktop on Ubuntu?

I'm pretty new on Linux, so sorry if it's dumb, but is there a way to embed the terminal into my desktop? And btw, if the anwser is yes, can I embed another terminal on the side who only shows my ...
0
votes
1answer
34 views

How to change file text content only with Shell Script commands?

In a file, there is: sd5_crypt UUID=1337 none luks,discard I'd like to change it to: sd5_crypt UUID=1337 /dev/disk/by-label/MON_LABEL_ICI:/keyfile luks,keyscript=/lib/cryptsetup/scripts/passdev ...
0
votes
1answer
37 views

How to write a shell script to start gedit and not showing the terminal window? [closed]

How to write a shell script to start gedit and not showing the terminal window? That means: when I click the file runme.sh, only gedit window shows, no terminal window shows. Just like I click the ...
0
votes
2answers
36 views

Problem extracting tar file

I have tried the command : tar -xjvf FileZilla_3.7.1.1_*-linux-gnu.tar.bz2 After Giving this command getting these errors : tar (child): FileZilla_3.7.1.1_*-linux-gnu.tar.bz2: Cannot open: No ...
0
votes
0answers
24 views

How to convert h5 file to image?? h5topng not working?

i tried h5topng to convert h5 file to png in meep but the command is giving error. how to correct this and is there any other command to convert h5 to image? meep> h5topng -S3 eps-000000.00.h5 ...
0
votes
1answer
26 views

How to add more Languages\Voices to `Espeak`?

I've installed Espeak and tried this & this. But still I need more ! How to get Indian Languages\Voices as well as other languages like French, German,UK-English,etc.,? I tried to change the ...
0
votes
1answer
38 views

Is it possible to have a unique theme for Vim in Ubuntu Server

I recently started managing my own Ubuntu Server and I'm constantly using Vim to edit my files and I was wondering if it was possible to install a them to use overtime I login to my server? The ...
1
vote
2answers
25 views

Unable to exit TUIs due to F10 opening the File pull-down menu instead of quitting the program as meant to

I use applications such as Midnight Commander, and htop, however I have a problem when quitting, I am forced to either terminate the process, or to click on the quit button myself, if there is one, ...
0
votes
0answers
15 views

Command to move something to the wastebasket but not delete immediately [duplicate]

I know I can use the rm command in Terminal to delete something, but is there a more mild command which would move a file properly to the wastebasket as right-clicking on the file in a File Manager ...
1
vote
2answers
75 views

The foreground color changes after `ls` command

I change shell's foreground color with echo -ne '\e[1;31m' command but when I execute ls command the foreground color reverts back to the original previous color. This weird behavior doesn't occur ...
0
votes
3answers
38 views

Issue with folder permission [closed]

I created a bunch of files using the terminal. The file was assigned to the root and I am not able to edit them. Help! What am I missing? New to Ubuntu.
1
vote
1answer
23 views

Unity / gnome-terminal passing control keys

I'm trying to get a setup with GNU screen in gnome terminal that I'm happy with (emacs user). I really like having Ctrl+^ as my GNU screen command key (as it doesn't interfere with any emacs key ...
0
votes
1answer
35 views

Problems with unzipping openfire_3_10_2.tar.gz

While installing openfire got an error with unzipping the downloaded file that gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now When checking ...
0
votes
1answer
53 views

how to configure terminal in a text boot?

I use tmux in xterm and gnome-terminal.Configuring gnome-terminal's background and foreground is not an issue as it can be easily done through gui itself.Few things to mention: I can configure ...
0
votes
1answer
30 views

Cannot open gnome-terminal preferences window

After upgrading to Ubuntu 15.04, I can no longer access gnome-terminal preferences from edit > profile preferences. Things I have tried to no avail: Switching to another profile using terminal ...
3
votes
2answers
42 views

Why is my default shell from /etc/passwd not started by terminals in a Unity session?

I'm trying to set fish as my default shell. It's installed on the system through apt-get and is listed in /etc/shells: > which fish /usr/bin/fish > grep fish /etc/shells /usr/bin/fish I used ...
1
vote
0answers
56 views

Why is my shell slow after a while when I use git aware prompt and run git commands?

I am using git-aware-prompt in my .bash_profile on Ubuntu 15.4 like this: export GITAWAREPROMPT=~/.bash/git-aware-prompt source $GITAWAREPROMPT/main.sh When I am in one of my main repository ...
1
vote
1answer
44 views

Schedule shell script to display output in terminal

I have added a shell backup script to crontab, and it seems to run every night, but I currently need to check the target to see that it's worked. What would be much more helpful would be for the task ...
1
vote
0answers
20 views

Testing post-install scripts

I love to experiment with my Ubuntu GNOME 14.04, so there are many mistakes to be made and things to learn. Often I want a clean install, so I made post-install script. Question is: what is the best ...
8
votes
2answers
720 views

Why can I see the output of background processes?

For example, when I type ping 8.8.8.8 &, why can we see ping process working? And when I type find / -name '*test*' & , it's also seen on monitor. Why is that? Is it not really in background? ...
0
votes
0answers
32 views

How to fix Nautilus-Extension\Nautilus?

I've installed Nautilus-Extension. But It seems some problem with Nautilus and Nautilus-Extension. So,I've troubleshooted as per this but still I can't. I'm getting like this ! I have opened ...
2
votes
2answers
27 views

How to run yasm in ubuntu?

I recently have installed YASM but I cannot find any yasm in PC. Also, it was written that it would through terminal. However, I have no idea what it was about.
2
votes
1answer
40 views

Automatic Account lock/logoff script

I have 2 scripts created. The first one called "lock_logoff" and it does just that. It locks the account in the script and then logs them off. The second script unlocks the account. I got tire of ...
0
votes
1answer
34 views

Why does the Software Updater allow me to update the package list without authentication unlike in Terminal? [duplicate]

I have found recently that when running the Software Updater GUI it automatically, without asking for authentication, updates the local package list, but when running the equivalent in Terminal ...
0
votes
0answers
38 views

How to add samtools in the PATH permanently [duplicate]

I installed samtools executables within my bin directory under home directory. Installation works perfectly well. I am using Ubuntu 14.04 version and it has .profile and .bashrc in my home directory ...
0
votes
1answer
31 views

Replace text in file with variable using sed [duplicate]

I need to replace a string in a file by another string which is stored in a variable. Now I know that sed -i 's|sourceString|destinationString|g' myTextFile.txt replaces a string but what if ...
1
vote
0answers
22 views

How can I disable all command line access? [duplicate]

I make computers for a not-for-profit organisation. I don't want anyone to plug a keyboard / mouse / screen into it and be able to do anything on it. So there is a locked screen at launch, but you ...
-3
votes
0answers
25 views

How to check wether remote client is running firefox using ssh?

I want to login to client who is using firefox, i am using arp-scan to fing ip address and ssh to connect to respective client but i want to connect to client who is using firefox so how will i know ...
1
vote
1answer
34 views

Uninstall terminal [closed]

I ask here, because googling about is quite chaotic (you fall to 'how to uninstall via terminal). I wonder how to uninstall terminal ? Cause I want to add some hardness in playing with a delivered ...
-2
votes
2answers
108 views

how to search a word or text with in command prompt

For example i have printed a mysql big table from database on cmd which has 500 fields in it .How do i search for a particular word with in command prompt. I know grep is used to search strings or ...
0
votes
1answer
91 views

bin/bash: ruby command not found. Ruby not in sudo path

I can't seem to run any code on ruby with any text editor. This error is returned when code is run /bin/bash: ruby: command not found [Finished in 0.0s with exit code 127] [shell_cmd: ruby ...