Skip to content

Instantly share code, notes, and snippets.

@atulkamble
Last active February 14, 2022 13:21
Show Gist options
  • Save atulkamble/5e15d25cff1d026fb3d7801a1c4f7da8 to your computer and use it in GitHub Desktop.
Save atulkamble/5e15d25cff1d026fb3d7801a1c4f7da8 to your computer and use it in GitHub Desktop.
Basic Linux Commands | List
uname // check system os
list all shells - cat /etc/shells //list shell
startx //streamlines the process of starting an X session
uname --
uname --kernel-name
uname --operating-system
ls -l
w //who
whatis vi //
whatis nano //
lsb_release -a //Linux Standard Base
file whatis
which whatis
file /usr/bin/whatis
which file
man hier // hierarchy
cd /
whami
pwd
ls /
tree /
sudo apt install tree
man hier
sudo su
cd /
whoami
pwd
cd
pwd
exit
pwd
man man
a (TAB TAB)
b (TAB TAB)
sudo su
whatis rm
man rm
( rm -rf / )
man proc
sudo su
cd /proc/
which fdisk
bash
sudo fdisk /dev
nano /etc/apt/sources.list
nano /etc/apt/sources.list
( startx)
sudo apt update
lsb_release -a
history
uname --kernel-release
sudo apt install openssh (TAB TAB)
****************************************************
uptime
cat /etc/shells
bash
rbash
dash
zsh
sudo apt [TAB] [TAB]
sudo apt install [TAB] [TAB]
whatis cat
cat /etc/shells
lsb_release -a
sudo apt up [TAB] [TAB]
sudo apt dist-upgrade
do-release-upgrade
uname
uname --
uname --operating-system
ls
which ls
whatis ls
file /bin/ls
sudo reboot // restart
uname --kernel-name
uname --operating-system
man hier
sudo apt install tree
tree /
ls /
pwd
cd
sudo su
id
pwd
cd /
pwd
cd root
pwd
whoami
cd /
ls
man root
man man
whatis ls
man ls
cd admin
pwd
cd
pwd
cd /
pwd
id
cat /etc/passwd
su root
sudo su root
lsblk
cat /etc/shells
file /bin/bash
whatis touch
which touch
whatis file
file /usr/bin/touch
whatis nano
touch woman
ls
whatis touch
file woman
ls -l woman
whatis du
du woman
df woman
nano woman
df woman
du woman
du -h woman
file woman
touch newfile
ls --inode newfile
file newfile
df newfile
du newfile
nano newfile
du newfile
ls --inode newfile
which fdisk
whereis fdisk
sudo fdisk
sudo fdisk /dev/ //on VM Instance
p
t
L
8
q
m //list all command
sudo fdisk /dev/xvda
******************************************************************************************
ls
passwd
root user - sudo
download package information from all configured sources - sudo apt-get update
manual -man
man pwd
echo
echo cloudnautic is best
which sh
Change Shell - chsh
Secure Shell - ssh user_name@host(IP/Domain_name)
ifconfig
sudo apt install net-tools
history
display the content of file - cat
cat atul.txt
cp atul.txt luta.txt
cp atul.txt luta.txt atul
chmod -R 777 atul
sort atul.txt
in search - grep command
grep "c" atul.txt
grep "p" atul.txt
rm atul.txt
Enter Full Path - /bin/ksh
clear - clear
end - exit or cntrl+d
check current directory - pwd
list - ls
long lsiting - ls -l
create directory - mkdir
delete directory - rmdir
change current directory - cd
avigate to your home directory - cd
sudo apt install curl
display the content of the URL on the terminal. -
curl https://www.thecloudnautic.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment