These tricks are helps you to work in Linux. These commands need to type in console.
Convert video in gif:
mplayer input_file_name -nosound -vo gif89a:fps=15:output=output_file_name
If you work with remote server by SSH and communication often breaks, type after login:
screen -d -m
screen -S <session_name>
Then you can work. If you lose communication with server login and type:
screen -r <session_name>
If you want to delete files, that more than N bytes:
find /dir -size +N -exec rm \{\} \;
To delete files, that not changed more than N days:
find /dir -ctime +N -exec rm \{\} \;
Also find command has many other parameters.
No comments:
Post a Comment