List of useful Linux commands – tips and tricks

Linux is a powerful system with many commands available and I found the below to be quite useful in my daily work.

ls -l –block-size=M – List size in MB instead of bytes.

:w !sudo tee % – save buffer to current file with ‘root’ permission

scp domain\\username@server:/home/DOMAIN/username/ – copy files using scp while using AD logins

tail -f /var/log/logfile.txt – display/refresh changes on last 10 lines of a file



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.