PDA

View Full Version : Problem with bash ??


torvald
05-27-2005, 07:03 PM
I seem to have limited bash commands. I can't LS for sure and not sure what els is a problem. I was able to get a help listing of the commands below is the output does this look correct or am I in trouble?

*** output ***

bash-2.02# help
GNU bash, version 2.02.0(1)-release (i686-pc-linux-gnu)
These shell commands are defined internally. Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.

A star (*) next to a name means that the command is disabled.

%[DIGITS | WORD] [&] . filename
: [ arg... ]
alias [-p] [name[=value] ... ] bg [job_spec]
bind [-lpvsPVS] [-m keymap] [-f fi break [n]
builtin [shell-builtin [arg ...]] case WORD in [PATTERN [| PATTERN].
cd [-PL] [dir] command [-pVv] command [arg ...]
continue [n] declare [-afFrxi] [-p] name[=value
dirs [-clpv] [+N] [-N] disown [-h] [-ar] [jobspec ...]
echo [-neE] [arg ...] enable [-pnds] [-a] [-f filename]
eval [arg ...] exec [-cl] [-a name] file [redirec
exit [n] export [-nf] [name ...] or export
false fc [-e ename] [-nlr] [first] [last
fg [job_spec] for NAME [in WORDS ... ;] do COMMA
function NAME { COMMANDS ; } or NA getopts optstring name [arg]
hash [-r] [-p pathname] [name ...] help [pattern ...]
history [-c] [n] or history -awrn if COMMANDS; then COMMANDS; [ elif
jobs [-lnprs] [jobspec ...] or job kill [-s sigspec | -n signum | -si
let arg [arg ...] local name[=value] ...
logout popd [+N | -N] [-n]
printf format [arguments] pushd [dir | +N | -N] [-n]
pwd [-PL] read [-r] [-p prompt] [-a array] [
readonly [-anf] [name ...] or read return [n]
select NAME [in WORDS ... ;] do CO set [--abefhkmnptuvxBCHP] [-o opti
shift [n] shopt [-pqsu] [-o long-option] opt
source filename suspend [-f]
test [expr] time [-p] PIPELINE
times trap [arg] [signal_spec ...] or tr
true type [-apt] name [name ...]
typeset [-afFrxi] [-p] name[=value ulimit [-SHacdflmnpstuv] [limit]
umask [-p] [-S] [mode] unalias [-a] [name ...]
unset [-f] [-v] [name ...] until COMMANDS; do COMMANDS; done
variables - Some variable names an wait [n]
while COMMANDS; do COMMANDS; done { COMMANDS }
bash-2.02# dirs
/var/tmp
bash-2.02# cd /


Torvald, who is trying to access his tivo online.

Gunnyman
05-27-2005, 08:38 PM
I seem to have limited bash commands. I can't LS for sure and not sure what els is a problem. I was able to get a help listing of the commands below is the output does this look correct or am I in trouble?

*** output ***

bash-2.02# help
GNU bash, version 2.02.0(1)-release (i686-pc-linux-gnu)
These shell commands are defined internally. Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.

A star (*) next to a name means that the command is disabled.

%[DIGITS | WORD] [&] . filename
: [ arg... ]
alias [-p] [name[=value] ... ] bg [job_spec]
bind [-lpvsPVS] [-m keymap] [-f fi break [n]
builtin [shell-builtin [arg ...]] case WORD in [PATTERN [| PATTERN].
cd [-PL] [dir] command [-pVv] command [arg ...]
continue [n] declare [-afFrxi] [-p] name[=value
dirs [-clpv] [+N] [-N] disown [-h] [-ar] [jobspec ...]
echo [-neE] [arg ...] enable [-pnds] [-a] [-f filename]
eval [arg ...] exec [-cl] [-a name] file [redirec
exit [n] export [-nf] [name ...] or export
false fc [-e ename] [-nlr] [first] [last
fg [job_spec] for NAME [in WORDS ... ;] do COMMA
function NAME { COMMANDS ; } or NA getopts optstring name [arg]
hash [-r] [-p pathname] [name ...] help [pattern ...]
history [-c] [n] or history -awrn if COMMANDS; then COMMANDS; [ elif
jobs [-lnprs] [jobspec ...] or job kill [-s sigspec | -n signum | -si
let arg [arg ...] local name[=value] ...
logout popd [+N | -N] [-n]
printf format [arguments] pushd [dir | +N | -N] [-n]
pwd [-PL] read [-r] [-p prompt] [-a array] [
readonly [-anf] [name ...] or read return [n]
select NAME [in WORDS ... ;] do CO set [--abefhkmnptuvxBCHP] [-o opti
shift [n] shopt [-pqsu] [-o long-option] opt
source filename suspend [-f]
test [expr] time [-p] PIPELINE
times trap [arg] [signal_spec ...] or tr
true type [-apt] name [name ...]
typeset [-afFrxi] [-p] name[=value ulimit [-SHacdflmnpstuv] [limit]
umask [-p] [-S] [mode] unalias [-a] [name ...]
unset [-f] [-v] [name ...] until COMMANDS; do COMMANDS; done
variables - Some variable names an wait [n]
while COMMANDS; do COMMANDS; done { COMMANDS }
bash-2.02# dirs
/var/tmp
bash-2.02# cd /


Torvald, who is trying to access his tivo online.

I bet you don't have the location of TivoTools in your PATH
It's usually /busybox or /tivo-bin

torvald
05-28-2005, 11:43 AM
Ok ?? No idea how to fix that, know a DOS and have read up on Unix a little but not enough to fumble my way around in here comfortably. I don't want to mess up the box if I can avoid it.

Doing a dirs listing I only have 2 folders /var/tmp


*BTW is there a way to set a staic ip? everytime it updates it jumps ip's.

tried to find those folders no luck I can't see any folders but /var/tmp and can't find any command to list files in the folders/

hayreass
05-28-2005, 11:49 AM
Ok ?? No idea how to fix that, know a DOS and have read up on Unix a little but not enough to fumble my way around in here comfortably. I don't want to mess up the box if I can avoid it.Suggestion, read a lot more.Doing a dirs listing I only have 2 folders /var/tmpdirs only shows you the folder you are currently in.
echo *Works as a poor mans ls

Now one place to start reading is HERE. (http://www.dealdatabase.com/forum/showthread.php?t=37602) And don't forget to read the stickies.