Learn Linux for beginners
Learn Linux for beginners
  • Видео 36
  • Просмотров 5 096
The Linux command sed can be used to search and replace words in files
Think of sed like a search-and-replace tool, but one that can automatically edit text in a file or stream without opening the file.
It's very useful when you need to make changes to many lines of text or process data quickly in scripts.
#linuxcommands
Просмотров: 111

Видео

Use df and du commands to figure out your servers space and disc usage
Просмотров 7714 дней назад
#linuxcommands
Explaining Linux file permissions
Просмотров 56Месяц назад
#linuxcommands
Our very first Hello World bash script
Просмотров 47Месяц назад
#linuxcommands
Using the command grep to find specific words in many files.
Просмотров 18Месяц назад
The command grep in Linux is a very useful. It can be used to search log-files, source code search in files, system monitering and more. The command grep together with cat and pipe, you can easily travers through Gigabytes of data with ease for specific words. Grep can also be used with regular expressions. I will make a video about that later on. If you have any questions or wish for a certain...
Our first Hello World bash script in Linux
Просмотров 23Месяц назад
#linuxcommands
A brief introduction to the Linux editor called nano
Просмотров 312 месяца назад
#linuxtools
Creating several local git repos might make sense on a multiuser Linux server
Просмотров 232 месяца назад
#linuxcommands
Create a new PostgreSQL database and import data from a PostgreSQL dump file
Просмотров 212 месяца назад
#postgresql #linuxcommands
Use pg dump to make a backup of your PostgreSQL database
Просмотров 482 месяца назад
#PostgreSQL #linuxcommands
Using mysqldump to make a copy of your database to a file with crontab to secure your data
Просмотров 152 месяца назад
Here is a copy of the db-backup.sh script: it.uib.no/Bruker:Mihho/db-backup.sh
Use the command Elink to verify if your webserver is running and works
Просмотров 2392 месяца назад
#linuxcommands
Using git to track changes in local files on your Linux server
Просмотров 1,4 тыс.2 месяца назад
It is useful to use local git repo's on your Linux server to track any changes to important files. Not only for you as to have a history of the changes, but also it can track any changes that might happen when a yum update has run. In my experience I have seen that important files are changed either by your co-worker or an update, and when the server is rebooted, or a service is restarted, it s...
Use the commands wget and curl to test if a webpage or website responds
Просмотров 5842 месяца назад
#linuxcommands
Introduction to the useful command 'find' in Linux
Просмотров 8992 месяца назад
The command "find" is in my opinion one of the most useful commands in Linux. You can find files by their name, and also searching for the content in files. After you have found the file(s) you looked for, you can use the "exec" option to perform something on these files, like changing them, move them, or delete them. This can be useful if you want to delete old backup files, let say files that...
A longer introduction to basic Linux commands and an example to find the most frequent IP number
Просмотров 542 месяца назад
A longer introduction to basic Linux commands and an example to find the most frequent IP number
Use vim to edit files and add text content
Просмотров 175 месяцев назад
Use vim to edit files and add text content
Some more examples of the list command and also change owner group and mode of a file
Просмотров 55 месяцев назад
Some more examples of the list command and also change owner group and mode of a file
#shorts 3 basic Linux commands that you need to know if you want to learn Linux
Просмотров 25 месяцев назад
#shorts 3 basic Linux commands that you need to know if you want to learn Linux
A command line tutorial at ubuntu dot com is a good starting point
Просмотров 15 месяцев назад
A command line tutorial at ubuntu dot com is a good starting point
Trying to explain the usefulness of dot and dot dot
Просмотров 35 месяцев назад
Trying to explain the usefulness of dot and dot dot
Using the command tree to get an overview of the folders and files
Просмотров 25 месяцев назад
Using the command tree to get an overview of the folders and files
How to delete files and folders with rm and rmdir
Просмотров 55 месяцев назад
How to delete files and folders with rm and rmdir
Some more exercises with the command cd which are useful
5 месяцев назад
Some more exercises with the command cd which are useful
Use rm to remove files and rmdir to delete folders
Просмотров 225 месяцев назад
Use rm to remove files and rmdir to delete folders
Ubuntu command line for beginners is a good starting point to learn Linux command line basics
Просмотров 45 месяцев назад
Ubuntu command line for beginners is a good starting point to learn Linux command line basics
Use the command mv to move a file to another folder
Просмотров 815 месяцев назад
Use the command mv to move a file to another folder
use echo to write content to a file and cat to print out the content of the file
Просмотров 115 месяцев назад
use echo to write content to a file and cat to print out the content of the file
mkdir is a useful command to create folders in linux
Просмотров 45 месяцев назад
mkdir is a useful command to create folders in linux
Introduction to 3 must know basic commands in Linux
Просмотров 135 месяцев назад
Introduction to 3 must know basic commands in Linux

