Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

less command

less <filename> # Prints interactively content of a file
# "q" -> Exit interactive mode!!
# "up" and "down" keywords -> to navigate
# "space" and "b" -> jump between pages.
# "G" or "p" -> jumps to page start
# "g" -> jumps to page end
# "/" + searched_word -> search next word match in file
# "?" + searched_word -> search last word match in file
# "n" -> Repeat previous search.
# "N" -> Repeat previous search in reverse direction.
# "Ng" -> Jump to N-th line in file.
# "p" -> Jumps to start of
# "Np" -> Jumps to N percent into file.
# "h" -> Display help.
 
PREVIOUS NEXT
Tagged: #command
ADD COMMENT
Topic
Name
5+3 =