Debian :: Terminal - Commands Not Taking Arguments

Nov 5, 2010

I'm not really new to debian. Just never encountered this before. I'm not even sure how to describe that. The first time I realized something was wrong when I tried to create a file with dd:
root@strych ~# dd if=/dev/zero of=1GFile -bs=10M count=100
dd: bad operand `-bs=10M'

I mean what, I've done that many times before! Then I noticed that some commands started to behave this way:
root@strych ~# ls --help
--help: No such file or directory

On the other hand...
root@strych ~# fish --help
fish - the friendly interactive shell
or
root@strych ~# apt-get --help
apt 0.8.6 dla i386 skompilowany Oct 4 2010 11:55:22
Usage: apt-get [options] command
apt-get [options] install

So what the hell is wrong with my shell? This is persistent with any type of access: both ssh and local (physical), it's the same when I use sh, fish, bash or whatever. It also doesn't matter which user I'm logged in with. I haven't changed .profiles or anything concerning terminal really, besides installing fish but even that was long before I realised this problem. Actually, I can't think of anything that I've done that could do this. What am I missing? The system is debian testing with kernel 2.6.32-5-686.

View 9 Replies


ADVERTISEMENT

Software :: Taking Command Arguments From Serial Port Into Shell Script

Jun 11, 2011

I have a linux system connected to an external sensor device that spits out strings of serial data every few seconds. I need to send the data to a remote URL for logging and graphing purposes.

The data coming down the serial is essentially in the format:

And I need to call a URL from my linus box in the format

wget -s [url]

I can read the data to the shell using cat </dev/ttyS0 but I'm now stuck as to how I might then format that data and pass it to a shell script which would presumably run in an endless loop and contain the wget.

View 6 Replies View Related

General :: Running Shell Script Taking Command Line Arguments In A Jsp Page?

Feb 10, 2011

how to run a shell script taking command line arguments in a jsp page.

View 1 Replies View Related

General :: Passing Commands As Arguments To Functions In Bash Script?

May 31, 2010

I wrote a simple bash script to let me treat any set of programs like a deamon. For example if I configure the script a certain way I can start/stop/get the status of apache, mysql and php all from one command. I am having a bit of a problem though. I am passing commands as strings to a function and then depending on the arguments to the script it might run one of these commands or another. Some of these commands need to beun in the background though, such as deluge-web. When I send "deluge-web &" to the function and it execute it deluge-web does not start in the background. I can't figure out why this is. I have tried escaping the & with ''s and with a , but nothing seems to work. I know that this is some idiotic thing that I am overlooking, but I am a bit stumped. Here is the script configured to start/stop/get status of deluged and deluge-web.

Code:
#!/bin/bash
function checkanddosomething {

[code]...

View 3 Replies View Related

Debian :: All Terminal Commands Not Found

Mar 9, 2016

I'm messing around with a new install of Debian 8, trying to get a sandbox of Oracle DB 12c up and running in an ESXi environment.

open-vm-tools was giving me troubles (resizing the window didn't make the resolution change), and Oracle DB was fighting me with environmental variables.

Well, while I was troubleshooting the Oracle issue, I needed to reboot. When it came back up, I couldn't log in. When I attempt to log in using known working credentials, the screen goes black like it should, and then loads the login screen again.

I SSH into the box and try to run commands, but every single command I run returns "Command not found" including "ls" "su" "cd".

I'm able to boot into recovery mode, where the commands work under root, but I'm not sure what to fix....

View 6 Replies View Related

Server :: Seems That The Rm -rf And Cp -a Commands Are Taking A Long Time To Complete In What Should Be Short?

Jun 10, 2010

I am backing up data from a remote server onto a local ntfs partition. It seems that the rm -rf and cp -a commands are taking a long time to complete in what should be short, incremental backups.Has anyone had similar problems when backing up to an ntfs partitionHere is my rsnapshot.conf:

Code:
#################################################
# rsnapshot.conf - rsnapshot configuration file #

[code]....

View 5 Replies View Related

Ubuntu :: Gnome-terminal Dying/disappearing With Custom Launch Arguments?

Jan 24, 2011

I work on a number of servers and do so many repetitive tasks that it's easier for me to make launchers on my desktop for these tasks. It's also necessary for opening windows in my secondary screen. I like to view the error logs as I work, so I have a screen session on my servers that 'tail -f /the/error.log' for easy viewing. I set up a launcher on my desktop that launches the following command:

Code: gnome-terminal --display :0.1 --geometry=156x33 -x ssh -t my-server 'screen -r' The command works perfectly. The window is created on the correct screen, with the correct size and information. The problem is gnome-terminal will exit/crash with no errors after a little while. This happens sometimes when I get up from my computer as well as while I am working on it.

I am saying that there are no errors because I have opened a terminal and ran the command in that terminal. When the new gnome-terminal closes, there are no errors or abnormal output on the generating gnome-terminal.

View 1 Replies View Related

Ubuntu :: Terminal Commands / Getting Into Usb Pen Drive From The Terminal To Run A Program?

Feb 10, 2011

i started using computer when it was all dos driven so thought i was going to be fine using the terminal in ubuntu the problem i am facing is i can not quite get my head round why is it if i load the terminal. and the first this i type is dir or ls it gives me a list off directories. So why is it if i type cd /pictures i get no such file or directory ? Confused

This also bugging the jebus out off me is i am trying to get into my usb pen drive from the terminal to run a program i have on there.

so i type cd /media
then typed ls
is displayed New Volume <-- This being the name off my pen drive
i have tried every this to get into there but the commands i would use in dos are not playing ball.

Can some one please explain how to get into my usb pen then tell me were i can go read on this as i really can not get my head around this at moment.

View 5 Replies View Related

Networking :: Downs Process Speed Reduced / When Open A Terminal Or Run Any Gui Application Its Taking Time?

Jan 19, 2009

if my network downs my system process get slow down ... only in user mode but in root it is working fine ..the process slow especially if i try to open a terminal or run any gui application its taking much time comparing to normal time where network is up ..

View 2 Replies View Related

Ubuntu :: Starts Conky But Also Shows "output To That Terminal So You Can't Do Any Other Commands To That Terminal"

Jan 24, 2010

if you do the command conky in terminal, it starts conky ofcourse, but it also shows output to that terminal so you can't do any other commands to that terminal, Is their an option like you can do with the '&' sign in other cases? If you do the '&' sign with conky it still gives output, also the conky -d command gives output...

View 9 Replies View Related

General :: What Are Some Useful Terminal Commands

Mar 30, 2011

I know CD, Apt-Get, and Dir, but besides that I know mostly Command Prompt commands and that's not many, and they seem to differ from Terminal. What are some useful Terminal commands that I should know how to use in times or need?

View 3 Replies View Related

Fedora :: Terminal Commands For Certain Things?

Jun 24, 2010

My linux computer just kicked the bucket, so Iḿ kinda stuck on testing terminal commands

Can somebody give me the commands to:

1. Start the smb service.
2. Start the libvirtd service.
3. Create a symbolic folder link at /opt/google/chrome/plugins that links to /usr/lib/mozilla/plugins
4. Create a symbolic folder link at /opt/google/chrome/plugins that links to /usr/lib64/mozilla/plugins

View 2 Replies View Related

Ubuntu :: Multiple Commands At The Terminal?

Jan 21, 2010

I am in the process of coverting some video files to motion jpeg (Wii) files with ffmpeg (great program by the way). I have been successful and so the majority of my work is over. My question is simple (I think) but complex to me so... here it goes. Is there a way on one command line to "batch" convert 8 or 9 files together instead of one by one. I just don't know what to put on the command line. I took one UNIX class a long time ago and the terms pipe and such come to mind... but I forget. Any takers? That was I can write what I want the computer to do in the morning and just come back after work and voila...

View 6 Replies View Related

Ubuntu :: Make A GUI For Terminal Commands?

Feb 27, 2010

Is there any easy way to Make a GUI for terminal commands?

View 2 Replies View Related

Ubuntu :: Can't Do Any Sudo Commands In Terminal

Mar 20, 2010

I was following a guide to stop Ubuntu from always asking the root password. And apparently i messed something up in vsudo edit or something like that i was in... So now when i put in a sudo command i get this...

Quote:

>>> /etc/sudoers: syntax error near line 18 <<<
sudo: parse error in /etc/sudoers near line 18
sudo: no valid sudoers sources found, quitting

so i cant even get back to undo what i edited.

View 8 Replies View Related

Ubuntu :: Running The Commands In The Terminal ?

Apr 11, 2010

I am trying to boot debian on my nexus one the guide i am using is telling me to run these commands

I am getting to the point where i type the command # cd /sdcard/debian but it tells me cd: can't cd to /sdcard/debian.

View 9 Replies View Related

Ubuntu :: How To Run Terminal Commands Synchronously

Apr 30, 2010

I've created a bash shell script, to open a few graphical programs. Trouble is, the next one doesn't start until I close the first one. How can I just skip to the next program?

View 2 Replies View Related

Ubuntu :: Run Other Program Commands From The Terminal?

May 7, 2010

Is there any way to run commands of other programs from the terminal?opened a doc file from the terminal using>openoffice.org filename.docis there any way to executeSELECT ALL[ctrl + a] orCOPY [ctrl + c]from the terminal?

View 2 Replies View Related

Ubuntu :: How Does The Terminal Guess What Commands You Want?

Nov 17, 2010

I couldn't really find a general Ubuntu discussion area. So I typed ipconfig and of course it said no such command blah blah blah. What I found interesting was that it provided a list of other commands I may have meant to use, ie. ifconfig. So what's the algorithm used to determine the commands? Is it SOUNDEX or something else?

View 1 Replies View Related

Ubuntu :: Terminal Commands - Install .tar.gz ?

Nov 30, 2010

Unzipped the folder in home/folder wordpress-3.0.2.tar.gz and now have a file called 'wordpress' Can someone walk me through the terminal commands to install from here.

View 1 Replies View Related

Ubuntu :: Get Into The Terminal From Keyboard Commands?

May 6, 2011

I upgraded to 11.04 today and wanted to reconfigure so that I could have the desktop cube again. Once I started trying to switch my settings for the cube configuration compiz asked whether I wanted to turn off various features and apparently among them was the control bar on the side and top of the screen. Now I log in to Ubuntu and I get my workspace and that's it. No control bars, just the workspace. I need to know a few things:

1) Has anyone else had this problem?

2) How do I get into the terminal from keyboard commands?

3) What terminal commands do I need to bring back at least the main toolbar so I can access programs.

View 1 Replies View Related

Ubuntu :: When And Why Use Basic Terminal Commands

Jul 16, 2011

Im new to ubuntu and I was wondering if someone could list some basic terminal commands and explain what they do, and when and why you would use them.

View 4 Replies View Related

Ubuntu :: How To Run Commands On Terminal Startup

Aug 3, 2011

I have a question regarding terminal. I try to launch it from the "Startup Applications" by entering a script.Code: sh -c '/usr/bin/gnome-terminal'but it does not start.Also, when it does start I would like it to auto run certain commands: navigate to my project folder run "play test" open a new tab run "top".how can I achieve this?

View 9 Replies View Related

General :: Check Available Commands In Terminal?

Apr 13, 2011

i don't know if there is a way to check or see the list of commands available to each shell you decide to use, be it BASH,KSH, etc in your terminal. You know how its works in microsoft, in cmd-line or dos, you type HELP and its brings all the commands available for use.

View 6 Replies View Related

General :: Terminal Commands Running Behind The GUI?

Jan 10, 2010

Recently I gained interest in running command from the terminal, like rhythmbox-client --play-pause and vlc --open, but I could not find the vlc's pause command under vlc. there's a way I can have a terminal display the commands that run when I do some action. For example, when I click on pause in vlc, the terminal should show me what command it used to pause vlc. What's the closest ting I can get to this?

View 1 Replies View Related

General :: Where Learn The Terminal Commands?

May 13, 2011

How or Where Can I learn the terminal commands?

View 11 Replies View Related

General :: Difference Between These Terminal Commands?

Feb 18, 2011

difference between these terminal commands?

dpkg -l
dpkg -list
dpkg -list | less

View 9 Replies View Related

General :: Writing Commands In Terminal Do Nothing

Sep 29, 2010

When i Write commands in terminal it does nothing

View 1 Replies View Related

CentOS 5 :: Get A List Of Terminal Commands?

Jun 12, 2010

I would like to find documentation on all the available terminal commands and syntax for CentOS 5.

I have googled and looked through the wiki and found nothing about the terminal to my ability.

As for what I am referencing by commands:

sudo: I get the su means super user

cd: change directory

rm: remove, I don't know how to remove folders.

General navigation and using the terminal to create files/directories/open file editor/etc..

View 3 Replies View Related

Fedora :: Seeing All Commands Used In History Of Running Terminal?

Jun 16, 2010

Having recovered from busting my installation, feel urgent need to know what I did to set it up.So...would like to see all commands I ran in terminal window and store them (execute as script in future?)I can see prior commands using up arrow, is there a way of storing all of those commands in history?Also, any pointers to setting up sort of backup of the package installation setup?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved