Tag Archives: Linux

How to get version of Redhat & Oracle Enterprise Linux

Oracle Enterprise Linux: more /etc/enterprise-release, example output: “Enterprise Linux Server release 5.5 (Carthage)” Redhat: more /etc/redhat-release

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

How to start the X server at boot with Redhat or Oracle Linux

vi /etc/inittab Edit your /etc/inittab file by replacing the line: id:3:initdefault: With this one: id:5:initdefault: and reboot Enjoy! Source: http://www.redhat.com/support/resources/faqs/rhl_general_faq/s1-xwin-q.html

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Limit a Local System User Access to a Certain Folder when using SFTP on Linux (and disable SSH for him as well)

This situation might face a lot of us, if you have a certain file you want to share on your system using SFTP, but you don’t want that user to be able to: login via SSH and run any commands … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

How to get CPU Info of a Linux Machine

This worked with me in Redhat and Ubuntu-based distros: “less /proc/cpuinfo” you can get the number of processors easily if you don’t want to read a lot of text: “less /proc/cpuinfo | grep processor”processor : 0processor : 1processor : 2processor : … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Mount NTFS manually on Ubuntu Linux Server

First, list all the ntfs drives you have: “fdisk -l | grep NTFS”, example output: /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 409599999 204696576 7 HPFS/NTFS/exFAT /dev/sda3 409600000 976957421 283678711 7 HPFS/NTFS/exFA Second, create a folder to mount … Continue reading

Posted in Linux | Tagged , , , , , , , , , | Leave a comment