Hi, I am Jalal
Founder and Director of Research Society. I love helping researchers in scientific data analysis with Python, Matlab, NCL, GrADs, CDO, SPSS, and Microsoft Excel. I also help students to learn English language and scientific writing. 

  1. Print working directory

pwd

  1. Change working directory

cd path                      (Direct Linux)

cd /mnt/path             (Linux Ubuntu in Windows)

cd /cygdrive/path      (Linux Cygwin in Windows)

cd /f/Linux_training/2021/

cd /mnt/f/Linux_training/2021/

cd /cygdrive/f/Linux_training/2021/

  1. Print list of files

ls

  1. Create a working directory

mkdir folder_name

mkdir jalal

  1. Change directory to jalal

cd jalal

  1. Back to previous directory

cd ../                 (one step back)

cd ../../                 (two steps back)

Now, we can go two steps forward.

cd Linux_training/2021/

  1. Remove a working directory

rmdir folder_name

rmdir jalal

  1. Move files

mv Basic_Linux_commands.txt ripa/        (move only one file)

To check the list of file in ‘ripa’ folder

ls ripa/

mv *.txt ripa/     (move multiple files using asterisk ‘*’)

  1. Copy files

cp Basic_Linux_commands.txt ripa/

cp *.txt ripa/     (copy multiple files using asterisk ‘*’)

  1. Link files (create symbolic links)

ln -s jara.txt sabiha.txt (creating symbolic link to a file)

ls -l sabiha.txt   (verify symbolic link)

ln -s /mnt/f/Linux_training/2021 ripa/ (creating symbolic link to a directory)

 

You can use ‘unlink’ or ‘rm’ command to delete symbolic link.

  1. Unzip files

Install ‘unzip’ on Ubuntu and Debian

sudo apt install unzip

Install ‘unzip’ on CentOS and Fedora

sudo yum install unzip

unzip filename

unzip ‘*.zip’ (unzip multiple zip files)

  1. Untar files

tar -tvf 2021.tar    (list tar content)

tar -xvf 2021.tar (extract entire file)

  1. Download files from the web

wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.17.2.tar.xz (download the Linux kernel tar archive)

wget -i linux-isofiles.txt  (download multiple files)

Alternative: if you want to download web data quickly, you can use the Internet Download Manager (IDM). You may follow my tutorial https://researchsociety20.org/climate-data-download-by-internet-download-manager-idm/.

  1. Text editor

vim textedit.txt

After editing, save your file and exit:

Press the ESC key

Type: :wq! 

Press the ENTER key

 

The following important videos are recommended to watch:

  1. Data analysis and plotting with NCL: https://youtube.com/playlist?list=PL4T8G4Q9_JQ9MfYVZU4j8Yu-6qb3Bl0sl
  2. Data analysis and plotting in MATLAB: https://youtube.com/playlist?list=PL4T8G4Q9_JQ8jULIl_gFOzOqlAALmaV5Q
  3. How to write a scientific paper: https://youtube.com/playlist?list=PL4T8G4Q9_JQ8tuHkRj2fdMxNfWqQdcglm

4. Please visit the playlist to find more resources: https://www.youtube.com/c/MdJalalUddindmjalal90/playlists