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 ...
Pasting from the Windows clipboard into a PuTTY vi or vim terminal can sometimes be problematic, particularly with newer vim versions that have mouse mode enabled by default. This can lead to unintended visual mode activation or incorrect pasting. Here are the primary methods to paste from the clipboard into a PuTTY vi / vim session: Shift + Right-Click: Shift + Insert: Middle Mouse Button (Wheel Click): Disable vim Mouse Mode (if applicable): vim Paste Mode: Note: Ensure vi or vim is in insert mode (by pressing i ) before attempting to paste if you want the content to be inserted directly into the file. Otherwise, pasting might be interpreted as vim commands. For larger pastes, vim 's paste mode can be helpful. Enter insert mode in vim , then type :set paste and press Enter . Paste your conten...