Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there, below are the details of my system. I have bash as my current shell, some really common commands aren't working. Please see below.
Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of http://ss64.com/bash/)
Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$
root@sdptfw:~ # man uname
-bash: man: command not found
root@sdptfw:~ # clear
-bash: clear: command not found
root@sdptfw:~ # cat /etc/bashrc
cat: /etc/bashrc: No such file or directory
root@sdptfw:~ # cat /etc/profile
# /etc/bashrc
umask 022
unset i
# are we an interactive shell?
if [ "$PS1" ]; then
if [ -x /usr/bin/tput ]; then
if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb" terminal
stty erase `tput kbs`
elif [ -x /usr/bin/wc ]; then
if [ "`tput kbs|wc -c `" -gt 0 ]; then # We can't do this with "dumb" terminal
stty erase `tput kbs`
fi
fi
fi
fi
# Path manipulation
PATH="/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin"
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER=`id -un`
LOGNAME=$USER
HOSTNAME=`/bin/hostname`
HISTSIZE=250
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME HOSTNAME HISTSIZE INPUTRC
# LS Colors
alias dir='ls'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
# IPCop language settings
LANG=en_US.utf8
PS1='\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;31m\]\w \[\033[1;36m\]\$ \[\033[0m\]'
echo -n -e '\033%G'
export LANG PS1
thank-you
michelle
Last edited by michellepace; 07-17-2010 at 03:46 AM.
Reason: make cat output grey for readability
Those are not bash commands but seperate programs. You are just missing the /usr/bin/man and /usr/bin/clear binaries. How you install them depends on your distribution.
I see no problems with any of the commands issued.
The fact that some return an error message, which all appear to be fairly obvious, does not mean they do not work.
The fact that some return an error message, which all appear to be fairly obvious, does not mean they do not work.
ha ha, no not at all - this is not my world. Today is about the 4th time I've ever heard the world "linux" never mind using it. I'm very lucky to have found this newbie forum.
Quote:
Originally Posted by zirias
Those are not bash commands but seperate programs. You are just missing the /usr/bin/man and /usr/bin/clear binaries. How you install them depends on your distribution.
Finding which distribution I am running has been a topic of my previous post "What flavour of Unix am I using." My question is unanswered so if you have any light to shed (once again) it will be must appreciated.
You are correct as this is all I have in my bin. Perhaps do I have to somehow install 'wget' and then use that to install man, clear etc? ...I really would have thought these tools would have been part of a core tool package? Any hints as to how I can install stuff?
Just in case you did not read the links provided in your other thread, ipcop is a linux distribution designed for a specific purpose i.e. an appliance firewall computer. It is not a desktop distribution and since your new to the linux world it would be helpful to know some background information. Did you installed ipcop and what you are trying to accomplish.
Just in case you did not read the links provided in your other thread, ipcop is a linux distribution designed for a specific purpose i.e. an appliance firewall computer. It is not a desktop distribution and since your new to the linux world it would be helpful to know some background information. Did you installed ipcop and what you are trying to accomplish.
oh... well... now that I get asked bluntly. Well I think I started to want to water the flowers and now somehow I've found myself at the waterworks asking how the pipes have been layed and why.
Yes, this is a firwall. Yes that makes sense - I don't want to install all that stuff if it breaches any kind of security.
Where it started is that I wanted to install an additional IPCOP addon and I didn't quite know where to do that. I posted on the IPCOP forum here but didn't get an answer.
I thought I would find out what distribution I was running so that I could google the filesystem and find out about it's structure. So then I came across uname and wanted to know the availble options which lead me to discover that I don't have man (or wget or clear) installed.
What am I trying to accomplish? It's rather embarrasing, I've lost myself down the garden path. Thanks. I'm walking back over to the flowers now. I really should be setting up an additional person on IPCOP's logging. That's it.
The general lesson here being to read before you post... regardless, here's the information I've been looking for obtained from IPCOP'S FAQ: Customising IPCop Can I customise my IPCop box?
Because your IPCop box is based on Linux, many of the features used in Linux can be made available by your firewall. IPCop is made to be easy to use, and the web interface reflects that. There are many features that are not made accesible by the web interface in order to keep it simple.
The important thing to remember is that the IPCop box is primarily a firewall and a router. All the other features are "nice to have". Anything you do to your IPCop box could reduce it's effectiveness, and the programmers won't be looking out for security holes in programs you have added, so they won't be making patches either.
If you want something more general purpose than a dedicated firewall you can have a look at the Gateway/Servers at this comparision list.
Where do I start?
First of all, IPCop is missing many of the programs usually found in a Linux distribution. This is deliberate, as the lower number of applications means the system is simpler, and easier to keep secure
Because of this, our way in and out of the IP-Cop box is via a program called SSH. SSH is a secure command line interface which allows remote access. Normally, SSH uses port 22, but in order to allow port 22 to be forwarded elsewhere, port 222 is used on the IP-Cop box.
Most Linux distributions now include the SSH suite of programs, and there is a freeware Windows client called PuTTY. SSH includes a file transfer client called SCP, and there is also a freeware Windows version called WinSCP. Between these two programs, you should have all the tools you need to customise IP-Cop.
How can I add a new program to IPCop?
Using SCP, you can download new files into the IPCop box. This way you can add additional programs that may help you faultfind your network, or add additional functionality.
For example, IP-Cop does not have "traceroute" (It has tracepath, which has similar functionality). Using SCP (or WinSCP), simply move the file from another Linux box into the appropriate folder (/usr/sbin, in this case), check the file permisions, and now you have an new tool on your IPCop box.
It's a flavor of linux so yes. And no. Since it's firewall orientated, it probably lacks basic tools. Like a compiler and development environment. That way even if it is breached, the breacher lacks the ability to do anything useful. At least with the methods that they assumed that they would have available.
As far as the other thing. If those commands are available, but you just can't use them. It might be a security thing. But I've hosed libc6 at least once in my life which disabled pretty much every bash command (extended application) known to man. Including ls. Not saying that that is your issue, but it could be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.