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.
I found this website while looking for how to find a file in the terminal. It lists all the bash commnads in Linux. Alright I don't know if it lists ALL of them, but its definatly all of the revelvent ones. Maybe we should put this website in a sticky somewhere for people looking for bash commands.
And boy, what an inappropriate title for that list. Only
very few of those commands have got anything to do with
bash, most of them are stand-alone executables that can
be run from ANY old shell :}
And boy, what an inappropriate title for that list
Sorry about the title, i'm still a newbie myself and I honestly don't know the difference between a "bash" and a "shell." Either way though, I didn't make the site, I just found it and suggested it. I'm glad to see its atleast helped two people .
Wow i like that!! thanks for the link bratha, What is the diffeerence between BASH and SHell anyways? when u open them they both lok the same to me!
The Bourne shell, or sh, was the default Unix shell of Unix Version 7, and replaced the Thompson shell, whose executable file had the same name, sh. It was developed by Stephen Bourne, of AT&T Bell Laboratories, and was released in 1977 in the Version 7 UNIX release distributed to colleges and universities. It remains a popular default shell for Unix accounts. The binary program of the Bourne shell or a compatible program is located at /bin/sh on most Unix systems.
Bash, also known as the Bourne-Again shell, was later developed for the GNU project and takes features from the Bourne shell, csh and ksh.
And boy, what an inappropriate title for that list. Only
very few of those commands have got anything to do with
bash, most of them are stand-alone executables that can
be run from ANY old shell :}
Cheers,
Tink
Technically correct--however, from the view point of the user of bash, the difference is moot--ie if you are in a particular shell you have a set of commands available to you.
Check, for example, how many things on the referenced list are discussed in "Bash Guide for Beginners" by Machtelt Garrels (on TLDP).
Technically correct--however, from the view point of the user of bash, the difference is moot--ie if you are in a particular shell you have a set of commands available to you.
Check, for example, how many things on the referenced list are discussed in "Bash Guide for Beginners" by Machtelt Garrels (on TLDP).
And what do you want me to say? :)
That common wrong usage of a term makes it right?
Surely not. That aside you haven't read her quite correctly,
it IS a guide to bash, the fact that she uses "well known
Linux/Unix commands" (a sound knowledge of which she
happens to set as a pre-requisite for her guide) to demon-
strate how the bash works doesn't mean that she believes
that those are "bash commands".
As far as the "availability" of commands in a shell goes,
it clearly depends on a number of factors:
a) which shell you're using
b) whether the command you're trying to use is a shell-builtin
of that shell or not
c) whether the command you're trying to use happens to be
in your path
d) whether you have permissions to run that command in case
you happen to know the full path to it
I think I hear a faint voice in the distance: "These are **Linux** commands, some of which may also be **bash** commands." As I pointed out earlier, you may not care....
When I write a script to run under the bash shell, I might choose to define "bash command" as any command that is callable from my bash script. YMMV
I noticed the first list was pretty light in the commands, so I posted a link to a little larger one.
BTW, You can roll your own bash commands with alias in your .bashrc file.
Code:
# Fedora Core 4 .bashrc file for user piper box uilleann
# User specific aliases and functions
# Start X server
alias x='startx'
# Change bash prompt. See the article
# http://www-106.ibm.com/developerworks/linux/library/l-tip-prompt/
export PS1='\d \@ \[\e[32;1m\]\u\[\e[34;1m\]@\[\e[36;1m\]\H \[\e[34;1m\]\w\[\e[32;1m\] $ \[\e[0m\]'
# Keep 1000 lines in .bash_history (default is 500)
export HISTSIZE=1000
export HISTFILESIZE=1000
#Stop bash from caching duplicate lines.
HISTCONTROL=ignoredups
# Disk free
alias df='df -h'
# Set paths
alias path='echo -e ${PATH//:/\\n}'
# Allow local users to use my X session
# xhost +local:
# I can't remember the new gnome command!
alias gtop='/usr/bin/gnome-system-monitor'
# Alter the ls command
alias ls='ls -ac'
alias lls='ls -lac'
# Set background in Fluxbox
# alias bg='fbsetbg -c /home/piper/Pictures/kells/kelljesusarrest.gif'
# alias bg='fbsetbg -c /home/piper/Pictures/kells/KellsFol114rArrestOfChrist.jpg'
alias bg='fbsetbg -c /home/piper/Pictures/kells/KellsFol007vMadonnaChild.jpg'
# Become system administrator
alias god='su -'
# Because less is more and more is less
alias more='less'
# xterm
# alias xterm='xterm -bg black -fg white'
# Launch links with my linux links page
alias links='elinks /home/piper/bookmarks.html'
# For nano editor because I forget which one I use in which distro
alias pico='nano -w'
alias nano='nano -w'
# Start gkrellm after stopping it in x
alias monitor='gkrellm -w &'
# Script needs to be on the bottom of the file or RH updates will fsck it up
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
Last edited by fancypiper; 01-06-2006 at 02:02 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.