You can enter the long form command:
source ~/.bashrc
or you can use the shorter version of the command:
. ~/.bashrc
You can enter the long form command:
source ~/.bashrc
or you can use the shorter version of the command:
. ~/.bashrc
To uninstall Apache2 on Ubuntu 22.04
$ sudo apt-get purge apache2
Reinstall Apache2 on Ubuntu 22.04
$ sudo apt-get install apache2
Make sure that Apache2 has been correctly installed and is working
$ systemctl status apache2.service
Node JS is a JavaScript server-side runtime. It can read and write to disk, process text streams and more. Node also includes its own package manager, npm (Node Package Manager), which makes it easy for developers to install third party modules that extend the functionality of their application or provide additional features without managing dependencies manually.
“how to clear screen in node js command prompt” is a question that has been asked many times before. The answer is as follows: “To clear the console, use Ctrl+L.”
The gnu version of ls
has --group-directories-first
. And cp
has -t
.
On systems that don’t have gnu’s ls
, your best bet is two successive calls to find
with -maxdepth n
/-mindepth n
and -type t
with the appropriate options.
find . -maxdepth 1 -mindepth 1 -type d
find . -maxdepth 1 -mindepth 1 \! -type d
For copying files, with the target first, you would have to write a script that saves the first argument, then uses shift
, and appends the argument to the end.
#!/bin/sh
target="$1"
shift
cp -r -- "$@" "$target"
Use this:
sudo apt update <span class="hljs-comment"># Fetches the list of available updates</span>
sudo apt upgrade <span class="hljs-comment"># Installs some updates; does not remove packages</span>
sudo apt full-upgrade <span class="hljs-comment"># Installs updates; may also remove some packages, if needed</span>
sudo apt autoremove <span class="hljs-comment"># Removes any old packages that are no longer needed</span>
Documentation about each apt
option can be found in the the manpages for apt. These are also available by running man apt
in your terminal.
Use of both upgrade
and full-upgrade
together is usually not needed, but it may help in some cases: see Debian documentation about Upgrades from Debian 9.
$ who
$ w
$ last | grep 'still logged in'
$ netstat -atnp | grep 'ESTABLISH.*sshd'
$ ps axfj | grep sshd
$ ps axfj | grep sshd
zip archive-name.zip your-file.php your-file.php your-file.php
In order to compress a directory, use this syntax:
zip -r archive-name.zip /directory-name
This command is used for .zip file decompression:
unzip archive-name.zip