Linux

Webmin

Here's a great resource page for installing Webmin:

http://www.webmin.com/rpm.html

If you can't access the Webmin login screen when you are done, (https://[server-ip]:10000) then you may need to review your firewall rules. 

For IPtables, this worked for me: http://www.webmin.com/firewall.html

Linux Group Commands

Find Groups that a user is in:

groups <username>

To add yourself to the wheel group you should be able to, as root, type in:

gpasswd -a <username> wheel

Change Group of File or Directory.  This is an admin command. Root user only can change the group of the file or directory.

chgrp [options] newgroup filename/directoryname

Linux File System Commands

Find a directory with a specific name

find / -name 'android-studio' -type d
 

Find and delete files in sub folders

find . -name archive.txt | xargs rm

Remove SVN items

Option 1) find ./ -name ".svn" | xargs rm -Rf
Option 2) rm -rf `find . -type d -name .svn`

Report how much free disk space is available for each mount you have.

1) df

2) df -kh

 

Symbolic Links

Creating a Symbolic link
ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT]

Example
ln -s /usr/local/apache/logs ./logs


Remove Symbolic Link
unlink the-symbolic-link
 

Pages

Subscribe to RSS - Linux