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 -redmine_subtask_list_columns-master.zip 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

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s