This is a discussion on UNIX / Linux echo command examples within the Getting started tutorials forums, part of the Linux Getting Started category; Here are some examples you may find interesting: Display message welcome on screen Code: echo 'Welcome' Write message File deleted ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Here are some examples you may find interesting:
Display message welcome on screen Code:
echo 'Welcome' Code:
echo 'File has been deleted' > /tmp/log.txt Code:
echo 'File has been deleted' >> /tmp/log.txt Code:
echo "Today's date is $(date)" Code:
echo "Today's date is $(date)" > /tmp/date.txt Code:
man echo
__________________
Raj Linux rulz. I have never turned back in my life ; I shall not do so today.. haha |
| Sponsored Links | ||
|
|
|
|||
|
echo is a very powerful tool
#env this command will show HOSTNAME=viren.com TERM=xterm SHELL=/bin/bash HISTSIZE=1000 KDE_NO_IPV6=1 SSH_CLIENT=10.16.5.139 1885 22 SSH_TTY=/dev/pts/0 USER=root LS_COLORS=no=00:fi=00:di=00;34:ln=00;36 KDEDIR=/usr MAIL=/var/spool/mail/root PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin INPUTRC=/etc/inputrc PWD=/root LANG=en_US.UTF-8 KDE_IS_PRELINKED=1 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SHLVL=1 HOME=/root LOGNAME=root SSH_CONNECTION=172.16.5.139 1885 172.16.5.235 22 LESSOPEN=|/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES=1 _=/bin/env and then understand what echo can do like #echo $PATH #echo $HOSTNAME #echo $HISTSIZE |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unix find out ram usage command | charvi | Solaris/OpenSolaris | 4 | 04-10-2008 03:22 AM |
| Unix route command view | jerry | Solaris/OpenSolaris | 3 | 02-21-2008 02:24 PM |
| unix ls command | raj | Getting started tutorials | 0 | 08-20-2007 11:04 PM |
| UNIX and Linux command for DNS | chiku | Getting started tutorials | 1 | 04-29-2007 05:36 PM |
| displaying the executed command then echo the status | warren | Shell scripting | 4 | 11-29-2006 02:56 AM |