Tec Bar

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Java
  • JDBC
  • Hibernate
  • Algorithms
  • Design Patterns
  • Linux
  • Database
  • Others
  • Terms of Service
  • About

Category Archives: Linux

Linux related topic

  1. Pages:
  2. 1
  3. 2
  4. »

Install Sendmail Server on CentOS

Posted on September 7, 2016 by James
Reply

Installing Required Packages

1
2
3
 
# yum install sendmail sendmail-cf m4
 

Continue reading →

Posted in Linux | Leave a reply

Configure SSH Key-Based Authentication

Posted on April 20, 2016 by James
Reply

SSH with key based authentication allows you to log on different servers via the personal private key on all servers, needing not to remember several passwords.

SSH key pairs are two secure keys that can be used to authenticate a client to an SSH server. Each key pair consists of a public key and a private key.

ssh key authentication
Continue reading →

Posted in Linux | Leave a reply

Drop Cache in Linux

Posted on December 26, 2015 by James
Reply

Since kernel 2.6.16, a utility has been provided to allow the system to drop the page cache and/or inode and dentry caches on command, which can help free up a lot of memory.
Continue reading →

Posted in Linux | Leave a reply

Problem: unable to execute /bin/rm: Success

Posted on October 21, 2015 by James
Reply

In Linux environment, when you want to delete the files under one directory, you might see:

“sudo: unable to execute /bin/rm: Success”

Reason: too many files under the directory

Solution:
sudo find . -name ‘*’ -exec rm {} \;

Posted in Linux | Leave a reply

RAID 1 Repair on Linux

Posted on September 27, 2015 by James
1

The disks in RAID 1 array may fail at any time.
Continue reading →

Posted in Linux | 1 Reply

Add Email Account in your Linux Server

Posted on September 24, 2015 by James
Reply

Assuming email server (for example, sendmail) is installed.

Step 1: add an entry to /etc/mail/virtusertable like:
user@domain.com user
Continue reading →

Posted in Linux | Leave a reply

Delete all files within a directory that are older than 3 days

Posted on June 19, 2015 by James
1

1
2
3
 
find . -type f -mtime +1 -exec /bin/rm -f {} +
 

or

1
2
3
 
find . -mindepth 1 -mtime +3 -delete
 

Posted in Linux | 1 Reply

Deny visitors by IP address using Apache .htaccess file

Posted on April 20, 2015 by James
Reply

.htaccess is a configuration file for use on web servers running the Apache Web Server. Continue reading →

Posted in Linux | Tagged Linux | Leave a reply

Identify Who Logged in Your Linux System

Posted on March 27, 2015 by James
Reply

There are several methods to identify who logged in your Linux system. Continue reading →

Posted in Linux | Leave a reply

List Open Ports and the Associated Process on CentOS / Redhat

Posted on March 18, 2015 by James
5

Use the following commands to list the open ports.

sudo netstat -ltn Continue reading →

Posted in Linux | 5 Replies
  1. Pages:
  2. 1
  3. 2
  4. »

Categories

  • Algorithms (29)
  • Database (3)
  • Design Patterns (12)
  • Hibernate (8)
  • Java (40)
  • JDBC (15)
  • Linux (17)
  • Others (18)

Recent Posts

  • UML Class Diagram and Relationships
  • Java Date Format Pattern
  • Gmail SMTP debug: error “please log in via your web browser”
  • Install Sendmail Server on CentOS
  • Difference between @Component, @Repository & @Service annotations in Spring

Recent Comments

  • Nagesh on Java HTTP client crashes on HTTPS connections
  • Uli on Java HTTP client crashes on HTTPS connections
  • Guest on How to check if a radio button is checked using JQuery
  • Burns on RAID 1 Repair on Linux
  • prateek on Java HTTP client crashes on HTTPS connections

© 2023 tecbar.net