linux commands

ls - list everything in current dirrectory
cd directoryname - change directory to given directory
cp directorynameofcopied directorynamewheretocopy - copes a file or folder
mv directoryoffiletobemoved directrynameofdestinationtomove - moves a file
pwd - print current location
touch filename - create a file
cat > filename - createa a file name and write into it
| - pipe command, lets you combine commands

4
5

                                    The 'mv' (move) command can also be used for renaming directories. Use the below-given format:
mv directoryname newdirectoryname

4 (5 Votes)
0
4.33
3
Meisterluk 90 points

                                    Linux Commands (case-sensitive)
reboot ==> reboots system
man ==> gives you instruction of the command - Ex:
"man reboot"
mikdir ==> Creates directory(folder)
cd ==> Change directory
Ls ==> List directory content
pwd ==> Print name of the current working directory. It
gives you the exact location; Ex: /home/Andy/Desktop
ll ==> Long list format
ls-la ==> Prints files and hidden file
clear ==> Clear screen
cd.. ==> Goes to the parent file (not the root file)
cd/ ==> Goes to the parent root file
cd~ ==> Goes to the home of the user file
grep ==> Prints a line matching a pattern
df-h ==> Prints the disk space usage top ==> Displays
linux tasks (like task manager)

4.33 (3 Votes)
0
3.88
8
Jammypeach 95 points

                                    To view a file, use the command -
cat filename

3.88 (8 Votes)
0
3.25
4
Taylor yohe 120 points

                                    Linux Commands (Case Sensitive):

Basic:
pwd                ==> print the name of current directory   || Ex: pwd
whoami             ==> print the current user                || Ex: whoami
cd [directoryName] ==> enter a directory               		 || Ex: cd Music
cd ..              ==> go back to the parent directory       || Ex: cd ..
cp [file]          ==> copy file                             || Ex: cp music.mp3
ls                 ==> list all items in the current folder  || Ex: ls
clear              ==> clears the terminal                   || Ex: clear
mkdir [foldername] ==> makes folder with the specified name  || Ex: mkdir Songs
rmdir [foldername] ==> removes the specified folder          || Ex: rmdir Songs
echo "text"        ==> outputs to stdout		         || Ex: echo "Hi"

For sorting files:
mv [file] [newname]==> rename a file or folder  			 || Ex: mv exe txt
cat [filename]     ==> reads the specified file              || Ex: cat cmds.txt
tac [filename]     ==> reads the specified file in reverse   || Ex: tac cmds.txt
tail [file, file]  ==> reads first 10 lines of the files     || Ex: tail cmds.txt
zip [file, file]   ==> compresses the specified files        || Ex: zip files
vi [file]          ==> edit file in the terminal             || Ex: vi cmds.txt
gedit [file]       ==> edits the file in text editor         || Ex: gedit cm.txt
nano [file]        ==> edit file in nano editor              || Ex: nano cmds.txt
tar                ==> same as bzip2 						 || Ex: tar file
bzip2 -z / -d      ==> compress and decompress files with    || Ex: bzip2 -z cmds
                       the extension "bz2" respectively  
gzip               ==> same as bzip2 but compresses files    || Ex: gzip file
						with a gz extension.

Getting help:
man [command]      ==> show the manual of the command        || Ex: ls man
[command] --help   ==> similar to man but ouputs in terminal || Ex: pwd --help
apropos [word]     ==> search for the word in description    || Ex: aprpos list
					   of all commands

More advanced: 
reboot             ==> reboot the system                     || Ex: reboot
which [command]    ==> ouputs the location of the command    || Ex: which ls
su [username]      ==> impersonate as the specified user     || Ex: su root
exit               ==> exit the current user or the terminal || Ex: exit
shutdown -P +min   ==> shutdowns the system        			 || Ex: shutdown -P

Networking: 
ifconfig           ==> lists all the network interfaces on   || Ex: ifconfig
					   your machine 
netstat            ==> displays network connections for TCP, || Ex: netstat
					   routing tables, and a number of 
                       network interface and network 
                       protocol statistic

