Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to edit a file in ubuntu using terminal?

root@user:# nano galfit.feedme
Comment

how to edit a file in ubuntu using terminal?

root@user:# vi galfit.feedme
Comment

ubuntu edit file

For editing use

vi galfit.feedme //if user has file editing permissions
or

sudo vi galfit.feedme //if user doesn't have file editing permissions
For inserting

Press i //Do required editing
For exiting

Press Esc

    :wq //for exiting and saving
    :q! //for exiting without saving
Comment

PREVIOUS NEXT
Code Example
Shell :: install web3modal 
Shell :: https://arxiv.org/abs/2111.09395 
Shell :: docker mac nc command 
Shell :: install laravel admin panel with laravel 9 
Shell :: pip install imread 
Shell :: exit code: 127 
Shell :: remove data from realtime database 
Shell :: github pages custom theme 
Shell :: how to logout dockerhub 
Shell :: Provide file / folder access to a user in Linux 
Shell :: linux pipe string contains 
Shell :: cmd echo empty line 
Shell :: Comparing 2 Hashes in bash 
Shell :: authorized by ssh without password 
Shell :: add user to sudoer "zsh" customization 
Shell :: ring get environment variables 
Shell :: git checkout stack 
Shell :: start adb exe manually if necessary 
Shell :: express-rate-limit github 
Shell :: debian copy directory 
Shell :: hide folder staarted with dot on mac 
Shell :: Ubuntu brightness software GUI 
Shell :: ubuntu custuom boot iso /etc/grub.d/ 
Shell :: Add Git Branch Name to Terminal Prompt (zsh) 
Shell :: kali linuz 
Shell :: gentoo enable all fonts 
Shell :: Ubuntu adhan program 
Shell :: check space available ubuntu gui 
Shell :: compile 32 bit on 64 bit linux 
Shell :: hp probook 6560b hackintosh 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =