macOS and linux commands:
basic 100 commands :
lscd /path/to/directorypwdmkdir new_directoryrmdir empty_directoryrm file.txtcp source.txt destination.txtmv old_name.txt new_name.txttouch newfile.txtcat file.txtecho "Hello, World!"man lsgrep "search_term" file.txtfind /path -name "*.txt"chmod 755 script.shchown user:group file.txtsudo shutdown -h nowps auxtopkill -9 PIDdf -hdu -sh *ifconfigping google.comssh user@hostnamescp file.txt user@hostname:/path/to/destinationcurl http://example.comwget http://example.com/file.ziptar -cvf archive.tar file1 file2gzip file.txtgunzip file.txt.gzzip archive.zip file1 file2unzip archive.zipwhich pythonwhereis lsalias ll='ls -la'unalias llexport PATH=$PATH:/new/pathenvhistoryclearnano file.txtvi file.txtopen file.txtdefaults write com.apple.finder AppleShowAllFiles YESdiskutil listhdiutil create -volname MyDisk -srcfolder /path/to/folder -ov -format UDZO MyDisk.dmgsay "Hello, World!"spctl --statussudo softwareupdate -i -abrew install wgetsystem_profiler SPHardwareDataTypeioreg -lpmset sleepnownetworksetup -getinfo Wi-Fi/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -Icsrutil statusnvram -pmdfind "keyword"sudo mdutil -E /sips -z 800 600 input.jpg --out output.jpgtextutil -convert txt file.rtfpkgutil --pkgstccutil reset Cameradiskutil eraseDisk HFS+ NewDisk /dev/disk2dscacheutil -flushcachelaunchctl listsudo shutdown -h nowsudo rebootsudo halt
Last updated