Status Updates From How Linux Works: What Every...
How Linux Works: What Every Superuser Should Know by
Status Updates Showing 1,951-1,961 of 1,961
José Juan
is on page 9 of 368
more and less
less --help
pwd (print working dir)
diff (option -c)
file
find
find dir -name file -print
head and tail
head /etc/inittab shows first 10 lines
tail /etc/inittab shows last 10 lines
sort (options -n -r)
— Aug 13, 2013 09:37PM
Add a comment
less --help
pwd (print working dir)
diff (option -c)
file
find
find dir -name file -print
head and tail
head /etc/inittab shows first 10 lines
tail /etc/inittab shows last 10 lines
sort (options -n -r)
José Juan
is on page 7 of 368
Further References:
Mastering Regular Expressions[Friedl]
regex chapter of Programming Perl[Wall]
Introduction to Automata Theory, Languages, and Computation[Hopcroft](*like math)
— Aug 13, 2013 09:36PM
Add a comment
Mastering Regular Expressions[Friedl]
regex chapter of Programming Perl[Wall]
Introduction to Automata Theory, Languages, and Computation[Hopcroft](*like math)
José Juan
is on page 7 of 368
See Appendix A for large list of cmds
grep root /etc/passwd
grep root /etc/*
-i and -v options
egrep
regex vs wildcard-style patterns
regex .* match any number of chars like * in wildcards
regex . match one arbitrary char
grep(1) man page describe regex
— Aug 13, 2013 09:35PM
Add a comment
grep root /etc/passwd
grep root /etc/*
-i and -v options
egrep
regex vs wildcard-style patterns
regex .* match any number of chars like * in wildcards
regex . match one arbitrary char
grep(1) man page describe regex
José Juan
is on page 6 of 368
/bin/sh
shell window / terminal windown
prompt $
cat
stdin / stdout
Ctrl D / Ctrl C
Basic cmds: ls, cp, mv, touch, rm, echo
* echo cmd is useful for finding expansions of shell wildcards and variables
/ . and .., absolute and relative pathnames
Directory Cmds: cd, mkdir, rmdir, rm -rf
Shell Wildcards
echo *
echo *dfkdsafh
?
single quotes to escape, echo '*', will find handy in grep and find cmds
— Aug 13, 2013 08:38PM
Add a comment
shell window / terminal windown
prompt $
cat
stdin / stdout
Ctrl D / Ctrl C
Basic cmds: ls, cp, mv, touch, rm, echo
* echo cmd is useful for finding expansions of shell wildcards and variables
/ . and .., absolute and relative pathnames
Directory Cmds: cd, mkdir, rmdir, rm -rf
Shell Wildcards
echo *
echo *dfkdsafh
?
single quotes to escape, echo '*', will find handy in grep and find cmds


