Linux Pocket Guide: Essential Commands

Linux Pocket Guide: Essential Commands

Daniel J. Barrett

Language: English

Pages: 272

ISBN: 1491927577

Format: PDF / Kindle (mobi) / ePub


If you use Linux in your day-to-day work, this popular pocket guide is the perfect on-the-job reference. The third edition features new commands for processing image files and audio files, running and killing programs, reading and modifying the system clipboard, and manipulating PDF files, as well as other commands requested by readers. You’ll also find powerful command-line idioms you might not be familiar with, such as process substitution and piping into bash.

Linux Pocket Guide provides an organized learning path to help you gain mastery of the most useful and important commands. Whether you’re a novice who needs to get up to speed on Linux or an experienced user who wants a concise and functional reference, this guide provides quick answers.

Selected topics include:

  • The filesystem and shell
  • File creation and editing
  • Text manipulation and pipelines
  • Backups and remote storage
  • Viewing and controlling processes
  • User account management
  • Becoming the superuser
  • Network connections
  • Audio and video
  • Installing software
  • Programming with shell scripts

 

 

 

 

 

 

 

 

 

 

vowels into asterisks: $ cat myfile This is a very wonderful file. $ cat myfile | tr aeiouAEIOU '*' Th*s *s * v*ry w*nd*rf*l f*l*. or to delete all vowels: $ cat myfile | tr -d aeiouAEIOU Ths s vry wndrfl fl. or to capitalize everything in the file: $ cat myfile | tr 'a-z' 'A-Z' THIS IS A VERY WONDERFUL FILE. tr translates the first character in charset1 into the first character in charset2, the second into the second, the third into the third, etc. If the length of charset1 is N, only the

characters: $ awk '{length($0) < 60}' myfile sed Like awk, sed is a pattern-matching engine that can perform manipulations on lines of text. Its syntax is closely related to that of vim and the line editor ed. Here are some trivial examples. Print the file with all occurrences of the string "red" changed to "hat": $ sed 's/red/hat/g' myfile Print the file with the first 10 lines removed: $ sed '1,10d' myfile m4 m4 is a macro-processing language. It locates keywords within

you can also raise the priority (lower the number): $ nice --10 (Yes, that's "dash negative 10".) To see the nice levels of your jobs, use ps and look at the "NI" column: $ ps -o pid,user,args,nice Name renice priority [options] PID — util-linux Synopsis /usr/bin stdin stdout - file -- opt --help --version While the nice command can invoke a program at a given priority, renice changes the priority of an already-running process. Here we increase the nice level (decrease the

programs in much detail, just enough to pique your interest. Our goal is to make you aware of the programs so you can explore further on your own. Name eog [options] [files] — eog Synopsis /usr/bin stdin stdout - file -- opt --help --version The eog (Eye of Gnome) image viewer displays graphics files in a variety of formats. If you invoke it for a single file, it displays the file. Invoked on two or more files: $ eog file1.jpg file2.gif file3.pbm it displays each in a

operator), Pipes | |, Combining commands ~ (tilde), Home Directories, Tilde expansion A abiword program, absolute path of current directory, acroread viewer, Ada language, Beyond Shell Scripting alias command, Aliases alphabetical order, ampersand ( & ), apt program, arguments for commands, What's a Command? aspell command, at command, , atq command, atrm command, audacity graphical audio file editor, audio on Linux systems, Audio and Video, , , , awk filter program, , awk

Download sample

Download