ls -la | more ls -la | less ls List information about files. Syntax ls [Options]... [File]... Key Sort entries alphabetically if none of -cftuSUX nor --sort. -a, --all List all entries including those starting with a dot . -A, --almost-all List all entries including those starting with a dot . Except for . and … Continue reading ls more, less List information
list of environmental variables printenv complete list of shell variables set Links http://osxdaily.com/2015/07/28/set-enviornment-variables-mac-os-x/ http://stackoverflow.com/questions/7501678/set-environment-variables-on-mac-os-x-lion https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html
Step 1: Open the Terminal Navigate to Applications -> Utilities -> Terminal Step 2: Flush DNS - Type the following command and hit enter. Mac OS X Yosemite and later sudo killall -HUP mDNSResponder Mac OS X Yosemite v10.10 through v10.10.3 sudo discoveryutil mdnsflushcache Mac OS X Mavericks, Mountain Lion and Lion sudo killall -HUP … Continue reading Flush DNS
This option is only available for compatibility with POSIX; it is used to display the group name in the long (-l) format output (the owner name is suppressed).
rsync -a --progress --stats --human-readable path_to_source path_to_dest
rsync -av --progress /Users/username/Desktop/example_file.tif /Volumes/OpenShare/RSYNC_TEST source -> destination The flags are: v increases verbosity. a applies archive settings to mirror the source files exactly, including symbolic links and permissions. E copies extended attributes and resource forks (OS X only). progress provides a count down and transfer statistics during the copy. sudo, is used to ensure … Continue reading rsync
passwd can change passwords. dscl can also change a password for an account (in this case the xadmin account) using the passwd extension: dscl . -passwd /Users/xadmin https://www.macissues.com/2014/05/31/how-to-change-or-reset-your-password-in-os-x/ http://community.centrify.com/t5/Community-Tech-Blog/How-to-create-a-Hidden-Local-Admin-account-on-Mac-systems-Redux/ba-p/14649#