This is a growing list of Linux commands which might come handy for the of Linux users. 1. Found out i had to set the date like this: # date -s 2007.04.08-22:46+0000 2. Mounting sudo mount -t cifs // < pingable_host_or_ip > / < win_share_name > /build -o user= ,domain= ,uid=string,gid=string 3. To install linux packages from internet (ubuntu only) apt-get install 4. To determine what ports the machine is currently listening on netstat -an | grep -i listen | less 5. Find in files in Linux find . | xargs grep 'string' -sl Find file names with a pattern & delete them find . -name "IMG_*(1).JPG" -delete 6. To become superuser/root sudo -i 7. To find a running process using name ps -aef | grep "searchstring" 8. Alt + F2 opens run window in RHEL 9. To access windows share from linux smb:// /d$ 10. To know the last reboot date & time $ last reboot | head -1 ...
To show hidden files and folders on a Mac, open Finder and press the Command (⌘) + Shift + Period (.) keys simultaneously . The hidden files will appear with a faded or semi-transparent look. To hide them again, press the same keyboard shortcut. Using the Keyboard Shortcut Open any Finder window. Navigate to the folder where you want to view hidden files, such as your Macintosh HD folder. Press and hold the Command, Shift, and Period keys all at the same time. Hidden files and folders will appear. To hide them again, repeat the same key combination. Using Terminal (Alternative Method) Open Terminal by searching for it in Spotlight (magnifying glass icon). Enter the following command and press Return: defaults write com.apple.finder AppleShowAllFiles YES . Hold down the Option key, right-click the Finder icon in the Dock, and select Relaunch to apply the changes. To hide all files again, you can...