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

learn more… | top users | synonyms (5)

2
votes
1answer
259 views

What is the command to search for 64-bit installed Java, JRE or OpenJDK?

I have a question about the following command: apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e ...
2
votes
1answer
50 views

Filtering a line with sed

I have a file with columns of the form number_number number columns of numbers I want to extract the columns beginning with particular numbers. I tried the following, but get nothing in output: ...
0
votes
2answers
72 views

Does GUI have shell behind it like terminal?

In Unix, the text we type on terminal window is sent to shell as input. How about GUI and TUI? Does it have shell too that handles mouse clicks and keyboard?
2
votes
3answers
132 views

Search and print the lines from the output which can contain lines with errors

I have a command example, device list which gives me all devices with their status as okay or error in the following format [okay ]: you are listening on : 11 [error ]: not currently ...
1
vote
1answer
104 views

Is there a command to scan my network and check the conflict IPs

It's hard job to find the duplicate IP when this happens. You know you have then to search all network IPs to check the duplicate. So is there a command line or a script to do that for me?
1
vote
1answer
2k views

Input/output error while executing cp command

I'm new in Linux I'm trying to follow a steps for install ROS on UDOO and I have the next problem. When I try to download and unpack ubuntu 13.04 i have the next problems: the command line is: ...
10
votes
3answers
707 views

How to display the name of file which I am currently editing with vim on terminal title?

I am editing multiple files located in the same folder, in multiple tabs, on a single terminal. pwd(directory in which I am currently working) is displayed on the top of the heading of the terminal, ...
1
vote
1answer
400 views

How to capture all visited URLs on the command line?

I like to get all URLs I visit in the browser live captured on the command-line for piping them to another program. How would I be able to do this? The format should be just one URL per line, nothing ...
0
votes
0answers
30 views

link on desktop with command terminal

I'm trying to create two files with command on desktop and easy to run duble click: $ xinput set-int-prop 3 "Device Enabled" 8 0 $ xinput set-int-prop 2 "Device Enabled" 8 0 and next file: $ ...
0
votes
1answer
60 views

Problems Burning Ubuntu onto USB - OS X

I've followed this guide by Ubuntu.com on how to create a bootable USB of Ubuntu. Ive even followed this video on YouTube. I have follwed it to the letter and all I get from the USB afterwards is the ...
0
votes
1answer
43 views

Closing sudo password [duplicate]

I cant download not a thing on Ubuntu download center.I dont know my root password. Its always wants sudo password.And I cant write it(ı dont even know it though) How can ı close or inactive it?
3
votes
1answer
108 views

How to find backlight is managed by which card?

Is there any command in ubuntu/linux which can help me in finding out that which card(intel or ATI card) is managing my backlight? When I looked at sys/class/backlight then I am able to find three ...
0
votes
0answers
28 views

Ubuntu boots to terminal on start up help?

I can log in but want to have a desktop. I installed it in Windows 7 I have tried uninstalling and reinstalling and it still did not work.
0
votes
1answer
61 views

What stats are listed at the bottom of a default byobu session?

I recently logged in to my media center via ssh because it was having issues, and noticed at stat at the bottom of my terminal in red with exclamation marks next to it, but cannot seem to guess what ...
0
votes
1answer
96 views

Eclipse missing menus when starting from CLI [duplicate]

I'm a new Ubuntu user. Over the past weeks I installed Ubuntu 13.10 and the latest Eclipse Kepler IDE, plus the workbench plugin from Libre Ada for the Gnat system. I'm using Ubuntu either locally on ...
0
votes
0answers
70 views

I'm very new to linux and i'm trying to install a game. I've downloaded Other-Life .zip. Extracted it. need help from there

I downloaded the game zip. I extracted it into my Programs folder but I don't know how to install it. On the website it says... Installing and using the client under linux: Download ...
1
vote
3answers
52 views

Terminating the Terminal process for a particular outcome

for example consider the following situation:: I need to print some numbers randomly one after the other with a time interval of 5 seconds between each, and I need to terminate the terminal process ...
-1
votes
1answer
323 views

How to update already installed software via command line? [duplicate]

I'm looking for a command line to update my already installed software.I want to update all of them.
0
votes
2answers
517 views

Image optimization with imageOptim using bash. How to get a summary

I am using imageOptim to optimize images on my server. It took me quite some time to learn rudimentary bash scripting to able to optimize all images in all my first level directories. My script looks ...
-1
votes
2answers
741 views

List all non system users [duplicate]

I want to know list of all users founded in my system. I need non-system users. I know that the file /etc/passwd contains all users root:x:0:0:root:/root:/bin/bash ...
0
votes
2answers
897 views

How to remove redirection unexpected syntax errors

I am loading using Ubuntu for beagleboard-xm sd card partition so after last stage of partition I have entered a command like this ./omap3-mkcard.sh /dev/sdX I have got ti-lab@KILBY:~/angstrom-wrk$ ...
2
votes
1answer
3k views

What is the command to display the last TEN lines in file: /var/log/syslog

I want to know what is the command to display the last TEN lines in file: /var/log/syslog
0
votes
1answer
76 views

How to check the current value of IFS?

I am currently running a shell script and I suspect the problem may be because I accidentally changed the default value of IFS which is a space to something else. I want to check the current value ...
1
vote
1answer
57 views

search for files and delete from the whole system file

search for files and delete from the whole system file If you create a file or just open a file with some programs like gedit, it will make auto save files named like this file~. For example if i do ...
2
votes
1answer
4k views

linux command to prevent dos attack by using netstat and iptables

I want to DROP more than 200 requests per ip to prevent ddos attack. this is command that i used to detect requests count per ip : netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print ...
1
vote
2answers
51 views

What is the name of the “username@hostname:~$” line?

Simple question! what is the name of the ubuntu@ubuntu:~$ or the username@hostname:~$ line? How should I refer to it?
0
votes
0answers
149 views

Gem5: Can't load object file tests/test-progs/hello/bin/X86/linux/hello @ cycle 644368

Using Gem5 Simulator for my project Used- scons build/X86/gem5.opt Then trying execute precompiled Hello World program using- build/X86/gem5.prof configs/example/se.py -c ...
0
votes
2answers
270 views

unable to type commands in terminal

I was install mpi and I have given the path for it in the .bashrc and I closed my terminal and after some time again I opened terminal it's showing following error in the very first line followed by ...
2
votes
1answer
183 views

How do you create a script to batch add repositories and then batch install packages?

I've used Synaptic Package Manager to save markings for all installed packages to a file. Here's a snippet: libmono-system-drawing-design4.0-cil install spotify-client install mono-2.0-service ...
5
votes
3answers
9k views

Create a .desktop file that opens and execute a command in a terminal

I would like to know how to write the Exec command of a .desktop file to open a new terminal and execute a shell script in it. The shell script is working and accessible by all users. When launching ...
0
votes
2answers
83 views

How to change directory to the old directory? [duplicate]

I am currently in /downloads directory. Before I was in /var/www directory. How can I return back to the old directory in terminal? I do not want to execute cd /var/www I need a simple command to ...
0
votes
2answers
68 views

iTunesToRhythm code not working?

Hello I am trying to install run this iTunesToRhythm. The supplied command is: iTunesToRhythm.py -w -a iTunes\ Music\ Library.xml ~/.local/share/rhythmbox/rhythmdb.xml The error I am getting after ...
2
votes
1answer
303 views

How to do bonding in ubuntu 12.04 in vmware workstation?

I followed process for bonding which is given on this site: https://help.ubuntu.com/community/UbuntuBonding but output is $ cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 ...
1
vote
1answer
184 views

Why do I get an error saying I must be privileged to use `crontab -u`?

I am trying to list all the cron jobs for all the users in my Ubuntu system using the following command: for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done Why am I getting the ...
0
votes
1answer
214 views

Creating multiuser chatroom in XMPP client

I am using the Profanity XMPP client to create a multiuser chatroom in the terminal. My understanding of the XMPP protocol is that when you join a chatroom with a new name like /join NewChatRoom ...
3
votes
1answer
126 views

How to find all the available commands in a package before installing it? [duplicate]

