Redirection and piping help please
I want to write a command (one command) that would take a long listing of the /etc directory, but select only the last 5 entries (last 5 lines) in the directory AND save the results to a file named: etclisting in my current directory.
Would my command ls -l /etc | tail -5 >> etclisting be sufficient for this?
Last edited by PleaseHelpMeUnderstand; 04-24-2016 at 03:18 PM.
|