octave cannot load file - loading

I failed to load .txt files and .dat files in my octave.
When I use the code 'load test.dat'
the terminal said:
-bash: load: command not found
and I tried load('test.dat'). The terminal said:
-bash: syntax error near unexpected token `'test.dat''
Does anybody know what's wrong?

data = load('test.dat')
what are you trying to view though?

Related

Terminal message: 'bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory'

Every time I open my terminal I get the following message:
bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory
Why am I getting this displayed? How can I fix this problem?
Some extra information:
Running echo $PATH I get (in one line):
/home/robb/.anaconda3/bin:/home/robb/.anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/go/bin:/home/robb/.local/share/JetBrains/Toolbox/scripts
Running which virtualenv:
/home/robb/.anaconda3/bin/virtualenv
And the bottom lines of my ~/.bashrc file are:
export WORKON_HOME=$HOME/.virtual_envs
source /usr/local/bin/virtualenvwrapper.sh
I changed the last line of the ~/.bashrc file to:
source /home/robb/.anaconda3/bin/virtualenvwrapper.sh
The terminal stopped displaying that message. I am still afraid I may have done something wrongly. Was I supposed to do something else?

Recover notebook Mathematica

Is there any way recover an .nb file? I tried to export to .pdf and all the content was lost.
Here's the error:
$ Failed.
6 line of corrupt data deleted.
I executed these two instructions in a new notebook:
Needs["AuthorTools`"]
NotebookRestore[]
but I got the error above.

whenever I open gitbash I get the error "bash: /c/Users/aditya royal/git-prompt.sh: No such file or directory"

The exact error is:
bash: /c/Users/aditya royal/git-prompt.sh: No such file or directory
What does this command mean and how to get rid of this?
Check your /c/Users/aditya royal/.bashrc
It should include a . ~/git-prompt.sh line.
Check if deleting this line would allow you to avoid the error message.
See more at "Git in Other Environments - Git in Bash"
The comments in git/git/contrib/completion/git-prompt.sh explain what this file is for, and how it should be properly activated.

Open Media Vault Rsync syntax

I'm trying to use the Rsync service in OMV to copy a folder from windows on to the server. What is the correct syntax to specify the Source server? I have tried this...
rsync://192.168.0.1:/c:/Users/roblp/Documents/GIS General
as well as a few variations but I keep getting the following error
Unexpected local arg: General
If arg is a remote file/dir, prefix it with a colon (:).
rsync error: syntax or usage error (code 1) at main.c(1246) [Receiver=3.0.9]
Can anyone help with the correct syntax please?
You can't access the Windows drive C:/ with linux comands.
You can use it without :
rsync://192.168.0.1:/c/Users/roblp/Documents/GIS General

How to fix this error

When I open terminal system shown error below
-bash: /etc/profile.d/sm.sh: No such file or directory
-bash: /etc/profile.d/rvm.sh: No such file or directory
Thank you.
Looks like you used to have rvm or something, and then removed it? Anyway, remove the offending files from /etc/profile.d and you should be fine.

Resources