Комментарии

  • @gokiburijin8478
    @gokiburijin8478 Месяц назад

    One way to explain without saying "don't worry about it" is that the numbers represent the mode for owner, group, and everyone else. The mode is read/write/execute. So for each of the three user types you can choose the mode.

  • @Irgendeinwer
    @Irgendeinwer Месяц назад

    I use NixOS, btw

  • @JellyfishJellyfish-bk7cr
    @JellyfishJellyfish-bk7cr 2 месяца назад

    Nice one

  • @testing-mx6di
    @testing-mx6di 2 месяца назад

    nixOS has joined the chat

    • @LearnLinuxforbeginners-vx4rm
      @LearnLinuxforbeginners-vx4rm 2 месяца назад

      Great!

    • @123gostly
      @123gostly 2 месяца назад

      Does nixOS do something like this automatically?

    • @testing-mx6di
      @testing-mx6di 2 месяца назад

      @@123gostly Short answer; no. While NixOS by default includes version control in the form of 'generations', it is far more limited than Git. Basically, each time you modify the NixOS configuration file and ask the system to apply the changes, it stores the changes (i.e. software versions, software configuration and even kernel version) as a 'generation' which you could pick from a menu at boot time. Long answer; not by default, but it is definitely more suited to being managed by Git! The main value of NixOS is that it's configuration format is a full-on programming language, and hence let's you control EVERYTHING about the system within 1 text file (or a collection of text files with full blown 'imports' between each other just like a program's source code). What software or kernel you're installing, if and which patches you're applying to software and hence needs re-compiling, what configuration options all the packages normally expose under /etc can ALL be controlled from the Nix configuration! Git is far more suited for tracking this as its similar to software source code and there are no binary formats which would likely be the case on a regular Linux FHS-compliant /etc directory. When it comes to servers specifically, NixOS even let's you create disk images based on an existing NixOS config, which could be useful in deploying a fleet of servers without needing to customize the server from a base image provided by a cloud provider like with Ansible. Not to mention, the reproducibility benefit of nixOS which means you don't need to worry about your configs breaking in the future. P.S. Some disambiguation - Nix refers both to the configuration language used to configure a nix-based system and the packaging manager. Nix can be used in two ways - nixpkgs which let's you set-up reproducible software environments on any Linux distro (think Python venv but on steroids and applying to every program you can run in a shell) but also, nixOS which is when you let the Nix package manager manage your entire system and have the Nix package repository as your distro. Both of the aforementioned methods are officially supported by the Nix team! P.P.S. - Since I'm plugging Nix super hard here, I need to offer some down-sides. 1. The learning curve for Nix (both the language and paradigm) is very high. Although there were recent efforts to help flatten the curve by creating some beginner-friendly documentation, don't get into it you're ready to treat it as learning a new programming language. 2. Proprietary (and sometimes niche FOSS ones even!) software tends to not play nice with the Nix package management paradigm. Due to the needing to provide reproducibility and the aforementioned 'generations' feature, Nix is capable of (and usually does) storing multiple versions of library and apps on a single system. Getting software that depends on libraries to run therefore, usually requires patching them, which could delay package updates for newer versions or break DRM measures for proprietary software (e.g. Discord's Krisp noise cancellation feature which is DRM-protected). 3. Nix can be hard to debug and troubleshoot due to lack of documentation and appropriate tools. This is as much a demographics problem and as it is a technical problem. So many changes occur between nixpkgs/nixOS versions that if anything breaks, it is hard to tell which package (if it at all you were able to decipher the crazy syntax and error messages) was the culprit. Due to (afaict) the small user base and non-mainstream nature of Nix, up-to-date documentation is hard to come by, you often have to read the upstream packaging Nix to understand what the issue was. 4. Integration of software configuration options depend on the community. Despite one of the major selling-points of NixOS being the ability to control the configuration of all software from within Nix files, these integrations are written upstream by individual packagers. And well, packagers are people like you and me, who may not share the same needs for configuring the software as you and or can decide to leave, abandoning the package. When that happens, you often need to figure out how to write your own integrations, or just give up and configure the software manually.

    • @testing-mx6di
      @testing-mx6di 2 месяца назад

      @123ghostly Short answer; no. While NixOS by default includes version control in the form of 'generations', it is far more limited than Git. Basically, each time you modify the NixOS configuration file and ask the system to apply the changes, it stores the changes (i.e. software versions, software configuration and even kernel version) as a 'generation' which you could pick from a menu at boot time. Long answer; not by default, but it is definitely more suited to being managed by Git! The main value of NixOS is that it's configuration format is a full-on programming language, and hence let's you control EVERYTHING about the system within 1 text file (or a collection of text files with full blown 'imports' between each other just like a program's source code). What software or kernel you're installing, if and which patches you're applying to software and hence needs re-compiling, what configuration options all the packages normally expose under /etc can ALL be controlled from the Nix configuration! Git is far more suited for tracking this as its similar to software source code and there are no binary formats which would likely be the case on a regular Linux FHS-compliant /etc directory. When it comes to servers specifically, NixOS even let's you create disk images based on an existing NixOS config, which could be useful in deploying a fleet of servers without needing to customize the server from a base image provided by a cloud provider like with Ansible. Not to mention, the reproducibility benefit of nixOS which means you don't need to worry about your configs breaking in the future. P.S. Some disambiguation - Nix refers both to the configuration language used to configure a nix-based system and the packaging manager. Nix can be used in two ways - nixpkgs which let's you set-up reproducible software environments on any Linux distro (think Python venv but on steroids and applying to every program you can run in a shell) but also, nixOS which is when you let the Nix package manager manage your entire system and have the Nix package repository as your distro. Both of the aforementioned methods are officially supported by the Nix team! P.P.S. - Since I'm plugging Nix super hard here, I need to offer some down-sides. 1. The learning curve for Nix (both the language and paradigm) is very high. Although there were recent efforts to help flatten the curve by creating some beginner-friendly documentation, don't get into it you're ready to treat it as learning a new programming language. 2. Proprietary (and sometimes niche FOSS ones even!) software tends to not play nice with the Nix package management paradigm. Due to the needing to provide reproducibility and the aforementioned 'generations' feature, Nix is capable of (and usually does) storing multiple versions of library and apps on a single system. Getting software that depends on libraries to run therefore, usually requires patching them, which could delay package updates for newer versions or break DRM measures for proprietary software (e.g. Discord's Krisp noise cancellation feature which is DRM-protected). 3. Nix can be hard to debug and troubleshoot due to lack of documentation and appropriate tools. This is as much a demographics problem and as it is a technical problem. So many changes occur between nixpkgs/nixOS versions that if anything breaks, it is hard to tell which package (if it at all you were able to decipher the crazy syntax and error messages) was the culprit. Due to (afaict) the small user base and non-mainstream nature of Nix, up-to-date documentation is hard to come by, you often have to read the upstream packaging Nix to understand what the issue was. 4. Integration of software configuration options depend on the community. Despite one of the major selling-points of NixOS being the ability to control the configuration of all software from within Nix files, these integrations are written upstream by individual packagers. And well, packagers are people like you and me, who may not share the same needs for configuring the software as you and or can decide to leave, abandoning the package. When that happens, you often need to figure out how to write your own integrations, or just give up and configure the software manually.

  • @LearnLinuxforbeginners-vx4rm
    @LearnLinuxforbeginners-vx4rm 5 месяцев назад

    Thank you for good alternative advice!

  • @luimu
    @luimu 5 месяцев назад

    This creates new file out of existing one instead of moving the contents from one to another like you say at the beginning. For that you can do `cat File >> File2`, or alternatively only use one > to essentially do the same thing as cp.