Try creating /home/knut/.mapleinit
as a new file, containing the commands you want executed.
You ought to already have a home directory for your Linux user account. You should be able to change directory to that location with a command such as,
cd ~
or,
cd $HOME
The last one uses the environment variable HOME
, whose assigned value you might also check by issuing the command echo $HOME
. From your post it seems that your home directory is /home/knut
.
Anyway, the simplest way is to create a new file .mapleinit
in your home directory, and place within that plaintext file the Maple commands you want executed automatically at start up.
That is why the documentation mentions it as $HOME/.mapleinit
since that file would normally go in your home directory. That file will not exist until you create it manually. That is normal (for Maple).
Even when such an initialization file as ~/.mapleinit
exists, you can still launch without it being utilized by passing the -s
option to the maple
script.
Or you can point to any other file of your choice as the initialization file by using the -i
option. Eg,
maple -i somedirectory/somefile
Yet another way (slightly trickier if you have to escape quotes) is to use one of more instance of the -c
option when calling the maple
script. This is yet another way for you to issue several distinct commands at start up. In fact there are quite a few ways to accomplish your goals.