Author: admin

0

Flush DNS cache

This morning I was doing some work with one of my website transfer and to see the changes on my MacBook laptop I knew I would need to flush the DNS cache so I...

0

Linux Configuration and Diagnostic Tools

untitled System and Network Configuration * linuxconf – A GUI interactive interface available on Redhat 6.0 or later which includes netconf configuration. * netconf – A GUI interactive interface available on Redhat 6.0 and...

0

Give me the most current file

I needed a quick way to maintain a current symlink to the most recent file by time stamp. Here’s one way to do it: ls -t1 *.jpg | head -1 | xargs -i ln...

0

#!/bin/bash

I think the number one skill a sysadmin should have is a solid understanding of shells and shell scripting. The Advanced Bash-Scripting Guide is a good place to start or take a refresher. From...

0

Service/Daemon Management

restarting/stopping/starting a service On any init.d based linux distro you can restart a service with the following… /etc/init.d/serviceName restart You may replace ‘restart’ with ’stop’ or ’start’ (and in some cases ’status’). Forcefully stopping...

0

User Management

useradd useradd userName then run “passwd userName” to set the new users pw passwd passwd username will ask for the new pw twice

0

File Permissions

Listing Permissions ls -al will display all files in a list with their owners and permissions -rw-r–r– 1 irq13 irq13 1006 Jan 24 10:16 .bashrc Now to break down the above example… -rw-r–r– is...

0

Additional command operators

ps | grep ssh — only display lines that contain ssh ; used to “stack commands” or issue multiple commands on 1 line. cd ..; ls & puts a command in the background. Will...