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.
- Print working directory
pwd
- 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/
- Print list of files
ls
- Create a working directory
mkdir folder_name
mkdir jalal
- Change directory to jalal
cd jalal
- Back to previous directory
cd ../ (one step back)
cd ../../ (two steps back)
Now, we can go two steps forward.
cd Linux_training/2021/
- Remove a working directory
rmdir folder_name
rmdir jalal
- 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 ‘*’)
- Copy files
cp Basic_Linux_commands.txt ripa/
cp *.txt ripa/ (copy multiple files using asterisk ‘*’)
- 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.
- 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)
- Untar files
tar -tvf 2021.tar (list tar content)
tar -xvf 2021.tar (extract entire file)
- 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/.
- 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:
- Data analysis and plotting with NCL: https://youtube.com/playlist?list=PL4T8G4Q9_JQ9MfYVZU4j8Yu-6qb3Bl0sl
- Data analysis and plotting in MATLAB: https://youtube.com/playlist?list=PL4T8G4Q9_JQ8jULIl_gFOzOqlAALmaV5Q
- 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