This question clearly explains about how to find all the commands which are provided by a particular installed package. My question is, how to find(or lists) all the available commands which are ...
0
votes
2answers
118 views

Help me fix my improper removal of files please

Upon opening terminal I get a notification: bash: /home/kylekroeck/Public/ccp4-6.4.0/bin/ccp4.setup-sh: No such file or directory My /.bashrc file: # ~/.bashrc: executed by bash(1) for non-login ...
0
votes
1answer
85 views

Ubuntu Terminal “Shortcut-Key”

I just changed the "Short-Keys" in Ubuntu. I set Ctrl+c for Copy. My fault ... so now I can't use Ctrl+c for killing the process in the terminal. But it is necessary for me to do this. How can I ...
-1
votes
1answer
137 views

Ctrl-l, Ctrl-a, Ctrl-e do not work any more [closed]

I accidentally deleted some files (do not remember what files), then Ctrl-l, Ctrl-a, Ctrl-e do not work any more on my mac. I tried to reinstall bash using brew install bash. But the problem is still ...
-3
votes
2answers
249 views

How to login in terminal as root anytime when I open terminal?

I don't want to type sudo and my password everytime.I think it is really annoying.Is there any command or option which will consider you root user when you open terminal,everytime When you open ...
1
vote
1answer
155 views

How can I remove an entry from a list in a shells script?

I have the following script: #!/bin/bash # Bash Menu Script Example PS3='Please enter your choice: ' options=("Option 1" "Option 2" "Option 3" "Quit") select opt in "${options[@]}" do case $opt ...
3
votes
1answer
1k views

Accidentally deleted /etc/fstab file

I accidentally deleted my /etc/fstab file by running sudo rm /etc/fstab.Without knowing this, i shutdowned my Ubuntu OS. Now i can't be able to boot into my OS. My screen look like this.In some ...
3
votes
2answers
108 views

Sending enter in interaction mode ubuntu 13.10

I'm trying to make a basic script for deployment of ocs-inventory and I got stuck on a problem. When I issue this command: sudo apt-get install -y ocsinventory-agent The interactive window ...
9
votes
2answers
2k views

What does the question mark in terminal command mean?

This question (How can I remove gnome from a kubuntu 12.04 install?) have the commands with question markes: sudo apt-get remove --purge ubuntu-desktop sudo apt-get remove --purge unity? sudo ...
16
votes
4answers
7k views

Why is moving directories to /dev/null dangerous?

When trying to move a test_dir directory to /dev/null, I get the message mv: cannot overwrite non-directory ‘/dev/null’ with directory ‘test_dir/’ Then why do people say "Don't run the command sudo ...
0
votes
0answers
55 views

I've wiped my hard drive, can't install ubuntu 12.04 (graphical error?)

I'm trying to install ubuntu 12.04 onto my laptop. I have it on a USB, from the ubuntu site. I deleted the previous partition table using GParted on a separate usb. It is completely unallocated. ...
1
vote
1answer
259 views

Trying to install rdpdesk-3.0

I believe I have installed all the prerequisites that the manual listed...For Building under Linux: Download RDPDesk source g++ autotools-dev libxt-dev (>=1.0.6-0) libgtk2.0 (>= 2.18.0) ...
2
votes
1answer
399 views

Can ssh onto server using PuTTY, but not ssh from terminal

I have a very simple Ubuntu server with a couple of git repos on it, nothing special. At home I used a Windows PC, and use the PuTTY program to interact with the server. At work however I have a Mac, ...
2
votes
1answer
65 views

How do I pass command line parameters to executables run from Xwindows?

Running Ubuntu 12.04.3 LTS In terminal mode executable would be run as: ../xpdp1 -i ../inp/maxwello.inp Is there a way I can click on the xpdp1 executable in Xwindows and somehow pass the -i ...
10
votes
2answers
448 views

Is it possible to set on-peak and off-peak hours in vnstat for monitoring bandwidth?

I have recently downloaded vnstat to monitor my Internet bandwidth usage. I have a limited data plan but my ISP provides unmetered bandwidth during off-peak hours (2:00 AM to 8:00 AM). So, I would ...