Posts

Showing posts from February, 2022

Useful Linux Commands

Here are some useful Linux commands which are useful, It will be updated frequently -  Restart VMware tools /etc/vmware-tools/services.sh restart   Reset user account with failed login attempts pam_tally2 --user=username --reset pam_tally2 -r -u username Start date and time of a linux process ps - eo pid,lstart,cmd TSM backup client status, start, stop, restart # service dsmcad start # service dsmcad stop # service dsmcad restart # service dsmcad statis TSM client home dir. /opt/tivoli/tsm/client/ba/bin/ Top files using high space in current directory  find . -xdev -type f -size +100M -exec du -sh {} ';' | sort -rh | head -n50 Compress a file using gzip gzip -c logfile > /tmp/logfile.gz && > logfile SUSE linux fs extend lvextend -L +1G /dev/mapper/system-lvopt # resize_reiserfs -f /dev/vg01/lvol1 or for btrfs btrfs filesystem resize max /opt # umount /dev/vg01/lvol1 # resize_reiserfs /dev/vg01/lvol1 # mount -treiserfs /dev/vg01/lvol1