The document provides a list of important Linux commands and gvim text editor commands, detailing their functions. Key commands include 'ls' for listing directory contents, 'cd' for navigating directories, and 'mkdir' for creating new directories. Additionally, it covers gvim commands for searching and editing text within files.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views1 page
TCL Commands
The document provides a list of important Linux commands and gvim text editor commands, detailing their functions. Key commands include 'ls' for listing directory contents, 'cd' for navigating directories, and 'mkdir' for creating new directories. Additionally, it covers gvim commands for searching and editing text within files.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Workshop notes
Important Linux commands
1 ls Lists the contents of a directory, displaying files and directories within it. 2 pwd Command stands for "Print Working Directory" and displays the full path of your current directory in the terminal. 3 cd Used to navigate the file system by moving between directories from the terminal. 4 clear To clear the screen in a Linux terminal. 5 mkdir Command is used to create new directories, and it stands for "make directory”. 6 mv Used to move or rename files and directories 7 cp Used to copy files and directories from one location to another 8 cat Displays file contents 9 echo Displays lines of text or strings passed as arguments to the standard output, which is usually the terminal screen 10 tar A command-line utility used for archiving and compressing files and directories 11 grep Global search for the regular expression 12 head Prints the first lines of one or more files (or piped data) to standard output 13 tail Prints the last lines of one or more files (or piped data) to standard output 14 df -kh . Displays information about total space and available space on a file system 15 du -sh <> Estimates and displays the disk space used by files and directories 16 rm -rf Used to remove files and directories permanently 17 history Allows you to view and manage a list of previously executed commands 18 tar Used for archiving and compressing files and directories 19 whoami Allows Linux users to see the currently logged-in user 20 gedit or Text editors gvim
Important gvim (Text editor) commands
1 /pattern Search forward for the specified pattern
2 ?pattern Search backward for the specified pattern
3 n Move to the next search result
4 gg Move to the beginning of the file
5 G Move to the end of the file
6 : set nu See line numbers
7 :LineNumber Go to the line number directly 8 i Enter insert mode before the cursor 9 Esc key To come out of insert/edit mode 10 :wq! To save and close the file