{"id":13397,"date":"2019-04-01T23:48:36","date_gmt":"2019-04-01T23:48:36","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13397"},"modified":"2019-04-01T23:48:36","modified_gmt":"2019-04-01T23:48:36","slug":"todo-txt-manages-your-todo-tasks-from-linux-terminal","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/todo-txt-manages-your-todo-tasks-from-linux-terminal\/","title":{"rendered":"Todo.txt \u2013 Manages Your Todo Tasks from Linux Terminal"},"content":{"rendered":"<p><strong>Todo.txt<\/strong>\u00a0(<strong>todo.txt-cli<\/strong>) is an easy and extensible shell script for managing your\u00a0<strong>todo.txt<\/strong>\u00a0file. It allows you to add todos, list added todos, mark an entry as done, appends text to existing lines, and remove duplicate lines from\u00a0<strong>todo.txt<\/strong>\u00a0all from the Linux command line.<\/p>\n<p>It also supports archiving (moves all done tasks from\u00a0<strong>todo.txt<\/strong>\u00a0to\u00a0<strong>done.txt<\/strong>\u00a0and removes blank lines), de-prioritizing (removes the priority) from the task(s) and so much more.<\/p>\n<p><strong>Todo.txt-cli<\/strong>\u00a0is part of the\u00a0<strong>todo.txt<\/strong>\u00a0apps which are minimal, open source and cross-platform,\u00a0<strong>todo.txt-focused<\/strong>editors which assist you manage your tasks with a few keystrokes and taps possible.\u00a0<strong>Todo.txt CLI<\/strong>\u00a0and\u00a0<strong>Todo.txt Touch<\/strong>\u00a0are built for\u00a0<strong>CLI<\/strong>,\u00a0<strong>iOS<\/strong>, and\u00a0<strong>Android<\/strong>.<\/p>\n<div id=\"attachment_32207\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/todo.txt-cli-demo.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32207\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/todo.txt-cli-demo.gif\" alt=\" Todo.txt CLI Demo\" width=\"722\" height=\"382\" aria-describedby=\"caption-attachment-32207\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-32207\" class=\"wp-caption-text\">Todo.txt CLI Demo<\/p>\n<\/div>\n<h3>How to Install Todo.txt CLI in Linux<\/h3>\n<p>To install\u00a0<strong>todo.txt-cli<\/strong>, first you need to clone the git repository on your system using following\u00a0<a href=\"https:\/\/www.tecmint.com\/use-git-version-control-system-in-linux\/\" target=\"_blank\" rel=\"noopener noreferrer\">git command<\/a>.<\/p>\n<pre>$ cd ~\/bin\r\n$ git clone https:\/\/github.com\/todotxt\/todo.txt-cli.git\r\n$ cd todo.txt-cli\/\r\n<\/pre>\n<p>Then run the following commands to build and install\u00a0<strong>todo.txt-cli<\/strong>.<\/p>\n<pre>$ make\r\n$ sudo make install\r\n<\/pre>\n<p><strong>Note<\/strong>: The\u00a0<strong>Makefile<\/strong>\u00a0makes several default paths for installed files. You can use the following variables to make adjustments on your system:<\/p>\n<ul>\n<li><strong>INSTALL_DIR<\/strong>: PATH for executables (default\u00a0<strong>\/usr\/local\/bin<\/strong>).<\/li>\n<li><strong>CONFIG_DIR<\/strong>: PATH for\u00a0<strong>todo.txt<\/strong>\u00a0config.<\/li>\n<li><strong>BASH_COMPLETION<\/strong>: PATH for auto-completion scripts (default to\u00a0<strong>\/etc\/bash_completion.d<\/strong>).<\/li>\n<\/ul>\n<p>For example:<\/p>\n<pre>$ make install CONFIG_DIR=$HOME\/.todo INSTALL_DIR=$HOME\/bin BASH_COMPLETION_DIR=\/usr\/share\/bash-completion\/completions\r\n<\/pre>\n<div id=\"attachment_32208\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/install-todo.txt-cli.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32208\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/install-todo.txt-cli.png\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/install-todo.txt-cli.png 802w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/install-todo.txt-cli-768x257.png 768w\" alt=\"Install Todo.txt CLI in Linux\" width=\"802\" height=\"268\" aria-describedby=\"caption-attachment-32208\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-32208\" class=\"wp-caption-text\">Install Todo.txt CLI in Linux<\/p>\n<\/div>\n<h3>How to Use Todo.txt CLI in Linux<\/h3>\n<p>To add a todo task to your\u00a0<strong>todo.txt<\/strong>\u00a0file, run the following commands.<\/p>\n<pre>$ sudo todo.sh add \"setup new linode server\"\r\n$ sudo todo.sh add \"discuss fosswork.com site with Ravi\"\r\n<\/pre>\n<div id=\"attachment_32209\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/add-todos.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32209\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/add-todos.png\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/add-todos.png 802w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/add-todos-768x166.png 768w\" alt=\"Add Todo Tasks in Linux Terminal\" width=\"802\" height=\"173\" aria-describedby=\"caption-attachment-32209\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-32209\" class=\"wp-caption-text\">Add Todo Tasks in Linux Terminal<\/p>\n<\/div>\n<p>To list added todo tasks, use the following command.<\/p>\n<pre>$ todo.sh ls\r\n<\/pre>\n<div id=\"attachment_32210\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/list-todos.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32210\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/list-todos.png\" alt=\"List Todo Tasks in Linux Terminal\" width=\"522\" height=\"116\" aria-describedby=\"caption-attachment-32210\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-32210\" class=\"wp-caption-text\">List Todo Tasks in Linux Terminal<\/p>\n<\/div>\n<p>You can marks task as done in\u00a0<strong>todo.txt<\/strong>\u00a0using following command.<\/p>\n<pre>$ sudo todo.sh do 1\r\n<\/pre>\n<div id=\"attachment_32211\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/mark-as-done.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32211\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/mark-as-done.png\" alt=\"Mark Todo Task as Done\" width=\"582\" height=\"116\" aria-describedby=\"caption-attachment-32211\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-32211\" class=\"wp-caption-text\">Mark Todo Task as Done<\/p>\n<\/div>\n<p>You can also delete a todo item, for example.<\/p>\n<pre>$ sudo todo.sh del 1\r\n<\/pre>\n<div id=\"attachment_32212\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/delete-a-todo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32212\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2019\/03\/delete-a-todo.png\" alt=\"Delete a Todo Task in Linux\" width=\"582\" height=\"116\" aria-describedby=\"caption-attachment-32212\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-32212\" class=\"wp-caption-text\">Delete a Todo Task in Linux<\/p>\n<\/div>\n<p>For more usage and command options, run the following command.<\/p>\n<pre>$ todo.sh -h\r\n<\/pre>\n<p><strong>Todo.txt Homepage<\/strong>:\u00a0<a href=\"http:\/\/todotxt.org\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">http:\/\/todotxt.org\/<\/a><\/p>\n<p>That\u2019s all!\u00a0<strong>Todo.txt<\/strong>\u00a0is a simple shell script for creating and managing all your tasks from the Linux terminal. Share your thoughts about it or ask any questions via the feedback form below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/manage-todo-tasks-from-linux-terminal\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Todo.txt\u00a0(todo.txt-cli) is an easy and extensible shell script for managing your\u00a0todo.txt\u00a0file. It allows you to add todos, list added todos, mark an entry as done, appends text to existing lines, and remove duplicate lines from\u00a0todo.txt\u00a0all from the Linux command line. It also supports archiving (moves all done tasks from\u00a0todo.txt\u00a0to\u00a0done.txt\u00a0and removes blank lines), de-prioritizing (removes the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/todo-txt-manages-your-todo-tasks-from-linux-terminal\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Todo.txt \u2013 Manages Your Todo Tasks from Linux Terminal&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13397","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13397"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13397\/revisions"}],"predecessor-version":[{"id":13398,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13397\/revisions\/13398"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}