Effortlessly enhance your command line skills with our comprehensive resource. Explore, learn, and elevate your abilities today.
$ cd directory_name
$ cd ..
$ pwd
$ pushd directory_name
$ popd
$ cd ~
$ cd -
$ cd /
$ ls
$ ls -l
$ ls -a
$ ls -lh
$ ls -R
$ ls -lt
$ ls -ld */
$ tree
$ mkdir directory_name
$ mkdir -p directory_name
$ rmdir directory_name
$ touch file.txt
$ rm file.txt
$ rm -r directory_name
$ rm -ri directory
$ mv source destination
$ mv -r source dest
$ cp source destination
$ cp -r source destination
$ chmod permissions file
$ chown user:group file
$ chgrp group_name file
$ umask
$ sudo
$ su
$ sudo !!
$ sudo -u username command
$ tar -czvf archive.tar.gz directory
$ tar -xzvf archive.tar.gz
$ unzip archive.zip
$ gzip file
$ gunzip file.gz
$ bzip2 file
$ bunzip2 file.bz2
$ 7z a archive.7z directory
$ mv old_filename new_filename
$ mv filename destination_directory
$ rm filename
$ rm -r directory_name
$ cat filename
$ less filename
$ nano filename
$ find /path/to/search -name "filename"
$ ping
$ ipconfig
$ tracert
$ netstat
$ nslookup
$ arp
$ route
$ telnet
$ systeminfo
$ ver
$ tasklist
$ taskkill
$ whoami
$ systeminfo
$ msinfo32
$ driverquery
$ echo
$ cls
$ more
$ type
$ echo off
$ echo on
$ color
$ mode
$ net user
$ net group
$ whoami
$ net user [username] [password] /add
$ net user [username] /delete
$ net localgroup administrators /add [username]
$ net localgroup administrators /delete [username]
$ net accounts
$ cacls
$ icacls
$ cipher
$ takeown
$ icacls [path] /grant [user:permission]
$ icacls [path] /deny [user:permission]
$ icacls [path] /remove [user]
$ sfc /scannow
$ chkdsk
$ sfc
$ gpupdate
$ shutdown
$ powercfg
$ schtasks
$ bcdedit
$ diskpart
$ chkdsk
$ sfc
$ gpupdate
$ shutdown
$ powercfg
$ schtasks
$ bcdedit
$ diskpart
$ schtasks
$ at
$ timeout
$ schtasks /query
$ schtasks /run
$ schtasks /end
$ schtasks /delete
$ schtasks /change
$ command > output_file
$ command >> output_file
$ command < input_file
$ command 2> error_file
$ command 2>&1 > output_file
$ command | tee output_file
$ command | tee -a output_file
$ command < input_file > output_file
$ tail file.txt
$ tail -n N file.txt
$ tail -f file.txt
$ tail -c N file.txt
$ tail -q -n N file.txt
$ tail -v file.txt
$ tail -n +N file.txt
$ tail --pid=PID -n 1 -f file.txt