<jupyter_start><jupyter_text>Basic *nix Commands – File Content Handling  Displaying and Concatenating Files* Displays the contents of one or more files* Suitable for small files* Outputs by default to stdout, but often redirect to a file using `>`    * `cat foo.txt bar.txt > foobar.txt`  More or Less  `more` or `less`* Displays files *one page* at a time * Use `more` for large files* `less` is more `more`    * Allows movement backwards in a file     * Faster than most standard text editors* `man` by default uses more (or less)  A few internal commands of `more` and `less`* Spacebar or `f` - One page forward* `b` - One page backward* `j` - One line forward* `k` - One line backward * `/foo` - Searches forward for expression `foo`  Other usefull tools  `wc` - word count* Counts lines, words, and characters  `head`* Prints the first few lines of a file  `tail`* Prints the last few lines of a file* Can be useful for "checking in" on simulations results    * Especially with the option `-f`<jupyter_code>%%javascript
function hideElements(elements, start) {
    for(var i = 0, length = elements.length; i < length;i++) {
        if(i >= start) {
            elements[i].style.display = "none";
        }
    }
}

var prompt_elements = document.getElementsByClassName("prompt");
hideElements(prompt_elements, 0)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10229799851742032, 'fraction_numerical': 0.0014825796886582653, 'mean_word_length': 3.9450549450549453, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '242994', 'license': 'MIT', 'n_tokens_mistral': 410, 'n_tokens_neox': 396, 'n_words': 174, 'path': 'BasicUnixCommands-FileContentHandling-rise.ipynb', 'repo_name': 'PGE383-HPC/live_lectures', 'size': '1349'}