For listing hardware:
lscpu             ==> list CPU architecture information      || Ex: lscpu
lsusb             ==> list information about usbs            || Ex: lsusb
lsblk 			  ==> list block devices					 || Ex: lsblk
lsof			  ==> list opened files						 || Ex: lsof
lspci       	  ==> list PCI devices  	 				 || Ex: lscpi

System Administration: 
users              ==> shows names of users logged in        || Ex: users
adduser            ==> adds another user                     || Ex: adduser David
deluser            ==> deletes a user                        || Ex: deluser David
passwd             ==> change the password of current user   || Ex: passwd
uptime             ==> shows how long the system has been    || Ex: uptime
                       running, number logged on users and 
                       the system load averages
uname -a          ==> show  all the information of the OS    || Ex: uname -a
ps(Process Status) ==> displays currently-running processes  || Ex: ps

3.25 (4 Votes)
0
3.67
6
Dvelopp 105 points

                                    ls	ls       -   Lists files in current directory
ls -alF	     -   List in long format
cd	         - change directory
cd tempdir   - Change directory to tempdir
cd..         - Move back one directory
mkdir        - Make a directory
rmdir        - Remove directory(Must be empty)
cp           - Copy File into Directory
rm           - Remove or Delete File
rm *.tmp     - Remove all file
mv           - Move or rename files
more         - Look at file, one page at a time
lpr          - Send file to printer
man          - Online help about command
passwd       - Change password
gzip         - Compress file
grep<str><files> - Find which files contain certain word
who          - Lists who is logged on your machine
history      - Lists command history
date         - Print out current date
whoami       - returns your username
pwd          - tell where currently you are


