How Do I Make A New File In A Directory In Terminal For Mac Rating: 7,1/10 9595 reviews

Search I'm trying to us the following command on Mac OSX 10.6 Terminal but it does not work.Any idea what I may be doing wrong? List most recent file: ls -l -t head -2 List oldest file: $ ls -gt tail -1 But when I try to Move the oldest file, with this it doesn't work: mv `ls -tr tail -1` newdirname Any ideas or tips are appreciated!! And please be gentle guys, I'm not so good at this command line stuff yet; ) Thanks, Jess Ps.

Find

When I enter this: mv `ls -tr tail -1` DropBox I get this: mv: rename Test.txt to DropBox/Test.txt: No such file or directory.

Businesses that use Mac computers can use the Terminal application, which is a command line interface, to make changes to the Unix operating system that OS X is built upon.