General :: Ubuntu - Cannot Execute Basic Commands (ps, Ls, Ifconfig) - File Not Found

May 4, 2011

When I try execute a variety of basic commands (including ps, ls, ifconfig, locate), I receive the error 'no such file or directory'.

Here are some suggestions that I've found online, that I have tried without success: I did a 'whereis ps' and found the file in the /bin/, and have checked that '/bin' appears when I do 'echo $PATH' I did a filesystem check which showed my hard drive as being clean I tried doing a 'sudo chmod 777 ps' but was told that I dont have permission. I don't think permissions for these files would have changed though (and I can't check as I can't run the 'ls' command).

View 3 Replies


General :: Debian Without Basic Commands: 'No Such File Or Directory'?

Nov 10, 2010

My new VPS is running Debian 5.0 (bash 3.2.29), and some commands seems to be missing. For example the ps command is not here, neither is ls (but dir works). Is there a package missing or what's the deal?

:~# type ps
ps is hashed (/bin/ps)
:~# ps


View 1 Replies View Related

General :: Execute Commands Over SSH In A Batch File?

Feb 17, 2011

I'm looking to, all in the course of one batch file:

ssh into a remote computer execute commands (per the batch file) on the remote host.

What options do I need to add to the ssh invocation so that the batch file executes the lines following the ssh invocation over the connection?

e.g., with sftp it's simply adding a -b /dev/stdin and then << EOF at the end; how do I do this with SSH?

View 1 Replies View Related

General :: Using The Expect And Send To Execute List Of Commands Inside A File?

Feb 2, 2011

i am working on some kind of PBX and i have list of telephone numbers inside a file, i have to insert these numbers into the correct command and then telnet to a remote server and execute these commands. i can read the telephone numbers and insert them into the command with no problem, but when i try to insert these commands into the send i face problem. here is the basic code

read msisdn < input


i can make external loop inside the Bash which read the input file and issue the command and then telnet and execute, but this will make the script connects and disconnects again for each line which cause high load on that server and hardwar problem. i am wondering if there is an option inside the expect interperter which makes the send read directly from a file... somthing like this:

expect "<"
send "input-filename
expect "<"
expect eof

View 1 Replies View Related

General :: Can't Execute Commands As Sudo Nor Access Sudoers File In Mandriva 2010.1

Aug 16, 2010

