Site icon David Yin's Blog

Linux Command

Some Linux commands are very similar to Windows one.
I list them here for reference.
cd
The cd command will allow you to change directories
ls
The ls command will show you the files in your current directory.
cp
Make a copy of a file for you.
mkdir
The mkdir command will allow you to create directories.
rmdir
Remove the directory
df
The df command displays filesystem disk space usage for all mounted partitions.
du
The du command displays the disk usage for a directory.
rm
rm -rf \abc
Delete folder \abc, including all sub-folders and files under it.
mv
The mv command will move a file to a different location or will rename a file.
some other used ofter commands
tar xvfz 12345.tar
apt-get install
apt-get remove
apt-get update
apt-get upgrade
sudo nano .\abcd.cf
Edit .\abcd.cf in a nano text editor.

Exit mobile version