Here's An A-Z Of Handy Linux Commands! Apropos: Search through the Help manual pagesapt-get: Install and search for software packagesaspell: Spell checkerawk: It lets you find text and replace it basename: Strips suffixes off files and directoriesbash: GNU Bourne-Again Shellbc: Arbitrary precision calculator languagebg: Sends to the backgroundbreak: Exit from a loopbuiltin: Run a shell builtinbzip2: Compresses or decompresses files date: Changes the date and timedc: Desk Calculatorddrescue: Disk recovery tooldeclare: Declares the variables and gives attributesdf: Gives the free space on your diskdiff: Prints the differences between two filesdig: Looks up the DNSdir: Lists directory contents brieflydirname: Changes a full pathname into just a pathdirs: Shows you the list of directories that are remembereddu: Get an estimation of the file space usage hash: Complete pathname of a name argumenthead: Outputs the first part of fileshistory: Command Historyhostname: Print/set system name yes: Prints a string until it is interrupted.
Become a Programmer, Motherfucker. If you don't know how to code, then you can learn even if you think you can't. Thousands of people have learned programming from these fine books: Learn Python The Hard Way Learn Ruby The Hard Way Learn Code The Hard Way I'm also working on a whole series of programming education books at learncodethehardway.org. These are works in progress, and feedback is welcome. Learn C The Hard Way Learn SQL The Hard Way Graphics Programming Language Agnostic NerdDinner Walkthrough Assembly Language Bash Clojure Clojure Programming ColdFusion CFML In 100 Minutes Delphi / Pascal Django Djangobook.com Erlang Learn You Some Erlang For Great Good Flex Getting started with Adobe Flex (PDF) Forth Git Grails Getting Start with Grails Haskell Java JavaScript JavaScript (Node.js specific) Latex The Not So Short Introduction to LATEX (perfect for beginners) Linux Advanced Linux Programming Lisp Lua Maven Mercurial Nemerle Nemerle NoSQL Oberon Programming in Oberon (PDF) Objective-C The Objective-C Programming Language OCaml Oracle Server Oracle PL/SQL Vim.
Startup key combinations for Intel-based Macs. Linux on a Macintosh. Since Apple introduced the Intel chip in their Macintosh computers, people have been using this technology to run other software that they would normally run on their PCs, such as Windows or various blends of *nix. Because of their specialized hardware, Macs present somewhat of a challenge to get a PC operating system that would run without a hitch on a normal PC computer, running on an Intel Mac.
This guide aims to highlight, avoid and deal with main complications that arise when running (or trying to run) Linux on a Macintosh. Before you start, the first thing you should do is backup any important data stored on the machine. Installing Linux on Macs is becoming increasingly reliable, however, bugs are still present, and accidents happen. Don't trust all your data with Linux installation software. EFI and GPT One of the biggest difficulties with installing Linux on a Mac is partitioning. Fortunately, these aren't hard to find if you know where to look. Partitioning Boot Camp diskutil gpt Xorg. 25 Terminal Tips Every Mac User Should Know. Posted 12/11/2008 at 11:40am | by Johnathon Williams From customizing your Mac’s secret system preferences to remotely controlling another Mac or manipulating text files in a handful of sly ways, the terminal utility is more than just a Mac geek’s home base.
It’s a place where, with a few expert tricks, all Mac users can feel right at home. If there’s a more neglected or misunderstood Mac utility than the Terminal, OS X’s built-in command-line app, we’ve yet to find it. In an age where Apple’s $200 smart phone offers the most intuitive graphical user interface the world has ever seen, turning to a text-only command-line window can seem stubbornly retro, reminding us of audiophiles who vociferously insist that vinyl records sound better than music CDs.
The first thing to know about the Terminal is how to launch it, which you do by going to \Applications\Utilities\Terminal. 1. 2. By default, the Terminal targets your Home directory (folders are called directories in Terminal-speak). 3. Basic vi Commands. What is vi? The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product of GNU.] The UNIX vi editor is a full screen editor and has two modes of operation: Command mode commands which cause action to be taken on the file, and Insert mode in which entered text is inserted into the file.
In the command mode, every character typed is a command that does something to the text file being edited; a character typed in the command mode may even cause the vi editor to enter the insert mode. In the insert mode, every character typed is added to the text in the file; pressing the <Esc> (Escape) key turns off the Insert mode. While there are a number of vi commands, just a handful of these is usually sufficient for beginning vi users. To assist such users, this Web page contains a sampling of basic vi commands. NOTE: Both UNIX and vi are case-sensitive. To Get Into and Out Of vi To Start vi. Learn Linux, 101: The Linux command line. Overview This article gives you a brief introduction to some of the major features of the bash shell, and covers the following topics: Interacting with shells and commands using the command lineUsing valid commands and command sequencesDefining, modifying, referencing, and exporting environment variablesAccessing command history and editing facilitiesInvoking commands in the path and outside the pathUsing man (manual) pages to find out about commands This article helps you prepare for Objective 103.1 in Topic 103 of the Junior Level Administration (LPIC-1) exam 101.
The objective has a weight of 4. The material in this article corresponds to the April 2009 objectives for exam 101. You should always refer to the objectives for the definitive requirements. Back to top The bash shell The bash shell is one of several shells available for Linux. Before we delve deeper into bash, recall that a shell is a program that accepts and executes commands. Shells also use three standard I/O streams: Echo Env. Rename multiple files shell in Linux. Howto: Linux Rename Multiple Files At a Shell Prompt.
From my mailbag: How do I rename multiple files at a shell prompt under Linux or UNIX operating systems? Renaming multiple files at a shell prompt is always considered as a black art by many UNIX gurus. To be frank if you understand regex then it is not a black art anymore. A regular expression is a string that describes or matches a set of strings, according to certain syntax rules (see regex @ wikipedia for more information). Linux (and *BSD) comes with handy utility called rename. As a name suggest 'rename' renames the filenames supplied according to the rule specified (syntax): rename "regex-rule" files The rename command discussed here is nothing but a perl script. Rename command syntax rename oldname newname *.files For example rename all *.bak file as *.txt, enter: $ rename .bak .txt *.bak Examples: Linux Rename Multiple Files Convert all mp3 filenames to more readable and usable format.
. $ ls Output: Remove all blank space with rename command: $ rename "s/ *//g" *.mp3 $ ls Output: #! Making Ubuntu Fast using RAM (updated and simplified) Making Ubuntu Insanely Fast using RAM.