background preloader

*nix

Facebook Twitter

About Unix and derivatives

How to survive in vi and emacs. Some basic vi commands. :set nu show line numbers. :set ic ignore case differences when searching. :set ai set automatic indent. :set sm show matching ( or { with ) or } in insert mode. down-arrow up-arrow move down/up 1 line. right-arrow left-arrow move right/left 1 character column. 0 $ go to 1st/last column of current line. return go down to 1st printable character of next line. nw nb move right/left n words (1 word if n omitted). ng go to line n (end of file if n omitted). ctrl-f ctrl-b page forward/backward 1 screen. ctrl-d ctrl-u page forward/backward half a screen. [[ ]] go to beginning of current/next c function.

Emacs survival guide. emacs has a vast range of commands, this is just a very brief personal selection of the ones i use most often. General Troubleshooting in Linux. Troubleshooting in Linux is a breeze if you know which tools to use and how to use them. In this article we learn to do some general Linux troubleshooting on the most common elements of the computer: hardware, programs installed, network, and log files.

Hardware Getting ram information cat /proc/meminfo or if you want to get just the amount of ram you can do: cat /proc/meminfo | head -n 1 Another fun thing to do with ram is actually open it up and take a peek. Sudo dd if=/dev/mem | cat | strings Getting cpu info Sometimes in troubleshooting we want to know what processor we are dealing with along with how much cpu is currently being used by our OS and programs. Cat /proc/cpuinfo top Check the temperature of your CPU Keeping a computer within a safe temperature is the key to maintaining a stable system. cat /proc/acpi/thermal_zone/THRM/temperature List PCI and USB devices To list all the PCI devices in your system issues the following command: lspci For USB use: lsusb df -h sudo fdisk -l Installed Programs.

16 commands to check hardware information on Linux. Hardware information Like for every thing, there are plenty of commands to check information about the hardware of your linux system. Some commands report only specific hardware components like cpu or memory while the rest cover multiple hardware units. This post takes a quick look at some of the most commonly used commands to check information and configuration details about various hardware peripherals and devices.

The list includes lscpu, hwinfo, lshw, dmidecode, lspci etc. 1. lscpu The lscpu command reports information about the cpu and processing units. . $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 23 Stepping: 10 CPU MHz: 1998.000 BogoMIPS: 5302.48 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 2048K NUMA node0 CPU(s): 0-3 2. lshw - List Hardware 3. hwinfo - Hardware Information 7.

Re: UNIX jokes: Here goes... [rec.humor.funny] Learn Linux, 101: Create and change hard and symbolic links. Overview In this article, learn to create and manage hard and symbolic links. Learn to: Create hard or soft linksIdentify links and know their typeUnderstand the difference between copying and linking filesUse links for system administration tasks This article helps you prepare for Objective 104.6 in Topic 104 of the Linux Professional Institute's Junior Level Administration (LPIC-1) exam 101.

The objective has a weight of 2. Prerequisites To get the most from the articles in this series, you should have a basic knowledge of Linux and a working Linux system on which you can practice the commands covered in this article. Back to top Introducing links On a storage device, a file or directory is contained in a collection of blocks. A link is simply an additional directory entry for a file or directory, allowing two or more names for the same thing.

You can create hard links only for files and not for directories. Creating links First let's look at how to create hard and soft links. Hard links. Pinguy OS - Because using a computer is meant to be easy! Build a Killer Customized Arch Linux Installation (and Learn All About Linux in the Process) Don't like Windows 8's new interface? Sick of Ubuntu Unity and the new ads that come along with it? Maybe it's time to create your own, ideal operating system with just the features you want. Arch Linux can make it happen: it lets you build your own personal, killer Linux distro from the ground up. If this article looks familiar, it's because we've posted it before! However, Arch recently changed its installation process quite a bit, making our old guide outdated. Here's why you may want to use Arch Linux, followed by how to set it up.

Who Is Arch Linux Good For? Linux is popular for a number of reasons, but high on that list is the fact that, with Linux, you have a lot more power to tweak your OS to your liking. The key part of this explanation is "intermediate users. " This guide has two parts. Bear in mind that while this guide should get you started, this is by no means a one-stop-shop for all Arch Linux knowledge. Why Arch Linux? Why, as an Ubuntu User, You May Want to Switch fdisk -l. Linux Filesystem Hierarchy. Linux Training For The Desktop and Server.