Category Archives: Uncategorized

rm

Force remove (no confirmation) rm -f Forced recursive deletion :: EXTRA CARE when using any kind of / in the path : a space after the first / would delete EVERYTHING of the HD rm -rf path

Uncategorized

cp

Recursive copy cp -r Preserves the owner, group and perms cp -p Forced copy (does not prompt to overwrite) cp -f

Uncategorized

mv

Force move mv -f Update (moves only if the source is newer than the destination) mv -u

Uncategorized

mkdir

Created dir and subdirs if needed (without -p it returns an error if a sub-parent also needs to be created) mkdir -p path

Uncategorized

ls

Adds a file type identifier: ls -F Identifier: / => folder @ => symbolic link = => socket | => pipe * => executable Lists files long format, ordered by size, human readable sizes ls -lSh List long ordered by … Continue reading

Uncategorized

less

enter lists the next line space lists the next screen d down half a screen u up half a screen /string search for string downwards ?string search for string upwards n next occurance N previous occurance g or < jump … Continue reading

Uncategorized

grep

Echo n lines of trailing (after) context lines grep -A n patern file Echo n lines of leading (before) context lines grep -B n patern file Echo n lines of output context lines grep -C n patern file Colorize the … Continue reading

Uncategorized

WebMail connection timeout + CSF

If you have CSF installed as the IDS of choice and you have a SMTP timeout on WebMail when trying to send mail, the problem is probably in the csf.conf setting. Error: Connection timed out Server replied: 110 Can’t open … Continue reading

Uncategorized

Various linux resources

DNS O’Reilly’s DNS and Bind http://docstore.mik.ua/orelly/networking_2ndEd/dns/index.htm cPanel 3rdparty software: http://forums.cpanel.net/f77/third-party-applications-available-cpanel-whm-106785.html NSF http://www.faqs.org/docs/Linux-HOWTO/NFS-HOWTO.html#FIREWALLS linuxguruz.org

Uncategorized

"Firewall is stopped" error

This is required to stop iptables without the entire system getting hanged on “unloading iptables modules” ON SOME MACHINES. /etc/sysconfig/iptables-config => IPTABLES_MODULES_UNLOAD=”no” Further info: http://forums.fedoraforum.org/showthread.php?t=44196 This is required when you get a “Firewall is stopped” and a simple restart doesn’t … Continue reading

Uncategorized