To delet a file cd to the directory you want to be in and type rm -rf then the file name. or I think it's rm -f for a directory.
I started learning the terminal in 2010 but that's because the person teaching me did not know the gui. lol! Hth. > On Oct 22, 2014, at 11:44 AM, Gordon Smith <gor...@mac-access.net> wrote: > > Hi Sarah > > A little bit over-done here, LOL. All I need is to copy a file from one > directory to another, on the same system, or preferably just move the file > with one operation. Also I guess I’d need the delete command as well to save > the tedium of having to use the Finder. > > To be utterly honest, my Linux knowledge is woefully inadequate, something > which I really do need to work on. When I first got my very first Mac way > back in early 2005, i promised myself I would get to grips with the technical > side of the thing. I also promised myself I would learn the CLI. I have, so > far, failed to live up to that second promise that I made myself. I intend > to address that inadequacy. I know of a couple of publications which deal > with using the bash interface, so I’m going to go and get those, even if I > have to buy them over again. I need to make myself more abled to deal with > these issues so that I can at least work with developers where procedures and > processes haven’t as yet been implemented into the Finder or the GUI. So > thus begins my quest for knowledge. > > Gordon > > On 21 Oct 2014, at 21:38, Sarah k Alawami <marri...@gmail.com> wrote: > > Try an scp. the kicker is the way in which the remote server is handled. but > try > > scp filename.txt user@remotehost:path/to/filename.txt > > I can't remember what to do about spaces as quotes do not work at least for > me. > > The password will be taken care of during the scp as you will be prompted. >> On Oct 21, 2014, at 12:19 PM, Gordon Smith <gor...@mac-access.net> wrote: >> >> Hi all >> >> What would be the command to copy a file in the Terminal from one directory >> to another? For instance, I want to copy a file called content.htm from >> /usr/local/Server to /usr/local/server/web/ and optionally move the file at >> the same time. Command syntax, please, any of you Linux users? >> >> Many thanks. >> >> Gordon >> >> <--- Mac Access At Mac Access Dot Net ---> >> >> To reply to this post, please address your message to >> mac-access@mac-access.net >> >> You can find an archive of all messages posted to the Mac-Access forum at >> the list's public Mail Archive: >> <http://www.mail-archive.com/mac-access@mac-access.net/>. >> Subscribe to the list's RSS feed from: >> <http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml> >> >> As the Mac Access Dot Net administrators, we always strive to ensure that >> the Mac-Access E-Mal list remains malware, spyware, Trojan, virus and >> worm-free. However, this should in no way replace your own security >> strategy. We assume neither liability nor responsibility should something >> unpredictable happen. >> >> Please remember to update your membership preferences periodically by >> visiting the list website at: >> <http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/> > > <--- Mac Access At Mac Access Dot Net ---> > > To reply to this post, please address your message to > mac-access@mac-access.net > > You can find an archive of all messages posted to the Mac-Access forum at > the list's public Mail Archive: > <http://www.mail-archive.com/mac-access@mac-access.net/>. > Subscribe to the list's RSS feed from: > <http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml> > > As the Mac Access Dot Net administrators, we always strive to ensure that the > Mac-Access E-Mal list remains malware, spyware, Trojan, virus and worm-free. > However, this should in no way replace your own security strategy. We assume > neither liability nor responsibility should something unpredictable happen. > > Please remember to update your membership preferences periodically by > visiting the list website at: > <http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/> > > <--- Mac Access At Mac Access Dot Net ---> > > To reply to this post, please address your message to > mac-access@mac-access.net > > You can find an archive of all messages posted to the Mac-Access forum at > the list's public Mail Archive: > <http://www.mail-archive.com/mac-access@mac-access.net/>. > Subscribe to the list's RSS feed from: > <http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml> > > As the Mac Access Dot Net administrators, we always strive to ensure that the > Mac-Access E-Mal list remains malware, spyware, Trojan, virus and worm-free. > However, this should in no way replace your own security strategy. We assume > neither liability nor responsibility should something unpredictable happen. > > Please remember to update your membership preferences periodically by > visiting the list website at: > <http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/> <--- Mac Access At Mac Access Dot Net ---> To reply to this post, please address your message to mac-access@mac-access.net You can find an archive of all messages posted to the Mac-Access forum at the list's public Mail Archive: <http://www.mail-archive.com/mac-access@mac-access.net/>. Subscribe to the list's RSS feed from: <http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml> As the Mac Access Dot Net administrators, we always strive to ensure that the Mac-Access E-Mal list remains malware, spyware, Trojan, virus and worm-free. However, this should in no way replace your own security strategy. We assume neither liability nor responsibility should something unpredictable happen. Please remember to update your membership preferences periodically by visiting the list website at: <http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>