The short answer is no. The ls
shipped with OSX is not the GNU ls
therefore it doesn't have the same options.
But you can get a similar result with :
ls -al | sort -k1 -r
Ps: I agree that it's far from perfect :)
In a Terminal or script, you can use the pmset command to sleep/wake the computer and more.
From: man pmset
sleepnow - causes an immediate system sleep
sudo pmset sleepnow
Schedules the system to automatically wake from sleep on July 4, 2016, at 8PM.
sudo pmset schedule wake "07/04/16 20:00:00"
Note: I've added sudo
to the above pmset
commands as this is necessary unless running as root which under OS X is not the norm.
From: Quick Tip: Save Battery by Spinning Down Hard Drive Sooner
sudo pmset -a disksleep 5
sudo - allows a standard “admin” user to run programs usually reserved for the “root” user. These are usually processes that affect the system as a whole – like this one.
pmset - this is the name of the utility we’re using.
-a - this “flag” tells the pmset utility that we’re applying it to all power configurations: battery, charger, and uninterrupted power supply. If you want to affect JUST when you’re on battery power, change this flag to “-b”
disksleep - this is the parameter we want to change: disk sleep time. This parameter is for 10.5 and later; in previous OS versions, you should use “spindown” instead.
5 - this is the number of minutes the system waits before sleeping the disk. OS X’s defaults are 10 minutes. We halved it here, so it spins down faster, but not so fast that it’s always spinning up (which would be counter to our needs). You may need to adjust this number to a point that works best for you.
Best Answer
From Terminal.app's preferences (Terminal menu -> Preferences), go to the "Profile" tab in the top pane, make sure your profile is selected, then click the "Advanced" tab in the right-hand pane. Under the section "Bell" there's an option for "Audible bell" which you should deselect. There's also an option for "Visible bell", which is a very useful alternative.