Damn Admin

Tag: One Liner

Wget

Wget with login Wget download to a specified filename Wget download to a specified directory

Using wget to directly download from SourceForge

wget follows web redirects. Simply pass the URL as a parameter. https://unix.stackexchange.com/questions/86971/how-do-i-download-from-sourceforge-with-wget

Linux search for a filename

Find a file called “FileName” anywhere Find a file called “FileName” in /usr/share

CentOS list groups a user belongs to

Documented as better then using grep

CentOS get group membership

Documented as better then using grep

List all Groups on Linux System

In the ramblings of Linux forums I came across this. It is documented as a better alternative to using grep on the /etc/groups file.

CentOS List Users

Monitor the tail of a log file in real-time

Simply replace ‘myTestLog.log’ with your file name (or path)Power Shell will read the file to the screenThen remain open and display any new lines appended to the file automatically.

Get current user logged into a different machine

You will need: the IP or FQDN of the remote PC Remote WMI Must be enabled Be a domain administrator