3.67 (6 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
all commands in linux linux ~ command unix commands with options basic of linux commands command used in linux unix which command terminal linux commands what are commands in linux ~/ command in linux all linux command what are linux - commands what is linux commands called linux shell commands unix console commands what are unix commands used for linux commands linux ./ command] shell commands list commands linux terminal get the list of commands in linux linux list of commands available linux command "." linux command . - command in linux linux command command linux and linux commands linux commands all list view list of commands on linux linux basic commancds Commands of unix linux implement list of commands from command line terminal commands linux list linux commands lists unix command < linux command linux command in unix linux system commands \ command in linux linux commands basic ow to check list of commands available in linux linux. commands unix .. command linux command basic linux shell commands / command do in linux commands of linux linux unix commands ^ linux command what are unix commands list of linux commands how to use linux commands how to list all commands in linux \. unix command . unix command < command in linux ~./ command in linux linux commands unix command in unix command in linux Basic \commands linux list of basic linux commands < command in linux < command linux all linux commands list unix bash commands command command linux linux commands ~/ basic unix command line commands what are commands in unix ? what are command in unix ? "~ "unix commands common unix commands where are the commands in linux all commands in unix linux ! command #? command in linux basic commands on linux | linux commands linux at commands linux commande basic linux commads unix and linux commands Basic Unix commands. shell commands in linux What is Unix and what are some commands? linux command > explain linux commands in unix command list all commands linux list of linux bash commands linux ^ command useful commands in linux what are unix commands list of unix commands # command in linux all unix commands with examples unix commands\ ../ command linux useful unix commands unix commands with examples unix - commands linux commandes linux > commands shell commands in unix linux commandline * linux command which linux command linux command commands unix unix command. unix commands list all linux commands all unix commands with options lint commands list linux list all commands list commands linux list of all linux command list of all linux commands how to list the commands in linux linux commands le listing command in linux shell commands linux commands with explanation unix commands means shell linux commands how many commands are in linux linux . command how to use in linux commands !! command in linux where is the commands linux linux commands and command line using the at command linux linux [ command . linux command which command linux unix * command what a command for linux to list my commands basic commands linux Unix command line. how to unix commands for what do you use linux commands line linux list of command options list all commands used linux unix ./ command command / in linux all linux commands and what they do popular linux commands basic commands for linux unix command line ./ linux command [ command in unix ? command in unix unix linux commands list available commands linux commands for linux terminal unix shell commands unix commands line unix system commands linux command "./" linux commands terminal list command shell basic linux comnna linux command ../ linux command /.. basic commands in unix commands in unix UNIX command | unix commands the linux command line which command in linux linux all commands unix running commands unix command line commands commands for linux unix commands manual which command in unix how to get list of used commands in linux linux commands list commandes linux BASIC LINUX COMMNDS shell commands linux where all we can use linux command linux command options list plugin to learn linux commands unix commands with example unix terminal commands cli examples linux linux linux command what are linux commands the ./ command linux linux terminal basic commands linux console command how to write in terminal ubuntu command block commands list every linux command linux \ command linux commands examples linux all basic commands linux command terminal linux "./" command all commands that use in linux unix call command where to write unix commands Linux comman linux terminal on ubantu -rf linux command unix basic commands !! command linux common command prompt like commands for ubuntu terminal commands in ubuntu Name Linux commands that have 5 or more letters ubuntu commands ubuntu cli what is -Uvh linux command what are commands in unix linux command .:. \ command linux linux cli commands ubuntu console commands linux terminal for beginners linux terminal tutorial command for linux ubuntu comd line for beginners -rc command in linux unix commands programs linux os commands how to get the meaning of linux commands in command line linux coomands terminal command linux list of linux command linux terminal code unix unix command line Unix shell programming basic Linux commands how to command line diffrent from linux terminal linux most used commands useful linux commands learn ubuntu commands Unix command linux code command linux live terminal for beginners linux command line important terminal command linux\ "./ linux command" terminal linux terminal in linux which command will print name and type unix learning ubuntu commands linux command examples use of in linux commands types of commands linux command line linux how to ! command linux linux commnad loine **/* linux commant unix command list command > linux linux useful commands unix command -k unix cmod linux list command unix command shell linux commands with examples and syntax is linux commands easy command linux\ ubuntu terminal ubuntu terminal commands how to use linux terminal linux commands in cmd what is Ubuntu basic cli linux terminal basic unix commands use \ in linux what are the linux commands code command linux unix commands ./ linux command linux basic command -k command in linux basic unix linx command list commands llinux linux cmd use > in linux command important commands in linux cmd in linux best useful linux commands linnux basic commands how to do commands in Linux systm command in linux linux commands in terminal cmd linux linux basic commends -hl command do in linux most important linux commands useful command in linux list linux commands basic command linux basic command in linux linux command lin examples linux cmd commands linux command all basic commands of linux / linux command | in linux commands linux command line basics linux commands on cmd terminal basic commands linux list terminal basic commands linux list\ in linux list command linux linux -m command basic linux commands list -eq in linux * command in linux terminal tutorial linux basic terminal commands commands linux "|" in linux command command linux > | use command linux Linux commands are actually programs linux commannd linux syntax does **/* do how to learn linux commands how to use the % in linux basic commands in linux basics linux command linux basic linux common comand\ linux terminal commands manual how to code a command in linux basic linux command linux basic command of in linux linux server base commands > in linux terminal most common linux commands what does do in linux command line linux file commands linux commands for beginners basic terminal command use command in linux # in linux command commands to run in linux most used linux commands linux "-i" command operating system commands most linux command linux commands list os command in linux useful linux cmds command base linux linux console commands ./ command linux command linux $@ linux terminal comands What is in linux command b. Linux common commands. linux which command prompt linux "-a" command | command linux basic linux commands for beginners we linux command linux commands cmd linux command -gt common linux commanmds commad linux -exec command in linux linux command prompt linux cmds basic commands or basics commands op linux commands alattach linux commands vuecodes linux command linux list command linux commands tutorial -ahld command linux linix command downlatets debian commands list basic linux comands linux terminal commands list commands in linux debian commands linux whole code terminal comand linux should windows users know linux commands linux commands tutorial, some commun commands in linux and windows linux basic commands ./ linux konsole commands 21 command linux users must know linux commads common linux commands linux basics command in linux with examples linux command simple cli linux commands basic commands linux commands learn linux commands command "use" linux command use linux command in linux linux help command list terminal commands linux understand description linux commands linux operating system commands linux basic commands understand command linux linux command show command linux linux command list linux terminal commands command prompt for linux basic linux commands commands in linux with examples linux kommand what is the cmd command in linux linux basic commads
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source