total 20drwx—— 2 (Sex offenders web site) sue users 4096 Oct 30

total 20drwx—— 2 sue users 4096 Oct 30 07:48 . drwxr-xr-x 5 root root 4096 Oct 30 11:57 .. -rw-r—– 1 sue users 24 Oct 30 06:50 .bash_logout-rw-r—– 1 sue users 230 Oct 30 06:50 .bash_profile-rw-r—– 1 sue users 124 Oct 30 06:50 .bashrc-rw-rw-r– 1 sue users 0 Jan 2 07:48 wishlisttotal 20drwx—— 2 sue users 4096 Oct 30 07:48 . drwxr-xr-x 5 root root 4096 Oct 30 11:57 .. -rw-r—– 1 sue users 24 Oct 30 06:50 .bash_logout-rw-r—– 1 sue users 230 Oct 30 06:50 .bash_profile-rw-r—– 1 sue users 124 Oct 30 06:50 .bashrc-rw-rw-r– 1 sue users 0 Jan 2 07:48 wishlistLaying pipesAnother bashshell feature enables you to connect commands so that theoutput of one becomes the input for the next one. This feature is referred to as a pipe.Suppose that you want to look over the details of all files in the/etcdirectory in long-listing format. If you type ls -la /etcto do so, amassive listing appears, and much of the information scrolls right past you. Although you can back up a bit by pressing Shift+PageUp, you may not beable to see everything. To see all the information, you can do one of two things: Send the data to a file with redirection by typing something like ls -la/etc > ~/etclistingand then review the contents of ~/etclistingwith your favorite editor. Pipe the output to the morecommand(see Chapter 16). To pipe the output to more, type ls -la directory_path| more, wheredirectory_pathis the directory for which you want to list the contents. The |symbol (which on the keyboard looks more like two vertical barsstacked on top of each other rather than just one solid line) tells bashthatyou want to use a pipe. Help! The manpagesystem is the electronic manual for Linux (manis short formanual), designed to provide users with a convenient reference to all thedetailed command information. This information includes command promptoptions, file formats, and program function usage. 290Part III:Getting Up to Speed with Linux

Leave a Reply