Hi - no, that's not what that page is telling you to do. You should be:- create and edit a new script, for example with name "filename", for example by:emacs filename- then in this file put commands such as the 3 lines after the "- Example" paragraph heading, and then save the file and exit the editor (eg emacs).- then run the chmod command to make the script file "filename" executable- then to run it, do something like, in the terminal, ./filenameCheers.On 24 Jul 2014, at 09:09, Isobel French <[log in to unmask]> wrote:Dear Dr Stephen,tq for your advice. Yes I am. However i did not execute all the commands as I am afraid I might do something I will not be able to reverse in the system. Right now I am going through this:When I type:
sh-3.2$ #!/bin/shsh-3.2$ chmod a+x filenamechmod: filename: No such file or directoryWhat does this mean? Thanks!Best regards,Isobel FrenchAcademic Coordinator and Research OfficerDivision of NeurosurgeryDepartment of SurgeryFaculty of MedicineUniversity of Malaya016-793760503-79493138On Thu, Jul 24, 2014 at 2:32 PM, Stephen Smith <[log in to unmask]> wrote:HiOn 24 Jul 2014, at 04:15, Isobel French <[log in to unmask]> wrote:HI Dr Stephen,So for all the exercises in the unix tutorial I should switch to either only "bash" or "sh"? is that why some commands are not working? By the way the system I'm using is OS X version 10.8.5 on the Mac. Tqvm!Correct. I would use "bash" if possible.Btw - I assume that you're going through the basic unix tutorialfirst?Cheers.Best regards,
Isobel FrenchAcademic Coordinator and Research OfficerDivision of NeurosurgeryDepartment of SurgeryFaculty of MedicineUniversity of Malaya016-793760503-79493138On Wed, Jul 23, 2014 at 3:14 PM, Stephen Smith <[log in to unmask]> wrote:Hi - I'm guessing that you are not using the most common "shell", which I would recommend to be "bash" or "sh".It looks like you are currently using csh or tcsh, which is less common, and at this stage I would recommend switching to bash. I'm not sure whether you're on Mac or linux, so I'm not quite sure how you can easily change this... do you have a local system administrator who can change this for you?Cheers.On 23 Jul 2014, at 06:31, Isobel French <[log in to unmask]> wrote:DEar all,When i type in the command EDITOR=emacs;export EDITOR, this is the response i get:
neuros-iMac-2:~] neuro% EDITOR=emacs;export EDITOREDITOR=emacs: Command not found.export: Command not found.Why is this happening? Thanks.Best regards,
Isobel FrenchAcademic Coordinator and Research OfficerDivision of NeurosurgeryDepartment of SurgeryFaculty of MedicineUniversity of Malaya016-793760503-79493138On Fri, Jul 18, 2014 at 6:03 PM, 张凯yahoo <[log in to unmask]> wrote:
Dear Isobel,
.DS_Store is short for "Desktop Services Store" in Mac OS. If you want to delete them, just open "Terminal" (in the Applications/Utilities), and then type in"sudo find / -name “.DS_Store” -depth -exec rm {} \;", next input your administrator password, finally all similar kinds of files effaced. Have fun!Best,Kai
____________________
Kai Zhang
PhD student
Cluster Languages of Emotion
Free University of Berlin
Thielallee 38, 14195 Berlin
Mobile:+49(0)17644403051
E-mail:[log in to unmask]
____________________
Kai Zhang
PhD student
Cluster Languages of Emotion
Free University of Berlin
Thielallee 38, 14195 Berlin, Germany
Mobile:+49(0)17644403051
E-mail: [log in to unmask]2014-07-18 11:03 GMT+02:00 Isobel French <[log in to unmask]>:Dear all,I was going onto the basic unix tutorial and was playing around with emcas. Before doing that I created a directory named 'Belle" so that i could play around with emacs. However when I tried removing the directory this i the response I had:[neuros-iMac-2:~] neuro% cd Belle[neuros-iMac-2:~/Belle] neuro% ls[neuros-iMac-2:~/Belle] neuro% emacs[neuros-iMac-2:~/Belle] neuro% cd ..[neuros-iMac-2:~] neuro% rmdir Belle[neuros-iMac-2:~] neuro% mkdir Belle[neuros-iMac-2:~] neuro% cd Belle[neuros-iMac-2:~/Belle] neuro% emacs Belle[neuros-iMac-2:~/Belle] neuro% emacs Belle[neuros-iMac-2:~/Belle] neuro% rmdir Bellermdir: Belle: No such file or directory[neuros-iMac-2:~/Belle] neuro% cd ..[neuros-iMac-2:~] neuro% rmdir Bellermdir: Belle: Directory not empty[neuros-iMac-2:~] neuro% cd Belle[neuros-iMac-2:~/Belle] neuro% ls#Belle# #ITF#[neuros-iMac-2:~/Belle] neuro% rmdir ITFrmdir: ITF: No such file or directory[neuros-iMac-2:~/Belle] neuro% cd ..[neuros-iMac-2:~] neuro% rmdir Bellermdir: Belle: Directory not empty[neuros-iMac-2:~] neuro% rmdir Bellermdir: Belle: Directory not empty[neuros-iMac-2:~] neuro% rmdir Bellermdir: Belle: Directory not empty[neuros-iMac-2:~] neuro% cd Belle[neuros-iMac-2:~/Belle] neuro% ls#Belle# #ITF#[neuros-iMac-2:~/Belle] neuro% ls -latotal 8-rw-r--r-- 1 neuro staff 0 Jul 18 16:37 #Belle#-rw-r--r-- 1 neuro staff 28 Jul 18 16:43 #ITF#drwxr-xr-x 4 neuro staff 136 Jul 18 16:52 .drwxrw-r--+ 56 neuro staff 1904 Jul 18 16:02 ..[neuros-iMac-2:~/Belle] neuro% rmdir #ITF#rmdir: #ITF#: Not a directory[neuros-iMac-2:~/Belle] neuro%There is a hidden file in it as well name '.DS_Store"Can somebody let me know what I have done and how do I rectify it? Also, how will I be able to remove the directory 'Belle' completely? Thanks!!Best regards,
Isobel FrenchAcademic Coordinator and Research OfficerDivision of NeurosurgeryDepartment of SurgeryFaculty of MedicineUniversity of Malaya016-7937605
---------------------------------------------------------------------------
Stephen M. Smith, Professor of Biomedical Engineering
Associate Director, Oxford University FMRIB Centre
FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve
---------------------------------------------------------------------------Stop the cultural destruction of Tibet
---------------------------------------------------------------------------
Stephen M. Smith, Professor of Biomedical Engineering
Associate Director, Oxford University FMRIB Centre
FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve
---------------------------------------------------------------------------Stop the cultural destruction of Tibet
---------------------------------------------------------------------------
Stephen M. Smith, Professor of Biomedical Engineering
Associate Director, Oxford University FMRIB Centre
FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve
---------------------------------------------------------------------------Stop the cultural destruction of Tibet