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 ...
Method 1 SFTP (Secure File Transfer Protocol) is a secure way to transfer files between systems. macOS provides built-in support for SFTP through the terminal, and you can also use third-party tools for a graphical interface. Method 1: Using Terminal (Built-in SFTP Client) Open Terminal Launch the Terminal app from Applications > Utilities or by searching for it in Spotlight. Connect to the Server Use the following command to initiate an SFTP session: sftp username@hostname Replace username with your server username and hostname with the server's IP address or domain. Authenticate Enter your password when prompted. Transfer Files Use these commands to manage files: Upload a file: put /path/to/local/file /path/to/remote/destination Download a file: get /path/to/remote/file /path/to/local/destination List files: ls Exit SFTP session: exit Method 2: Using FileZilla (Graphical Interface) Download and Install FileZilla Download FileZilla Client for macOS from FileZilla's official...