some interesting linux command

1. Supervise command (run every 2s) watch “ls -larth” 2. Kill program using one port sudo fuser -k 8000/tcp 3. Limit memory usage for following commands ulimit -Sv 1000 # 1000 KBs = 1 MB ulimit -Sv unlimited # Remove limit 4. Rename selected files using a regular expression rename ‘s/\.bak$/.txt/’ *.bak 5. Get full […]