diff --git a/ebook/en/content/021-the-echo-command.md b/ebook/en/content/021-the-echo-command.md index 7d240c3c..d34a5ae3 100644 --- a/ebook/en/content/021-the-echo-command.md +++ b/ebook/en/content/021-the-echo-command.md @@ -13,7 +13,14 @@ echo Hello There ``` echo * ``` - +3. To save text to a file named foo.bar: +``` +echo "Hello There" > foo.bar +``` +4. To append text to a file named foo.bar: +``` +echo "Hello There" >> foo.bar +``` ### Syntax: ``` diff --git a/ebook/en/content/052-the-apt-command.md b/ebook/en/content/052-the-apt-command.md index dda28105..8d629a80 100644 --- a/ebook/en/content/052-the-apt-command.md +++ b/ebook/en/content/052-the-apt-command.md @@ -32,6 +32,18 @@ sudo apt remove g++ This command will remove g++ from your system. +### Searching for a package: +`search` followed by the `package_name` used with apt to search a package across all repositories. +##### Syntax: +``` +apt search package_name +``` +note: sudo not required +##### Example: +``` +apt search g++ +``` + ### Removing unused packages: Whenever a new package that depends on other packages is installed on the system, the package dependencies will be installed too. When the package is removed, the dependencies will stay on the system. This leftover packages are no longer used by anything else and can be removed.