zondag 23 december 2018
PATH
You can skip the step of manually loading the library by letting Linux do it for you when you log in automatically.
Run below commands
echo ". $HOME/my_functions.lib" >> ~/.bashrc
echo ". $HOME/my_functions.lib" >> ~/.bash_profile
source ~/.bashrc
source ~/.bash_profile
That's it. You can directly execute your function from the command line without doing anything.
zaterdag 29 september 2018
Making multiple directories at once
echo "augustus" "september" "oktober" "november" | xargs -n 1 mkdir
vrijdag 14 september 2018
No USB device available in Virtualbox
"Please add your user name to the 'vboxusers' group with this command:
sudo adduser [$USER] vboxusers
After that you must logout and login.
Please check this for more details:
https://help.ubuntu.com/community/VirtualBox/USB"
https://superuser.com/questions/956622/no-usb-devices-available-in-virtualbox
sudo adduser [$USER] vboxusers
After that you must logout and login.
Please check this for more details:
https://help.ubuntu.com/community/VirtualBox/USB"
https://superuser.com/questions/956622/no-usb-devices-available-in-virtualbox
woensdag 12 september 2018
Copying the same file to two locations
Copying the same file to two locations by using the cp command twice still seems logical but let us suppose we have to copy the file to three, five, or even more locations. Here is how a single command can achieve this purpose.
Syntax:
$ echo [destination1] [desctination2] [destiantion3]..... | xargs -n 1 cp [/location/sourcefile]
https://vitux.com/copying-one-file-simultaneously-to-multiple-locations-through-ubuntu-command-line/
Syntax:
$ echo [destination1] [desctination2] [destiantion3]..... | xargs -n 1 cp [/location/sourcefile]
https://vitux.com/copying-one-file-simultaneously-to-multiple-locations-through-ubuntu-command-line/
vrijdag 31 augustus 2018
How to permanently set $PATH on Linux/Unix?
You need to add it to your ~/.profile or ~/.bashrc file.
export PATH="$PATH:/path/to/dir"
Depending on what you're doing, you also may want to symlink to binaries:
cd /usr/bin
sudo ln -s /path/to/binary binary-name
Note that this will not automatically update your path for the remainder of the session. To do this, you should run:
source ~/.profile
or
source ~/.bashrc
https://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux-unix
export PATH="$PATH:/path/to/dir"
Depending on what you're doing, you also may want to symlink to binaries:
cd /usr/bin
sudo ln -s /path/to/binary binary-name
Note that this will not automatically update your path for the remainder of the session. To do this, you should run:
source ~/.profile
or
source ~/.bashrc
https://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux-unix
dinsdag 31 juli 2018
Latex structure
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{Probeersel}
\author{cornelispeek }
\date{July 2018}
\begin{document}
\maketitle
\section{Introduction}
What shall we do \cite{berne} with
\bibliographystyle{plain}
\bibliography{boeken}
\end{document}
You have to name the bibliography file and bibliographystyle before \end{document}
\usepackage[utf8]{inputenc}
\title{Probeersel}
\author{cornelispeek }
\date{July 2018}
\begin{document}
\maketitle
\section{Introduction}
What shall we do \cite{berne} with
\bibliographystyle{plain}
\bibliography{boeken}
\end{document}
You have to name the bibliography file and bibliographystyle before \end{document}
zaterdag 28 juli 2018
Get a list of Open Ports in Linux
ss -lntu
-n, --numeric don't resolve service names
-l, --listening display listening sockets
-t, --tcp display only TCP sockets
-u, --udp display only UDP sockets
-n, --numeric don't resolve service names
-l, --listening display listening sockets
-t, --tcp display only TCP sockets
-u, --udp display only UDP sockets
Abonneren op:
Posts (Atom)
Enlarging Libreoffice window completely with command
You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.
-
Als je een goede pdf wilt maken van een Volkskrant artikel, moet je als volgt te werken gaan. Open de Volkskrant pagina, waar je een pdf van...
-
You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.
-
https://wiki.documentfoundation.org/Faq/Calc/113 Create a new LibreOffice Calc document. Click on a cell in the table (A1 for example) Go t...