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

learn more… | top users | synonyms (5)

2
votes
1answer
40 views

Screen randomly switches to console

I have the following problem with Ubuntu 13.04: GUI randomly switches to console mode. If I suspend and wake up, it is in GUI again. A related issue is when I switch to a different terminal (e.g. ...
1
vote
1answer
518 views

Permanently Remove Item from `$PATH`

I've dug around forums trying to find a way to get rid of some default items in my path, but to no avail. Here is what it gives right now: ...
0
votes
0answers
127 views

Difference between ls and dir [duplicate]

Why does the output of ls appears in colour while the output result of dir command comes colorless? What's difference between the ls and dir?
0
votes
2answers
226 views

How do I adjust alsamixer?

How I chage alsamixer in the command line so that I can fine tune alsamixer and get rid of some white noise? Right now it looks like this. But from what I have read I need it to look like this. ...
0
votes
1answer
233 views

Can the 'cat' command be used to concatenate or merge multiple vcf files into one?

Will doing so overwrite my original files?
3
votes
2answers
72 views

CTRL-Alt-t opens term executes a command and exits

How do I get to the options screen that sets the command to run and whether to close right away or not. I think I need to get to the "Edit, Profiles" and change the default one. I set it to close ...
2
votes
2answers
861 views

Remove files in a directory based on partial name

I wanted to know what is the best way to remove any files no matter what their extension is based on a partial name. Example: 13-05-12_foo_something.jpg 13-06-01_something.png ...
0
votes
1answer
40 views

Can only open bukkit.sh with Java Web Start

I'm trying to run bukkit.sh file with java 7 runtime. Instead the only application I can associate the bukkit.sh java file is java web start. I've done the basics, installed java7, set the bukkit.sh ...
1
vote
1answer
638 views

How to install drivers for iogear smart card reader?

I'm still trying to learn how to use the terminal in 13.04. I downloaded the Linux drivers for the hardware and began reading the installation and immediately got lost. ...
0
votes
1answer
60 views

Ampersand To Open File Stopped Working

I have a symbolic link to sublime text 2 'subl', so usually I open or create files in the current directory by typing subl& hw2.py for example. This would open the file in the editor and allow me ...
1
vote
1answer
252 views

Errors while running Upgrade from the terminal. Can anyone help me analyse it?

Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After ...
4
votes
4answers
4k views

Please recommend a hex editor for shell

Can you recommend a hex editor that can be run from shell? I need to be able to edit not only view the content.
4
votes
4answers
603 views

Emptying the contents of a text file

I have a text file in my home directory which receives data regularly through a cron job. Because the cron job provides dynamic data, I would also want to set a cron job to empty the file contents ...
2
votes
2answers
269 views

Where can I put a user-defined terminal function?

I am planning to create a function that would simplify things for me. The function would be something like function lazymode() { echo "Hello World!"; } so that when I use the command lazymode in ...
-1
votes
1answer
246 views

Extract text from pdf, MS ofiices file and other document

I need a command line tool that will extract plain text from MS office files(all formats), pdf and other file formats. I looked at libre office command line but was not able to find the filters for ...
-1
votes
1answer
232 views

How to execute uWSGI with bash script and display warning if terminal window is closed?

I'm currently working on a web project on uWSGI, it's quite a chore to keep typing the same command in the terminal everytime I want to start up uWSGI, so I made an executable script that will ...
5
votes
3answers
10k views

How to read complete line in 'for' loop with spaces

I am trying to run a for loop for file and I want to display whole line. But instead its displaying last word only. I want the complete line. for j in `cat ./file_wget_med` do echo $j done result ...
1
vote
3answers
431 views

New to linux and starting with ubuntu 13.04 [duplicate]

guys i am new to Linux and wanted to know the details of working of Linux from the very basics I have started using the basic terminal commands but still i want to know them better and how it works ...
0
votes
1answer
206 views

How to fix lock error with AT command?

When I execute this : at 7:43 -f atfile.sh I get this : warning: commands will be executed using /bin/sh Cannot open lockfile /var/spool/cron/atjobs/.SEQ: No such file or directory So what I'm ...
0
votes
0answers
27 views

bash: ./metasploit-latest-linux-x64-installer.run: cannot execute binary file [duplicate]

I am installing tool for testing. but after download tool in folder, i try to install it by root@user:~ chmod +x metasploit-latest-linux-x64-installer.run root@user:~ ...
0
votes
1answer
55 views

Setfecl: Option -m incomplete, why?

My commands: sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs It returns: setfecl: Option -m ...
3
votes
1answer
2k views

mkfs.ntfs is not found, through the ntfs-3g package is installed

I'm trying to format a USB stick to NTFS file system with the mkfs.ntfs command and I get this in Terminal: horbuli@BOSS:~$ sudo apt-get install ntfs-3g Reading package lists... Done Building ...
0
votes
0answers
415 views

Initialize linphonecsh (linphonec) at start-up

I'm currently experimenting with linphonec (command line client for linphone) and everything is running fine so far as I am able to make calls, output voice using espeak etc. Now, instead of starting ...
0
votes
3answers
57 views

Is there a way to recover the data of unaccessible lines on the terminal?

I am running an algorithm that regularly prints data on the terminal. Unfortunately the terminal only shows a limited number of lines, the others are no longer accessible. Are they deleted or can I ...
0
votes
1answer
375 views

How to remove (uninstall) all games from Kubuntu 12.04 using CLI?

I see that the list of installed games is rather long. If I remove them one by one it will take hours using commands such as: sudo apt-get purge kbounce There is a meta-package called kdegames, but ...
4
votes
3answers
452 views

Why won't Ubuntu Terminal accept “\” character?

I can't get my terminal shell to accept a \ when I type it in. Nothing happens. I've Googled but haven't seen anything which seems to address this. I have no idea where I would start to trouble ...
0
votes
1answer
594 views

Can we execute a shell script by clicking [duplicate]

Is it possible to double click and execute a shell script instead of executing the following "./xxxx.sh" notation from command prompt ?
-1
votes
2answers
2k views

Batch program to copy files from one folder to another folder

This is what I am trying to achieve. I have two folders SRC and DESTINATION. SRC contains several subdirectories and files in it. A batch file should be built upon clicking it the following should ...
1
vote
2answers
3k views

Is there something similar to system restore in Ubuntu

I would want to know if there is a command that can change my system back to the state at some point in time, including changing any files that may have been edited
-1
votes
2answers
1k views

How can I setup RAID0 on two drives?

I have two 3TB drives that I want to RAID0. I have important files that I want backed up, and I believe that I'm after RAID0. If that's not correct please don't hesitate to advise me otherwise. I ...
2
votes
1answer
1k views

How to convert .pcapng files to .pcap/.tcpdump files?

I have a a few folders with 300 to 400 files each. The files are wireshark captures in .pcapng format. I would like to write a shell script that opens every file and saves it into a new folder using ...
0
votes
0answers
29 views

trying to apt-get… keep getting this message: [duplicate]

When trying to apt-get, I keep getting this message: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory ...
3
votes
2answers
6k views

Compressing folders with password via command line

I would like to know whether it is possible to do the following via CLI. I have a Folder F which contains several sub folders and some files. I want to compress folder F into .zip file with the ...
5
votes
2answers
7k views

What is the command line statement for changing the System clock?

Is there such command for changing the System clock' date and time? For example: The current date and time is January 1, 1970 23:30:59:980 where 59 and 980 refers to the seconds and millisecods ...
9
votes
2answers
5k views

What does this command mean: awk -F: '{print $4}'?

Please explain what does following command mean: awk -F: '{print $4}'
3
votes
3answers
6k views

Not able to install *.run file in Ubuntu? [duplicate]

I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI. I have to install few softwares in Ubuntu which are as follow: MPLAB X IDE version 1.90 XC8 Compiler and ...
0
votes
1answer
4k views

Trying to update but not enough space on boot (answer here) [duplicate]

The error message I get suggests "sudo apt-get clean" I try running it but nothing happens. Just get back to the prompt. Is there any other terminal commands I should try to clean temporary files ...
3
votes
1answer
166 views

Shell script errors?

I am trying to create an interactive bash shell script to make it easier to install and configure a postfix mail server,But have them still enter the commands and then the shell run them, but I keep ...
0
votes
1answer
1k views

command line, no desktop environment

I have installed an ubuntu in a computer with windows, but when i open the computer with ubuntu, there's no desktop environment, only a command line. I've even written my username and password on ...
0
votes
2answers
259 views

Python Errors when Installing LogMeIn Hamachi

When I go to install the beta version of LogMeIn Hamachi for Linux using the .tgz file download, I get this error when I run the install.sh file: Traceback (most recent call last): File ...
0
votes
1answer
840 views

How to copy files from multiple directories? [duplicate]

I have a bunch of text files in several directories I want to copy into another. What can I do, instead of going inside each directory and cp *.txt in this directory?
2
votes
1answer
501 views

problem running a command with incron

I try to print some ODT documents from LibreOffice 4 (Ubuntu 13.04 OS) to a Toshiba e-Studio 167 printer. When the document has fonts like Liberation Sans, Liberation Serif, etc., I get a printed page ...
0
votes
3answers
3k views

vmware-vix vmrun command error: “unable to connect to host … version not found”

VMWARE-VIX command "vmrun" failing I have checked in the online resources of the product documentation, and in discussion groups where other people experience the same issue. I have the following ...
0
votes
1answer
915 views

why sudo gem install fails but gem install succeeds?

I simply do sudo gem install sqlite3 and have response: sudo: gem: command not found Then I do gem install sqlite3 and it works. Where is the problem with sudo ?
0
votes
0answers
18 views

Script or Command Line for enabling/disabling touch pad [duplicate]

Is it possible for someone to help me out with my problem ? I would like to know whether it is possible to enable/disable touch pad using command line or via scripting ?
2
votes
1answer
118 views

Trying to understand my first server set up

I am trying to set up my first server and stack. I spent a week trying to do it on a virtual machine but could never get the ports to forward correctly so today I just dedicated the full machine. I ...
5
votes
4answers
229 views

Find what packages are installed from a repository

I'm trying to find what packages I have installed from a repository using terminal commands. I found a post somewhere saying I could use aptitude search "?origin (<repository>) ?installed", but ...
2
votes
1answer
283 views

How to keep the coloring in bash when using `sudo -i`?

I have changed PS1 variable in /etc/bash.bashrc to PS1="\n\[\033[0;37m\]\342\224\214\342\224\200\$(if [[ \$? == 0 ]]; then echo ...
5
votes
4answers
2k views

How to auto-mount from command line?

How can I trigger an automount from the command line? By "automount" I don't mean fully automatic mounting, but getting a list of available devices and then selecting one and having it end up as ...
3
votes
1answer
87 views

Why can't I restart my maia service?

I have built a mail filtering server on Ubuntu 12.04 Server using Postfix, SpamAssassin, ClamAV, and Maia Mailguard by following this guide: http://www200.pair.com/mecham/spam/ubuntu1204-maia.html ...