Linux Major Command
1. directory open command
nautilus /path/to/that/folder
or
xdg-open /path/to/the/folder
You can type any one of the following in terminal,
xdg-open http://google.com
google-chrome http://google.com
opera http://google.com
firefox http://google.com
you want to open two URL's at the same time then leave some space after the first URL and type the second,
firefox www.google.com www.gmail.com
To close directory, URL, etc.:
Onto the Folder/URL or any screen window, type Ctrl + w
2. Remove file or directory
// abc.txt & xyz.txt is file name
rm abc.txt xyz.txt
// asd & asf is directory name
rm -r asd asf
// Delete All directory & File in this directory
rm -r *
3. Move file or directory
// abc.txt is file name & abc is Directory name
mv abc.txt abc
// abc is One directory name & xyz is other Directory name
mv abc xyz
// Move all file or Directory in ab Directory
mv * ab
4. Copy file or directory
// copy abc.txt file to abc Directory
cp abc.txt abc
// copy abc Directory to ab Directory
cp -r abc ab
5. Man Command
man ls
or,
man man
or,
man pstree
6. mkdir (make Directory) Command
// temp & tempp are directory name
mkdir temp tempp
7. Taskbar position Change
// for position left
gsettings set com.canonical.Unity.Launcher launcher-position Left
// for position Bottom
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
8. un zip tar file ===>>> tar zxvf -/download/spring-sts
<<<<<=== Some important Command ====>>>>
1. sudo apt-get --purge remove phpmyadmin
sudo apt-get install phpmyadmin
sudo apt-get install php-gettext php-mbstring
2. sudo service apache2 restart
3.sudo apt-get autoclean
4. sudo apt-get autoremove
5. ssh root@192.168.4.204 ssh eban@192.168.4.208
6. sudo apt-get install tasksel
7.Git:
git push -u origin master
git commit -m "33 - Spring Framework "
git add .
git status
git push -u origin master
git remote add origin https://gitlab.com/syed.anam/com.springproject.spring.ss.git
git init
git config --global user.email "syed.anam@ymail.com"
git config --global user.name "syed anam"
8.sudo chmod 755 ciMaster
/*
sudo chmod -R ugo+rw /DATA/SHARE
The breakdown of the above command looks like:
sudo – this is used to gain admin rights for the command on any system that makes use of sudo (otherwise you'd have to 'su' to root and run the above command without 'sudo')
chmod – the command to modify permissions
-R – this modifies the permission of the parent folder and the child objects within
ugo+rw – this gives User, Group, and Other read and write access.
*/
9.mvn -version
10. killing command
netstat -ntpl
jps
kill -9 9650
pgrep java or
pgrep
kill -9 code_no
rsync -avrP taumal@192.168.4.161:/home/taumal/.m2 .
rsync -avrP soft@192.168.4.204:/var /media/anam/win/ /*proper command for Receive Data*/
rsync -avrP /media/anam/win/JavaScript/ eban@192.168.4.174:/home/eban /*proper command for Send Data*/
sudo chmod 777 /opt -Rf
sudo chown soft:soft /opt -Rf // proper command
/*
sudo chmod -R ugo+rw /DATA/SHARE
The breakdown of the above command looks like:
sudo – this is used to gain admin rights for the command on any system that makes use of sudo (otherwise you'd have to 'su' to root and run the above command without 'sudo')
chmod – the command to modify permissions
-R – this modifies the permission of the parent folder and the child objects within
ugo+rw – this gives User, Group, and Other read and write access.
*/
sudo chown -R root:alex /var/lib/php/session
chown owner-user file
chown owner-user:owner-group file
chown owner-user:owner-group directory
chown options owner-user:owner-group file
chown vivek demo.txt
sudo cp -Rf Desktop/java_env_file/tomcat-8.0.8 /opt/tomcat8
sudo tar -xvzf ~/home/soft/Desktop/ideaIU-14.1.2.tar.gz
sudo apt-get install phpmyadmin php-mbstring php-gettext
sudo phpenmod mbstring
sudo phpenmod mcrypt
rm -r jre9
rm -rf java-9-oracle/
C-pro
gcc hello.c
./a.out
mysqldump -u root -p employee < employee.sql;
mysql -u root -p
/*change chmod for IdeaProject By vaia */
sudo chmod o-x *
sudo chmod o-w *
sudo chmod o+x *
/*git repo download By vaia */
git clone ssh://repo@code.quantum.org.bd/~/qhms.git
//pendrive ntfs mod
sudo apt-get install ntfs-3g
sudo apt-get install ntfs-config
ntfs-config
//all running programe info
sudo netstat -ntpl
kill -9 port_No
// port info
sudo pgrep firefox