Categories
Linux Shell Technology

Watch all tpc port that are listening :

ss -apt
Categories
Linux Shell Technology

Define Shortkey in the command line, Linux (Ubuntu)

For bash you have to do the following steps:

1) Open your .bashrc

sudo nano ~/.bashrc

2) Add new alias (at the end of the file)

alias phpstorm='cd ~/Downloads/phpstorm/bin/./phpstorm.sh'

3) Save and close the file

4) Source the .bashrc file

source ~/.bashrc

reference :

http://www.linfo.org/alias.html

Categories
Linux Shell Technology

Linux Crucial commands – Chmod Command in Linux (File Permissions)- part 2

See file permissions :

ls -l example.txt

#output
-rw-r--r-- 12 linuxize users 12.0K Apr  8 20:51 example.txt
|[-][-][-]-   [------] [---]
| |  |  | |      |       |
| |  |  | |      |       +-----------> 7. Group
| |  |  | |      +-------------------> 6. Owner
| |  |  | +--------------------------> 5. Alternate Access Method
| |  |  +----------------------------> 4. Others Permissions
| |  +-------------------------------> 3. Group Permissions
| +----------------------------------> 2. Owner Permissions
+------------------------------------> 1. File Type

What is chmod in Linux:

in UNIX OSes, chmod is a command to change files and directories permissions.

chmod stands for “change mode”.

one of the most important reasons for Linux to be on the list of safe OSes is that every user has their own permission for each file and folder.

Categories
devops Linux Shell Technology

Linux Vim commands

quit of editor without saving
:q!
Categories
devops Shell

Linux Crucial Commands – Part 1

To restart your machine :
sudo reboot
To see a list of files and folders in Directory simple:
ls
To see a list of files and folders in Directory with complete detail as list :
ls -la
To see a list of files and folders in Directory with complete detail as list :
ls -la