Print

Print


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!


Best regards,

Isobel French
Academic Coordinator and Research Officer
Division of Neurosurgery
Department of Surgery
Faculty of Medicine
University of Malaya
016-7937605
03-79493138


On 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 EDITOR
EDITOR=emacs: Command not found.
export: Command not found.

Why is this happening? Thanks.



Best regards,

Isobel French
Academic Coordinator and Research Officer
Division of Neurosurgery
Department of Surgery
Faculty of Medicine
University of Malaya
016-7937605
03-79493138


On 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 Belle
rmdir: Belle: No such file or directory
[neuros-iMac-2:~/Belle] neuro% cd ..
[neuros-iMac-2:~] neuro% rmdir Belle
rmdir: Belle: Directory not empty
[neuros-iMac-2:~] neuro% cd Belle
[neuros-iMac-2:~/Belle] neuro% ls
#Belle# #ITF#
[neuros-iMac-2:~/Belle] neuro% rmdir ITF
rmdir: ITF: No such file or directory
[neuros-iMac-2:~/Belle] neuro% cd ..
[neuros-iMac-2:~] neuro% rmdir Belle
rmdir: Belle: Directory not empty
[neuros-iMac-2:~] neuro% rmdir Belle
rmdir: Belle: Directory not empty
[neuros-iMac-2:~] neuro% rmdir Belle
rmdir: Belle: Directory not empty
[neuros-iMac-2:~] neuro% cd Belle
[neuros-iMac-2:~/Belle] neuro% ls
#Belle# #ITF#
[neuros-iMac-2:~/Belle] neuro% ls -la
total 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 French
Academic Coordinator and Research Officer
Division of Neurosurgery
Department of Surgery
Faculty of Medicine
University of Malaya
016-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