Java Programming on Linux: Compile and Run a Simple Program

Java programs can be compiled and run from the Linux command line using the JDK tools javac and java. Check Java is installed If javac is missing, install a JDK package rather than only a runtime package. Compile a Java file This creates a compiled Hello.class file. Run the program Use the class name without … Read more

Understanding chmod and Linux File Permissions

chmod changes file and directory permissions in Linux. It is useful when a script cannot execute, a file is too open, or a service needs access to a path. Make a script executable This adds execute permission for the file owner only. Common numeric permissions 644: owner can read/write, others can read 755: owner can … Read more

lsb_release — Show Linux Distribution Information

lsb_release shows Linux distribution information such as release name, version and codename. It is a quick way to confirm which distribution a server is running. Show all distribution details Show only the description If lsb_release is not installed, many modern systems also provide release information in /etc/os-release.

Write-Protect Important Files in Linux

Linux file permissions can reduce accidental changes, but for some files you may also want an extra layer of protection. On filesystems that support it, the immutable attribute can help. View file attributes Make a file immutable An immutable file cannot be modified, renamed or deleted until the attribute is removed. Remove the protection Use … Read more

Installing Packages from Source in Linux

Installing software from source is useful when a package is not available in the distribution repositories, but it should not be the first choice. Prefer the package manager when possible. Typical source install flow Not every project uses this exact pattern. Always read the project README or INSTALL file first. Install build tools first On … Read more

eject — Eject the removable media

Linux is included in 11th std Computer Science syllabus in Tamil Nadu.
Linux Users Groups should help the Teachers and Students to understand
the Linux and FOSS concepts.

One Day One Command
===================

eject — Eject the removable media

Summary:

Eject allows removable media (like CD-ROM, Floppy, Tape, JAZ, ZIP) to

be ejected under software control. The command can also control some

multi-disc CD-ROM changers, the auto-eject feature supported by some

devices, and close the disc tray of some CD-ROM drives.

Read more

su — Run a Shell as Another User

su starts a shell as another user. It is commonly used to switch to the root account or to test commands under a different account. Switch to another user su – username The hyphen starts a login shell, so the target user’s environment is loaded. Switch to root su – This normally asks for the … Read more