DEV Community

Discussion on: Useful Linux Commands

Collapse
 
jeremyf profile image
Jeremy Friesen

Great stuff.

If I may add a few more to your great list:

  • tree :: list contents of directories in a tree-like format.

Example of tree with limiting to 2 levels
❯ tree -L 2
.
├── README.org
├── emacs.d
│   ├── abbrev_defs
│   ├── burning-wheel-emacs-config.org
│   ├── configuration.org
│   ├── custom.el
│   ├── early-init.el
│   ├── eberron.org
│   ├── emacs-tabs.org
│   ├── forem-config.org
│   ├── hide-comnt.el
│   ├── indesk.org
│   ├── init.el
│   ├── keyboard-macros-config.org
│   ├── knowledge-management-config.org
│   ├── random-tables.org
│   ├── takeonrules.org
│   └── templates
├── lib
│   ├── indesk.org
│   ├── org-macros.setup
│   └── toc-to-indesk.rb
└── snippets
    ├── enh-ruby-mode
    ├── html-mode
    ├── markdown-mode
    ├── nxml-mode
    ├── org-mode
    ├── prog-mode
    ├── ruby-mode
    ├── text-mode
    └── yaml-mode
Enter fullscreen mode Exit fullscreen mode

Collapse
 
software_writer profile image
Akshay Khot

Thanks, Jeremy. Yes, tree is very helpful.

Btw, How did you add that code snippet with a dropdown arrow, to be expanded? Is that only for the comments, or can I do that in a post? Thanks!

Collapse
 
jeremyf profile image
Jeremy Friesen

DEV supports a details liquid tag;

{% details My verbose summary %}
lots of text here
{% enddetails %}
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
software_writer profile image
Akshay Khot

Whoa, that's super useful. Thanks for sharing!