WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Where is the defination of internal commands ?  (Read 4532 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: Where is the defination of internal commands ?
« Reply #15 on: February 17, 2011, 11:03:14 AM »
Hi vishrut_n_shah
Open the file  /opt/filetool.lst. Add a line for each command you want to save.
For example:

usr/local/bin/command1
usr/local/bin/command2
etc....

When you shut down and backup your files will be saved, when you restart they will be restored.


Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: Where is the defination of internal commands ?
« Reply #16 on: February 17, 2011, 01:22:37 PM »
A better option is to create /home/tc/.local/bin and put all your personal scripts/binaries there.

Code: [Select]
mkdir -p /home/tc/.local/bin
Then you won't have to keep adding new commands to /opt/.filetool.lst

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: Where is the defination of internal commands ?
« Reply #17 on: February 17, 2011, 02:00:40 PM »
In that case you might also want to suggest that he add  PATH=/home/tc/.local/bin:$PATH
to his /opt/bootlocal.sh file.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Where is the defination of internal commands ?
« Reply #18 on: February 17, 2011, 02:07:19 PM »
bootlocal.sh cannot directly change a logins environment.
The users .profile already adds ~/.local/bin to PATH.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Where is the defination of internal commands ?
« Reply #19 on: February 17, 2011, 02:07:31 PM »
In that case you might also want to suggest that he add  PATH=/home/tc/.local/bin:$PATH
to his /opt/bootlocal.sh file.

Code: [Select]
grep -A 2 local /etc/skel/.profile
 ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)