Category Archives: Linux

Linux – Commands (Part II)

By | 12/10/2022

Linux – Commands (Part I) SEARCH TEXT IN A FILE grep: it searches for patterns in each file and prints each line that matches a pattern: With the option -i it will ignore case distinctions: With the option -R it will search all files under each directory, recursively: MISCELLANEOUS history: it will list up to 500 previously executed commands:… Read More »

Docker – How to copy a file from Host to Docker container and vice versa

By | 13/07/2022

In this post, we will see how to copy a file from our system to a Docker container and vice versa. We start defining and running this docker-compose file to create a SQL Server Docker container: [DOCKER-COMPOSE.YML] Then, using a PowerShell console, we check everything works fine: FROM HOST TO THE CONTAINERFirst of all, we… Read More »

Linux – Commands (Part I)

By | 11/05/2022

MANAGE DIRECTORIES pwd: print name of current/working directory ls: list directory contents mkdir ‘directory name’: make directories mkdir -p ‘directories names’: make parent directories as needed rmdir: remove empty directory rmdir -p ‘name of directories’: remove directory and its ancestors rm -rf: remove a directory not empty MANAGE FILES file: determine file type touch ‘file… Read More »