i wanna create my own commands in linux shell ?what should i do for this ?
mona-lolly
0
Newbie Poster
Recommended Answers
Jump to PostYou can also create another directory and add it to your $PATH.
sk@sk:~$ mkdir bin sk@sk:~$ cd bin sk@sk:~/bin$ cat >> mycommand << _EOF_ > #!/bin/bash > echo "hello, world" > _EOF_ sk@sk:~/bin$ chmod +x mycommand sk@sk:~/bin$ pwd /home/wheel/sk/bin sk@sk:~/bin$ export PATH=${PATH}:/home/wheel/sk/bin sk@sk:~/bin$ cd .. sk@sk:~$ mycommand …
All 3 Replies
abhisek.sanyal
0
Newbie Poster
thekashyap
commented:
Question is a basic one, far from adv-scripting + the page you gave is just too big for this author to look up.
+0
sknake
1,622
Senior Poster
Featured Poster
thekashyap
193
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.