since a recent upgrade to Mandriva 2010.1 I am not able to 'sudo' as administrator or when I use the 'root' password. I am the only user on this machine (Dell Inspiron 530S multi-booted with Window's Vista Home Premium, Ubuntu 10.4, and Mandriva 2010.1). I can get into the 'Manage Users' section of the control center by authenticating as 'root' but I can't access 'sudoers file' from command line.

View 4 Replies View Related

General :: Execute Commands In TERMINAL Found These "~" "/" At The End Of The Path?

Jul 1, 2010

when i tried to execute commands in TERMINAL i found these "~" "/" at the end of the path (user@hostname~ | user@hostname/) what does it mean and what is ~ and / ?

View 5 Replies View Related

General :: Distribution ,basic Commands?

Feb 6, 2011

what r the distribution terms of linuxwhat r the advantage of oprn sourcewhat r the bassic commands of linuxwhat r the directories of linuxwhat is file system in linux

View 5 Replies View Related

General :: Mail Basic Commands Used In Terminal?

Feb 26, 2010

i donot know basic commands used in terminal as to install,, to remove a software etc

View 8 Replies View Related

Red Hat / Fedora :: Edit In Bashrc File Now Cant Execute Commands?

May 30, 2011

recently I did some changes to my bashrc file the changes are as follows
export JAVA_HOME=/usr/java/jre<version>/bin/
export PATH=$PATH:/usr/java/jre<version>/bin

now I'm unable even login to the OS.

View 9 Replies View Related

General :: Ip Of The Box - Logged Into Sometimes - Bash: Ifconfig: Command Not Found

Aug 23, 2010

I am usually sshed into different boxes and i forgot what ip I am logged into sometimes. Is there a command I can type to give me the ip on the box I am on.

cat /etc/*release
CentOS release 5 (Final)

this failed

ifconfig | more
bash: ifconfig: command not found

View 3 Replies View Related

General :: Execute Different Commands With Same Name?

May 14, 2010

I have a two seperate files on my computer,

which execfile

so, i have two files with the same name in two different directories. How can I specify exactly which command to run?

View 6 Replies View Related

General :: Execute Files Like Other Commands?

Jun 23, 2010

I just want to know that how can I execute a (script) from command-line like other Unix commands. Please write full procedure

View 4 Replies View Related

CentOS 5 :: Ssh - Execute The Script Remotely / File Not Found?

May 28, 2010

ssh - execute the script remotely / File not found: ''I am uisng amazon ec2-api-tool & ec2-ami-tool

i was unable to execute through ssh. Getting error as File not found: The same script i can able to run directly in client machine successfully. Through ssh i was uanble to run the script remotely Source : ec2-create-volume --size $1 --availability-zone $2 $ssh -i key.pem root@myhost ./ 10 us-east-1a In remote machine i have permission for as -rwxr-xr-x

Note:Reference link

1) How to create an ebs image from an existing ec2 instance
2) Building EBS Boot and S3 Based AMIs for EC2 with Ubuntu vmbuilder -

View 1 Replies View Related

General :: How To Execute Multiple Commands When Using Find

Jan 22, 2011

I'm trying to run multiple commands on things I have found, how can I achieve this? find . -exec cmd1; cmd2 does not seem to work; it instead runs cmd2 after cmd1 has been executed on every file.

View 2 Replies View Related

General :: Easier Way To Execute Long Commands?

Jul 29, 2010

I use a long mount command to mount a NAS drive but have to retype it every time I need to mount the drive. Because it is on my laptop I only need to mount the drive from time

View 4 Replies View Related

General :: How To Allow User To Execute All Commands Without Sudo

Apr 30, 2010

Customer asked me to create a menu for linux he also asked me to do this: Open like a command like where a user can execute for this the users have sudo enabled. The code below works OK. But it has an issue when a command is executed but the command does not need sudo

Like for instance
cd /
sudo: cd: command not found

How can I allow a user to execute all commands when a command does not need sudo
echo -e "Press Control+C to finish"
#echo -e " "
while true;
read whichcmd?"Insert Command: "
sudo $whichcmd

View 3 Replies View Related

General :: Execute Commands After Logging In Into The Ssh Connection Not Locally?

Oct 20, 2010

I am creating this script which will login to a server with ssh and check if a particular exists there, if not it will create the user.This is the script:Quote:

cat /etc/passwd|grep -i $1 > /dev/null
if [ $? -eq 0 ];


View 9 Replies View Related

General :: Execute Series Of Grep Commands In Script?

May 10, 2011

Executing series of grep commands to get counts in a large file. I'm appending to this file. Series of commands will be;

"greg -ir "May/0504" SentEmails.txt | wc -l >> Stats.txt
"greg -ir "May/0505" SentEmails.txt | wc -l >> Stats.txt
"greg -ir "May/0506" SentEmails.txt | wc -l >> Stats.txt
"greg -ir "May/0507" SentEmails.txt | wc -l >> Stats.txt

View 3 Replies View Related

General :: Script Which Will Login To Particular User And Execute Some Commands?

Mar 19, 2011

I am trying to write one script. Purpose of my script is that it will login to particular user and it will execute some set of commands.What I was trying....

su - tom
ls -lrt


View 6 Replies View Related

General :: Type And Execute Commands In Window From Computer

May 19, 2010

ssh to a machine on my network open up a terminal (gnome, xterm, whatever) and have it visible on that machines display be able to type and execute commands in that window, from my computer. i have kind of achieved this. on machine A, i ssh to machine B. on machine B, i open up a terminal and execute screen, C-a :multiuser on. on machine A, i execute screen -x and connect to the term on B. everything i type from A or B can be seen. i just want to be able to set this up without having to physically be at machine B. does that make sense?

View 7 Replies View Related

General :: Get Gnome Terminal Execute Different Commands From Diff. Tabs?

Jan 6, 2010

In gnome terminal it is possible to open multiple tabs with Quote:$ gnome-terminal --tab-with-profile=jake_lardasset --tab-with-profile=virtualsexgranny -x alpineWe got even further....Quote:gnome-terminal --tab-with-profile=james_treesexer --command pymol --tab-with-profile=loverboy13 --command alpineand pymol runs, but not in the tab and alpine runs in the tab.The problem is, that when using a script to check mail it has Quote:gnome-terminal --tab-with-profile=chrissypink --command alpine --tab-with-profile=jake_hugerichard -x ssh xxxx@xxxx.ut.eenot the other way aroundIs there a simpler way to do this?And why is it not possible to execute ssh with the --command parameter and -x has to be used ,but top and so on can be executed with --command

View 2 Replies View Related

Ubuntu :: A List Of Basic Commands?

Nov 9, 2010

From where can i get a list of basic commands that can be run from the terminal from ubuntu ?for example:nautilusmounttopapt-get

View 9 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 Servers :: Basic Configuration To Execute PHP Under Apache

Apr 7, 2011

On Ubuntu 10.04 with Apache and PHP installed, I can execute a test.php file


If I specify it on my Apache web server


However, I am not able to configure the web site to execute index.php automatically.

These are the settings I have.


View 2 Replies View Related

General :: Execute My Scripts ( Files Like Other Normal Commands From Command-line?

Jun 23, 2010

I just want to know that how can I execute my scripts ( files like other normal commands from command-line. Please describe the full method

View 5 Replies View Related

Ubuntu :: Install Basic Pages Like Php Admin With Commands?

Aug 6, 2010

Recently got a VPS and installed Ubuntu Server 9 (32bit) When i go to install basic pages like php my admin with commands like..sudo apt-get install phpmyadmin I get a error like this:

root@PkNGssbkpT:/# sudo apt-get install phpmyadmin Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:


View 1 Replies View Related

Fedora :: Cheatsheet Lists All The Basic Commands?

Nov 28, 2009

A Fedora 12 Cheatsheet and for the geeks: [URL]

This cheatsheet lists alomost all the basic commands which are required for day to day use along with some amazing tricks.

View 8 Replies View Related

Ubuntu :: Joining The Project Using SPHINX2 For Basic Voice Commands With USB Mic?

Jun 12, 2011

How to compare two wav files [URL] or to be capable to reco simple voice commands? Openbox, fluxbox... can be ran using perlbox voice reco for basic commands. [URL] everything is frequence based:[URL] However we would like to make the use of the ALSA and processing after recording. OK.


apt-get install -f sphinx2
here is my script:
# my alsa-1 is my usb mic
arecord -Dplughw:1,0 -f cd -vv voicecommand.wav


THe next step is to analysis the wav file just created. The advantage is that sphinx2 works for basic commands + it uses only up to 3% of your CPU resources !

View 3 Replies View Related

Software :: Segmentation Fault On Basic Commands Such As Ls, Grep?

Mar 23, 2010

I have found the cause of my problem, but I am not sure what the proper fix is.The issue is I accidentally modified a dynamic library file on my system (symlinked it to another file), and now common commands such as "ls" and "grep" are failing with segmentation fault

View 1 Replies View Related

Ubuntu Networking :: Ifconfig Eth0 Not Found

Aug 6, 2011

I am working with ubuntu and my eth0 connection was up and working fine untill some days back when all of a sudden it seemed to disapper. I was able to access the net through it before. But now it has vanished and i donno when. i tried ifconfig eth0 up but no use. The result of cat /etc/network/interfaces is as follows

auto lo
iface lo inet loopback

View 9 Replies View Related

Copyrights 2005-15, All rights reserved